Sonic Name Service (SNS) Snap Knowledge Base
Overview
The Sonic Name Service (SNS) Snap enables MetaMask users to resolve .s domain names on the Sonic blockchain (Chain ID: 146). It integrates with MetaMask to provide a seamless experience when sending transactions to human-readable domain names instead of long hexadecimal addresses.
Technical Specifications
Supported Chain: Sonic (Chain ID: 146)
Supported TLDs: .s
Contract Addresses:
Resolver: 0x90DB11399F3577BeFbF5B8E094BcaD35DA348Fc9
Registrar: 0xc50DBB6F0BAab19C6D0473B225f7F58e4a2d440b
Registry: 0x3D9D5ACc7dBACf1662Bc6D1ea8479F88B90b3cfb
NPM Package: [sonic_resolver]
Features
The SNS Snap provides the following functionality:
Domain Resolution: Resolves .s domains to Ethereum addresses
Integration with MetaMask Send Flow: Allows users to type .s domains in the recipient field
RPC Methods for Developers:
reverseLookup
: Get the SNS name for a given addressgetTokenIdForName
: Get the token ID for a given namegetNameForTokenId
: Get the name for a given token ID
Installation Guide
Prerequisites
MetaMask (version 11.0 or higher)
Installation Steps
Open MetaMask Snaps [https://snaps.metamask.io]
Search for "Sonic Name Service"
Click "Install"
Review and approve the permissions
Required Permissions
Network Access: Needed to connect to the Sonic blockchain
Name Lookup: Needed to resolve .s domains
Usage Guide
Sending to a .s Domain
Open MetaMask
Click "Send"
In the recipient field, type a .s domain (e.g., "example.s")
MetaMask will resolve the domain to an address
Enter the amount and complete the transaction
Verifying Domain Resolution
When entering a .s domain, MetaMask will display the resolved address
Always verify that the resolved address is correct before confirming any transaction