Contracts

Public endpoints for all smart contracts.



List     /contracts/list (GET)

List all smart contracts.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl -X GET 'https://marketplace-api.curios.com/contracts/list' \

-H 'Content-type: application/json'
-H 'curios-api-key: {API Key}'
-H 'curios-date: {UTC Date/Time Stamp}'
-H 'Authorization: Bearer {JWT}' \ 


Load     /contracts/load (GET)

Load smart contract details, including deployment status.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl -X GET 'https://marketplace-api.curios.com/contracts/load' \

-H 'Content-type: application/json'
-H 'curios-api-key: {API Key}'
-H 'curios-date: {UTC Date/Time Stamp}'
-H 'Authorization: Bearer {JWT}' \ 


Create     /contracts/create (POST)

Create new smart contracts.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

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 -X POST 'https://marketplace-api.curios.com/contracts/create' \

-H 'Content-type: application/json'
-H 'curios-api-key: {API Key}'
-H 'curios-date: {UTC Date/Time Stamp}'
-H 'Authorization: Bearer {JWT}' \ 
-d '{
  "blockchain": "{Polygon, Ethereum, Avalanche}", 
  "token_format": "{ERC721, ERC1155}", 
  "mintage_supply": {integer}, 
  "symbol": "{string}", 
  "title": "{string}", 
  "description": "{string}", 
  "reference_id": "{string}"
}'


Deploy     /contracts/deploy (POST)

Deploy a smart contract on the blockchain.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl -X POST 'https://marketplace-api.curios.com/contracts/deploy' \

-H 'Content-type: application/json'
-H 'curios-api-key: {API Key}'
-H 'curios-date: {UTC Date/Time Stamp}'
-H 'Authorization: Bearer {JWT}' \ 


Approve     /contracts/approve (POST)

Approve smart contract cost so it will proceed with deployment.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

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 -X POST 'https://marketplace-api.curios.com/contracts/approve' \

-H 'Content-type: application/json'
-H 'curios-api-key: {API Key}'
-H 'curios-date: {UTC Date/Time Stamp}'
-H 'Authorization: Bearer {JWT}' \ 
-d '{
  "cost": {cost}, 
  "currency": "{currency code}", 
  "approval_code": "{approval code}", 
  "is_approved": {true/false}
}'