GraphQL Client Setup
The sample uses graphql-request to interact with Niftory's GraphQL endpoints.
Revisit our rationale for starting with GraphQL.
POST
https://graphql.api.niftory.com
Your production GraphQL Endpoint for all Niftory Requests.
\
Targets blockchain prod.
Headers
POST
https://graphql.api.staging.niftory.com
Your staging GraphQL Endpoint for all Niftory Requests.
\
Targets blockchain testnet.
Headers
No matter what client library you use, the 3 things you need to make requests to the Niftory API are:
You can use the Niftory API in staging mode, which doesn't affect your production data, and executes blockchain transactions on testnet. The API endpoint you use -- api.staging.niftory.com
vs. api.niftory.com
determines the mode.
We strongly recommend you use the API's staging endpoint until you are ready to deploy your app to production.
Last updated