API Cheat Sheet
Last updated
Was this helpful?
Last updated
Was this helpful?
The Niftory API is built in . We also plan to support endpoints in the future. Our GraphQL Endpoint can be found here:
GraphQL has become a well-established standard for , giving the power of what to query and how much to query to the app developer (with strong typing!). This is consistent with of making it as easy as possible for you to quickly launch high-performing experiences.
If you have a strong need for REST endpoints for your application, please .
Here are the core concepts in the Niftory data model.
Always test your application against the Staging environment. The production endpoint will affect the blockchain for real, so that should only be used when you are ready to ship your app.
More details in the Authentication guide:
Happy Coding!
Remember to to set up your application!
Your application needs to registerWallet --> verifyWallet --> readyWallet for any given user in order to set up the wallet to receive NFTs. .
You can also use the Admin Portal to NFTSets and NFTModels for your application.
- returns the current App context.
Representation of a user logged in to your application via Niftory's .
- returns the currently logged-in AppUser context.
Representation of a user's blockchain wallet scoped to your application. For more information, see .
:
- returns the currently logged-in user's Wallet.
:
- creates a custodial Niftory wallet
- registers the given wallet address to the currently logged-in user.
- verifies that the user actually owns the Wallet by asking them to sign a secret.
- marks a Wallet as ready for usage for the application.
A representation of an (it doesn't have to be minted yet).
- returns all NFTs belonging to the currently logged-in AppUser.
- returns an NFT by its Niftory database ID.
- initiates the transfer of a specified NFT to a specified user. This API may mint the NFT if it isn't yet minted.
- returns the NFTModels belonging to the current App context.
- returns an NFTModel by its Niftory database ID.\
/ - creates/updates an NFTModel
- returns the NFTSets belonging to the current App context.
- returns an NFTSet by its Niftory database ID.
/ - creates/updates an NFTSet