Add

Add Subname

post
/ens/v1/subname/add

Add a new subname

Header parameters
x-api-keystringRequired

The Api Key.

x-signaturestringRequired

The signature.

x-messagestringRequired

The Message.

x-addressstringRequired

The Address.

Body
usernamestringRequired

The username

Example: dev
ensDomainstringRequired

The second-level domain

Example: jan.eth
chainIdnumberRequired

Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)

Example: 11155111
contentHashstringOptional

The content hash of the subname

Example: ipfs://QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4
Responses
post
/ens/v1/subname/add
default

The Subname was added successfully.

Was this helpful?