Niftory Docs
  • What is Niftory?
  • Get your API Keys
  • 👩‍💻API
    • Niftory Web3 API
    • SDK QuickStart
      • Using the SDK in React
      • Using the SDK from the Server
    • API Quickstart
      • Create your first Wallet
      • API calls with Sample Content
      • Mint your first NFT
    • API Cheat Sheet
    • Niftory Sample App
      • Explore the Sample App
      • Anatomy of a Niftory App
        • Getting Authenticated
        • GraphQL Client Setup
        • API Usage
        • Transfer an NFT
    • 💡Core Concepts
      • Niftory Data Model
      • Authentication
        • Using Your API Key
        • Configuring Your App
        • Privileged Authentication
      • App and AppUser
      • NFTs
        • Creating NFTs
        • Querying NFTs
        • Transferring NFTs
        • Minting NFTs
      • Wallets
        • Create a Niftory Wallet
        • Register External Wallets
        • Query Wallets
      • Contract
      • User Auth (Client-Side)
    • Your Niftory Account
  • 🧑‍💼Admin Portal
    • Niftory Admin Portal
    • 🚀Guides
      • Setting Up Your Org
      • Create Your First NFT
    • 🗺️Explore
      • Org and Apps
      • NFT Collection
        • Sets
        • Collectibles
        • NFTs
    • 💼Use Cases
      • For Engineers
      • For Designers
      • For Business Users
  • 📖Reference
    • GraphQL & Auth Endpoints
    • API Reference
    • SDK API Reference
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Core Concepts
  3. Wallets

Query Wallets

PreviousRegister External WalletsNextContract

Last updated 1 year ago

Was this helpful?

A 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:

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

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

query (and include the Wallet fragment)

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

The following queries are privileged APIs that can only be :

- returns a Wallet by its Niftory database ID.

- returns a Wallet by its Niftory address.

- returns a Wallet for a given AppUser ID.

👩‍💻
💡
invoked from your application backend
walletById
walletByAddress
walletByUserId
Wallet
wallet
Wallet
appUser