Domains API Examples

Get registration data and purchase price for balajis.eth
query MyQuery {
  Domains(input: {filter: {name: {_eq: "balajis.eth"}}, blockchain: ethereum}) {
    Domain {
      registrationCost
      paymentTokenCostInUSDC
      registrationCostInUSDC
      registrationCostInNativeToken
      resolvedAddress
      isPrimary
      name
      owner
      paymentToken {
        address
        chainId
        decimals
        lastTransferBlock
        lastTransferHash
        name
        tokenBalances {
          amount
          blockchain
        }
      }
    }
  }
}
Show me all domains shnoodles.lens owns
query domainsOwned {
  Domains(input: {filter: {owner: {_eq: "shnoodles.lens"}}, blockchain: ethereum}) {
    Domain {
      name
      blockchain
      dappName
    }
  }
}

Last updated

#300: add-user-details

Change request updated