Skip to navigation
Wallets and AddressesContract whitelisting

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. For XLM, we need a valid contractAddress (Stellar address) and tokenId (Stellar asset code).For ICP, we need a valid contractAddress (valid ICP principal).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. Examples: BTC, ADA, SOL ...

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. For XLM, this is the Stellar address. For ICP, this is the ICP principal.
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. For COSMOS_TOKENFACTORY on zigchain, this is the on-chain subdenom of the token factory bank denom (e.g. stzig for the denom coin.<creator>.stzig).

kindstringOptional

Examples: "" (default), "NFT_AUTO", "NFT_XTZ_FA2", "NFT_EVM_ERC721", "NFT_EVM_ERC1155", "SOL_TOKEN", "SOL_TOKEN2022", "NFT_EVM_CRYPTOPUNKS", "COSMOS_TOKENFACTORY"

networkstringOptional

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

vaultProviderstringOptional
The provider of a vault contract. The only supported value is "morpho".

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