Create a contract
POST
Create a contract
Loading code example
Loading code example
Authorizations
apiKeyAuthstringheaderrequired
API key passed in the header.
Body
Body
namestringrequiredLength:
<= 40addressstringrequiredThe address of the contract
chainIdnumberrequiredabianytype"erc20" | "erc721" | "erc1155" | "custom"requiredAllowed values:
"erc20" | "erc721" | "erc1155" | "custom"organizationIdstring<uuid>requiredwebsiteIdstring<uuid>requirediconUrlstring<uri>Response
application/json
201
idstring<uuid>requiredUnique identifier for the contract
namestringrequiredName of the contract
Length:
<= 40addressstringrequiredContract address matching the required format
Pattern:
^0x[a-fA-F0-9]{40}$chainIdinteger<int64>requiredID of the blockchain chain
abianyApplication Binary Interface of the contract
type"erc20" | "erc721" | "erc1155" | "custom"requiredType of the contract
Allowed values:
"erc20" | "erc721" | "erc1155" | "custom"organizationIdstring<uuid>requiredUnique identifier for the organization
iconUrlstring<uri>Optional icon image for the contract; used as the reward token icon