Append field
Request a challenge to append mApp field.
Body
domainstringRequiredExample:
Domain name
justaname
addressstringRequiredExample:
Address
0x1234567890123456789012345678901234567890
originstringRequiredExample:
Origin
https://justaname.id
chainIdnumberRequiredExample:
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
11155111
ttlnumberOptionalDefault:
Time to Live (TTL) in milliseconds (ms), default is 2 minutes (2 * 60 * 1000 = 120000 ms)
120000
Example: 120000
subnamestringRequiredExample:
Subname requesting the mApp Permission
test.justan.id
mAppstringRequiredExample:
Subname requesting the mApp Permission
justan.id
Responses
201
The challenge was requested successfully.
application/json
post
POST /ens/v1/siwe/mapp/append-field HTTP/1.1
Host: api.justaname.id
Content-Type: application/json
Accept: */*
Content-Length: 189
{
"domain": "justaname",
"address": "0x1234567890123456789012345678901234567890",
"origin": "https://justaname.id",
"chainId": "11155111",
"ttl": 120000,
"subname": "test.justan.id",
"mApp": "justan.id"
}
201
The challenge was requested successfully.
{
"statusCode": 200,
"result": {
"data": {
"challenge": "domain wants you to sign in with your Ethereum account:\nAddress\n\nPlease sign this message to verify that you want to add/update your subdomain provided by justawallet to your account Address using JustAName\n\nURI: uri\nVersion: 1\nChain ID: ChainId\nNonce: nonce\nIssued At: Date\nExpiration Time: Date"
},
"error": "text"
}
}
Was this helpful?