Avalanche · Schema

Erc1155TokenBalance

BlockchainWeb3AvalancheNFTDeFiCross-Chain

Properties

Name Type Description
address string A wallet or contract address in mixed-case checksum encoding.
ercType string
tokenId string
tokenUri string
metadata object
chainId string The evm chain id.
balance string The address balance for the token, in units specified by the `decimals` value for the contract.
View JSON Schema on GitHub

JSON Schema

Erc1155TokenBalance.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/Erc1155TokenBalance.json",
  "title": "Erc1155TokenBalance",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "A wallet or contract address in mixed-case checksum encoding.",
      "examples": [
        "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
      ]
    },
    "ercType": {
      "type": "string",
      "enum": [
        "ERC-1155"
      ]
    },
    "tokenId": {
      "type": "string"
    },
    "tokenUri": {
      "type": "string"
    },
    "metadata": {
      "$ref": "#/components/schemas/Erc1155TokenMetadata"
    },
    "chainId": {
      "type": "string",
      "description": "The evm chain id.",
      "examples": [
        "43114"
      ]
    },
    "balance": {
      "type": "string",
      "description": "The address balance for the token, in units specified by the `decimals` value for the contract.",
      "examples": [
        "2000000000000000000"
      ]
    }
  },
  "required": [
    "address",
    "ercType",
    "tokenId",
    "tokenUri",
    "metadata",
    "chainId",
    "balance"
  ]
}