Avalanche · Schema

AssetWithPriceInfo

BlockchainWeb3AvalancheNFTDeFiCross-Chain

Properties

Name Type Description
assetId string Unique ID for an asset.
name string Name of this asset.
symbol string Symbol for this asset (max 4 characters).
denomination number Denomination of this asset to represent fungibility.
type object
amount string Amount of the asset.
historicalPrice object The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
View JSON Schema on GitHub

JSON Schema

AssetWithPriceInfo.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/AssetWithPriceInfo.json",
  "title": "AssetWithPriceInfo",
  "type": "object",
  "properties": {
    "assetId": {
      "type": "string",
      "description": "Unique ID for an asset.",
      "examples": [
        "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
      ]
    },
    "name": {
      "type": "string",
      "description": "Name of this asset.",
      "examples": [
        "Avalanche"
      ]
    },
    "symbol": {
      "type": "string",
      "description": "Symbol for this asset (max 4 characters).",
      "examples": [
        "AVAX"
      ]
    },
    "denomination": {
      "type": "number",
      "description": "Denomination of this asset to represent fungibility.",
      "examples": [
        9
      ]
    },
    "type": {
      "examples": [
        "secp256k1"
      ],
      "$ref": "#/components/schemas/PrimaryNetworkAssetType"
    },
    "amount": {
      "type": "string",
      "description": "Amount of the asset.",
      "examples": [
        "5001000"
      ]
    },
    "historicalPrice": {
      "description": "The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.",
      "allOf": [
        {
          "$ref": "#/components/schemas/Money"
        }
      ]
    }
  },
  "required": [
    "assetId",
    "name",
    "symbol",
    "denomination",
    "type",
    "amount"
  ]
}