Contracts

Public endpoints for all smart contracts.



List   GET   /v2/api/contracts/list  

List all smart contracts.


curl --location --request GET 'https://api.curios.com/v2/api/contracts/list' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Load   GET   /v2/api/contracts/load  

Load smart contract details, including deployment status.


curl --location --request GET 'https://api.curios.com/v2/api/contracts/load' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Create   POST   /v2/api/contracts/create  

Create new smart contracts.


Body
Argument Value Required Description
blockchain {Polygon, Ethereum, Avalanche} Yes The blockchain you want to deploy on.
token_format {ERC721, ERC1155} Yes The token format you want to use for your smart contract.
mintage_supply {integer} Yes 0 for open, integer for limited
symbol {string} Yes Alphanumeric, 3-9 characters in length
title {string} Yes Title for your smart contract
description {string} No Description for your smart contract
reference_id {string} No External ID for tracking to your external systems
curl --location --request POST 'https://api.curios.com/v2/api/contracts/create' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 
--data-raw '{
  "blockchain": "{Polygon, Ethereum, Avalanche}", 
  "token_format": "{ERC721, ERC1155}", 
  "mintage_supply": {integer}, 
  "symbol": "{string}", 
  "title": "{string}", 
  "description": "{string}", 
  "reference_id": "{string}"
}'


Deploy   POST   /v2/api/contracts/deploy  

Deploy a smart contract on the blockchain.


curl --location --request POST 'https://api.curios.com/v2/api/contracts/deploy' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Approve   POST   /v2/api/contracts/approve  

Approve smart contract cost so it will proceed with deployment.


Body
Argument Value Required Description
cost {cost} Yes Value from DEPLOY endpoint
currency {currency code} Yes Value from DEPLOY endpoint
approval_code {approval code} Yes Value from DEPLOY endpoint
is_approved {true/false} Yes Must be set to true to confirm approval of cost
curl --location --request POST 'https://api.curios.com/v2/api/contracts/approve' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 
--data-raw '{
  "cost": {cost}, 
  "currency": "{currency code}", 
  "approval_code": "{approval code}", 
  "is_approved": {true/false}
}'