GraphQL Client Setup
Last updated
Last updated
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.
Name | Type | Description |
---|---|---|
POST
https://graphql.api.staging.niftory.com
Your staging GraphQL Endpoint for all Niftory Requests.
\
Targets blockchain testnet.
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.
Name | Type | Description |
---|---|---|
X-Niftory-API-Key**
String
Your Niftory API Key
Authorization
String
X-Niftory-API-Key**
String
Your Niftory API Key
Authorization
String