Overview
The SNS Snap enables MetaMask users to resolve.s domain names on the Sonic blockchain (Chain ID: 146), allowing transactions to human-readable domains instead of hexadecimal addresses.
Technical Specifications
Supported Chain
Sonic (Chain ID: 146)
Supported TLDs
.s domains
NPM Package
sonic_resolver
Platform
MetaMask Snaps
Contract Addresses
Key Features
1
Domain Name Resolution
Automatically converts .s domains to Ethereum addresses
2
MetaMask Integration
Seamlessly works in the MetaMask Send Flow recipient field
3
Developer RPC Methods
Access reverseLookup, getTokenIdForName, and getNameForTokenId functions
Installation Process
1
Open MetaMask Snaps
Access the MetaMask Snaps platform in your MetaMask wallet
2
Search for SNS
Search for “Sonic Name Service” in the Snaps directory
3
Install & Approve
Click install and approve the installation
4
Grant Permissions
Grant necessary permissions for network access and name lookup functionality
Currently available via MetaMask at MetaMask Snap Directory
Usage Instructions
Sending Transactions
1
Open MetaMask
Click the MetaMask extension and navigate to the Send feature
2
Enter Domain Name
Type a .s domain in the recipient field (e.g., “example.s”)
3
Verify Address
The Snap will automatically resolve and display the corresponding address
4
Complete Transaction
Review the details and complete your transaction as normal
Developer Integration
The SNS Snap provides RPC methods for developers to integrate domain resolution into their applications.Example: Resolve a Domain
Example: Reverse Lookup
Available RPC Methods
reverseLookup
reverseLookup
Convert an Ethereum address back to its registered .s domain name
getTokenIdForName
getTokenIdForName
Retrieve the NFT token ID associated with a specific domain name
getNameForTokenId
getNameForTokenId
Get the domain name associated with a specific token ID
Troubleshooting
Domain Not Resolving
Domain Not Resolving
- Check that the domain is spelled correctly
- Verify the domain is registered on Sonic Name Service
- Ensure you’re connected to the Sonic blockchain (Chain ID: 146)
Snap Not Working
Snap Not Working
- Make sure MetaMask is up to date
- Try reinstalling the Snap
- Check that you’ve granted all necessary permissions
Wrong Address Displayed
Wrong Address Displayed
- Verify the domain ownership on the Sonic Name Service platform
- Contact the domain owner if you believe there’s an issue