Complete guide to creating and using gasless offchain ENS subnames with the Namespace Offchain Manager SDK.
@thenamespace/offchain-manager
SDK. You’ll be able to create a subname, and then read records.
myensname.eth
)Install and initialize the SDK
Check if a subname is available
isSubnameAvailable
before creating a subname to avoid overwriting an existing one.Create the subname with optional records
owner
field to filter subnames by their associated address, enabling efficient reverse lookups (from address to name).Filter subnames by owner
owner
(or by metadata
).Look up text records
Look up address records
getFilteredSubnames
and then inspecting addresses
.updateSubname
getFilteredSubnames
ChainName