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.
blockchain
Symbol of the blockchain on which to whitelist a contract
symbol
Symbol of the token.
For ALGO it is the unit name of the standard asset.
contractAddress
Address of the smart contract.
For ALGO standard assets, this is the address of the creator of the asset.
name
Name for the contract
decimals
Number of decimal places to consider as minimum unit of transfer
tokenId
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
kind
network
Name of the blockchain network, eg. mainnet, testnet, or sepolia
Response
A successful response.
result
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error