5ire SDK for soul dapps
To get account from domain :
GET api - https://stagingapi.dapps.co/api/getAccount
Request body -
{
"domain": "bruh.5ire", // domain to be searched for
"network": "ethereum", // ["polygon", "bitcoin", "ethereum", "solana", "cardano"]
"blockchain": "polygon" // contracts only on "polygon" for now
}Case I - when the domain is registered -
{
"account": "0x900bC7216b7eDE964040dB0BCf681975aeB2693b"
}Case II - when the domain is not registered -
{
"account": null
}To get domain from account :
GET api - https://stagingapi.dapps.co/api/getDomain
Request body -
Response -
Case I - when the account owns any domain -
Case II - when the account doesn't have any domain -c
Error Cases:
When
networkis invalid in request body
When
blockchainis invalid in request body
When
accountis invalid in request body for/getDomainendpoint:
When
domainis invalid in request body for/getAccountendpoint:
Last updated