Smart Contract and NFT Management
Define the smart contracts and NFTs that are used within a product.
Good to know: These services are not provided for a developer to use in-game. Please log into your developer dashboard at www.gaimin.tech
Allowlist Smart Contract and NFTs
Auth: PRODUCT
Allowlist a smart contract and selected NFTs.
POST
https://api.gaimin.gg/api/public/v1/product/tokens
Allowlist a smart contract and selected NFTs. After allowlisting, NFTs will be connected to the product and can be retireved as a repsonse in endpoints for receiving NFTs metadata.
Headers
Name | Type | Description |
---|---|---|
accept* | String | */* |
X-Api-Key* | String | apiKey |
Content-Type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
chain | Enum | POLYGON, BSC |
contractAddress* | String | Smart contract address containing the NFT data 2..100 |
contractDescription* | String | Description of the smart contract 10..2000 |
tokens* | List <String> | List of tokens |
Example Request:
Example Response:
Get Allowed NFTs
Auth: PRODUCT
Returns related smart contracts and NFTs previously allowlisted
GET
https://api.gaimin.gg/api/public/v1/product/tokens
Get the NFTs from a smart contract that are to be used within a game.
Headers
Name | Type | Description |
---|---|---|
accept* | String | */* |
X-Api-Key* | String | apiKey |
Example Request:
Example Response:
Unbind Smart Contract
Auth: PRODUCT
Unbind a smart contract attributed to a game
DELETE
https://api.gaimin.gg/api/public/v1/product/contract
Delete the smart contract that has previously been connected to the product by allowlisting
Headers
Name | Type | Description |
---|---|---|
accept* | String | */* |
X-Api-Key* | String | apiKey |
Request Body
Name | Type | Description |
---|---|---|
contractAddress* | String | Address of smart contract to be deleted |
chain* | String | Chain on which the smart contract is stored |
Example Request:
Example Response:
Unbind Allowed NFTs
Auth: PRODUCT
Delete a smart contract and selected NFTs previously connected to the product through allowlisting
DELETE
https://api.gaimin.gg/api/public/v1/product/tokens
Delete a smart contract and selected NFTs previously connected through the allowlisting call.
Headers
Name | Type | Description |
---|---|---|
accept* | String | */* |
X-Api-Key* | String | apiKey |
Request Body
Name | Type | Description |
---|---|---|
contractAddress* | String | Address of Smart Contract |
tokens* | List <String> | List of tokens to be deletd |
chain* | String | Chain on which Smart Contract operates |
Example Request:
Example Response:
Refresh Metadata
Auth: PRODUCT
Identify changes in a smart contract and obtain refreshed data
POST
https://api.gaimin.gg/api/public/v1/tokens/refresh
Request Body
Name | Type | Description |
---|---|---|
smartContract* | String | Address of smart contract |
Last updated