5ire SDK for soul dapps

  1. 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
}
  1. 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:

  1. When network is invalid in request body

  1. When blockchain is invalid in request body

  1. When account is invalid in request body for /getDomain endpoint:

  1. When domain is invalid in request body for /getAccount endpoint:

Last updated