Assets

Create Asset Info

Changed on

Create asset infos in the Fordefi platform.

post/api/v1/assets/asset-infos

Request

  • Base URL
    https://api.fordefi.com
  • URL
    https://api.fordefi.com/api/v1/assets/asset-infos
  • Auth
    HTTP bearer

Request body

Example request

{
  "asset_identifier": {
    "details": {
      "token": {
        "base58_repr": "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
      }
    }
  }
}

Response

Successful Response

idstring uuid required

The asset ID.

namestring required

The name of the asset.

symbolstring required

The symbol (ticker) of the asset.

decimalsinteger required
verifiedboolean required

True if this asset is verified by Fordefi, False otherwise.

metadata_uristring

The URI of the asset metadata.

is_spamboolean required

True if this asset is spam, False otherwise.

logo_urlstring uri

The URL of the asset logo.

explorer_urlstring uri

The URL of a blockchain explorer that provides real-time information about the asset.

issuer_namestring

Best-effort display name of the issuer

Example response

{
  "asset_identifier": {
    "chain": {
      "native_currency_symbol": "ETH",
      "native_currency_name": "Ether",
      "blockchain_explorer": {
        "transaction_url": "https://etherscan.io/tx/",
        "address_url": "https://etherscan.io/address/",
        "root_url": "https://etherscan.io/",
        "transaction_format_url": "https://etherscan.io/tx/%s",
        "address_format_url": "https://etherscan.io/address/%s",
        "asset_format_url": "https://etherscan.io/address/%s"
      }
    }
  }
}

Changes

    • breaking

      the ///// request property's minLength was increased from 0 to 1

    • breaking

      the ///// request property's minLength was increased from 0 to 1

    • breaking

      the ////// request property's minLength was increased from 70 to 71

    • breaking

      the ///// request property's minLength was increased from 0 to 1

    • breaking

      the //// request property's minLength was increased from 0 to 1

    • breaking

      the //// request property's minLength was increased from 0 to 1

    • breaking

      the // request property's minLength was increased from 0 to 1

    • breaking

      added the pattern ^0[xX][a-fA-F0-9]+$ to the request property /////

    • breaking

      added the pattern ^[a-zA-Z0-9_-]+::12[a-fA-F0-9]{66}$ to the request property //////

    • warning

      the ///// request property's maxLength was set to 66

    • warning

      the //// request property's max was set to 18446744073709551616.00

    • warning

      the //// request property's min was set to 0.00

    • info

      the ////// request property's maxLength was increased from 251 to 255

    • info

      added ripple discriminator mapping keys to the request property

    • info

      added to the request property oneOf list