Query Wallets

A Wallet is the representation of a user's blockchain wallet scoped to your application. There are several ways to query for a wallet. The simplest way to get a logged-in user's wallet is with the wallet and appUser queries:

wallet - returns the currently logged-in user's Wallet.n

query WalletQuery {
  wallet {
    id
    address
    state
    verificationCode
    nfts {
      ...NFTFragment
    }
  }
}
Sample Response
{
  "data": {
    "wallet": {
      "id": "14",
      "address": "0xf253fc2cb42c078436d07fb77e5a76a649892172",
      "state": "UNVERIFIED",
      "verificationCode": "xyz789",
      "nfts": ["NFT"],
    }
  }
}

appUser query (and include the Wallet fragment)

query AppUserWithWalletQuery {
  appUser {
    email
    wallet {
      ...WalletFragment
    }
  }
}

The following queries are privileged APIs that can only be invoked from your application backend:

Last updated