Skip to navigation

Create whitelisted contracts

This endpoint creates a new whitelisted contracts. For ETH, tokenId is left empty For XTZ, tokenId is left empty for FA1.2 tokens and must have a value for FA2 tokens For ALGO, we either need a tokenId which is the assetId for algorand, or we need a contractAddress (creator address) and a symbol (unit name), which will be used to identify the asset. Required role: WhitelistedAddressCreator.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
blockchainstringRequired
Symbol of the blockchain on which to whitelist a contract
symbolstringRequired
Symbol of the token. For ALGO it is the unit name of the standard asset.
contractAddressstringOptional
Address of the smart contract. For ALGO standard assets, this is the address of the creator of the asset.
namestringOptional
Name for the contract
decimalsstringOptionalformat: "uint64"
Number of decimal places to consider as minimum unit of transfer
tokenIdstringOptional
Unused for ETH and Polygon For XTZ, this is used to create a FA2 token For ALGO standard assets, this is the globally unique asset id
kindstringOptional
networkstringOptional

Name of the blockchain network, eg. mainnet, testnet, or sepolia

Response

A successful response.
resultobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error