Create your first Wallet

Go through the Niftory Quickstart before starting this section.

Niftory provides a simple API to create a custodial wallet. You don't even need to specify any args!

If you've set up the API Playground from Quickstart, try executing the following mutation:

mutation CreateWallet {
    createNiftoryWallet {
        id
        address
        state
    }
}

It's that simple to create a new wallet. The state should tell you if the wallet is ready for use yet. You can query the wallet using the walletById query:

query WalletById($id: ID!) {
  walletById(id: $id) {
    id
    address
    state
  }
}

And pass in the id args:

{
  "id": "id-returned-by-createWallet-mutation"
}

This Wallet is automatically configured to receive NFTs minted with your deployed contract.

To learn more about Niftory's Wallet APIs (including registering and verifying external wallets), visit the Wallet guide:

pageWallets

Last updated