Usage
2.1 Resolve domain name
The name
method allows you to resolve a domain name. It returns a Promise that resolves with the domain name or rejects with an error if the resolution fails.
Parameter:
domainName
(string.taiko): The domain name you want to resolve.
Example:
2.2 Resolve wallet address
The getName
method allows you to resolve the address. It returns a Promise that resolves with the wallet address or rejects with an error if the resolution fails.
Parameter:
walletAddress
(0x${string}): The wallet address you want to resolve.
Example:
2.3 Fetch records for a specified domain name
The getText
method allows you to fetch the records of a domain name. It returns a Promise that resolves with the content or rejects with an error if the resolution fails.
Parameter:
domainName
(string.taiko): The domain name you want to fetch content.key
(”com.discord”, ”avatar”, etc): The domain name you want to resolve.