cURL
curl --request POST \ --url https://offchain-manager.namespace.ninja/api/v1/subnames \ --header 'Content-Type: application/json' \ --header 'x-auth-token: <api-key>' \ --data '{ "parentName": "oppunk.eth", "label": "alice", "owner": "0x1234...abcd" }'
{ "id": "123", "fullName": "alice.oppunk.eth", "parentName": "oppunk.eth", "label": "alice", "texts": { "email": "alice@example.com" }, "addresses": { "ETH": "0x1234...abcd" }, "metadata": { "role": "admin" }, "contenthash": "ipfs://Qm...", "namehash": "0xabc123..." }
Creates or updates an offchain subname under a parent ENS name. Requires a valid API key.
Subname created or updated
The response is of type object.
object
Was this page helpful?