Blockchains & assets

Register an asset

Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are:

  • EVM based chains
  • Stellar
  • Algorand
  • TRON
  • NEAR
  • Solana
  • Sui
  • TON
post/assets

Request

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

blockchainIdstring required

Native asset ID of the blockchain

addressstring required

Asset address.

  • EVM-based chains: token contract address
  • Stellar (XLM): issuer address
  • Algorand (ALGO): asset ID
  • TRON (TRX): token contract address
  • NEAR: token address
  • Solana: token's mint account address
  • Sui: token's type
  • TON: token's address
symbolstring

Required for Stellar only, asset code is expected.

Example request

{
  "blockchainId": "(ETH, ETH_TEST5, MATIC_POLYGON)",
  "address": "0xe7A9as1oa38bc4da0248s179E30aa94CcF453991",
  "symbol": "TST3"
}

Response

A new asset has been created successfully

legacyIdstring required
assetClass'NATIVE' | 'FT' | 'NFT' | 'SFT' required

Example response

{
  "legacyId": "TST3_ETH",
  "assetClass": "FT",
  "onchain": {
    "symbol": "TST3",
    "name": "Test 3",
    "address": "0xe7A9as1oa38bc4da0248s179E30aa94CcF453991",
    "decimals": 18,
    "standard": "ERC20"
  },
  "metadata": {
    "scope": "Global"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.