API

OperationEndpointDescriptionSample Request
Create NFT/api/create-nftThis API creates an NFTcurl -X 'POST' 'http://localhost:20004/api/create-nft' -H 'accept: multipart/form-data' -H 'Content-Type: multipart/form-data' -F 'did=bafybmiacfkwf7uzhfmm6cnhh5fc5xqvwvzai6xvezaop4danm5tbfdu6ri' -F 'metadata=@metadata.json;type=application/json' -F 'artifact=@nft.avif;type=image/avif'
Deploy NFT/api/deploy-nftThis API deploys an NFTcurl -X 'POST' 'http://localhost:20004/api/deploy-nft' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"did": "bafymd..", "nft": "Qm..", "quorum_type": 2}'
Execute NFT/api/execute-nftThis API executes an NFT (Ownership transfer or Internal State change)curl -X 'POST' 'http://localhost:20004/api/execute-nft' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"comment": "string", "nft": "string", "nft_data": "<any string data>" "nft_value": 10, "owner": "bafymdi..", "quorum_type": 2, "receiver": "bafymdi.."}'
Subscribe NFT/api/subscribe-nftThis API subscribes to NFT token chain updatescurl -X 'POST' 'http://localhost:20004/api/subscribe-nft' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"nft": "string"}'
Get NFT Chain Data/api/get-nft-token-chain-dataThis API fetches NFT Token Chain datacurl -X 'GET' 'http://localhost:20004/api/get-nft-token-chain-data?nft=Qm123&latest=false' -H 'accept: application/json'