Token metadata

get

Retrieves token metadata from the Moralis service.

Authorizations
Query parameters
chainstringRequired
  • The blockchain network identifier.
addressesstring[]Required
  • An array of token addresses to fetch metadata for.
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Responses
200
A promise that resolves to a `TokenMetadataAPIResponse` object containing the metadata, success status, and a message.
application/json
get
GET //data/token-metadata HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Accept: */*
200

A promise that resolves to a TokenMetadataAPIResponse object containing the metadata, success status, and a message.

{
  "success": true,
  "message": "text",
  "body": {
    "to": "text",
    "data": "text",
    "value": "text",
    "gasLimit": "text",
    "nonce": "text",
    "simulate": true,
    "gas": "text",
    "gasPrice": "text",
    "maxFeePerGas": "text",
    "maxPriorityFeePerGas": "text",
    "chain_id": "text",
    "encoding": "text",
    "type": 1,
    "accessList": [
      {
        "address": "text",
        "storageKeys": [
          "text"
        ]
      }
    ],
    "blobGas": "text",
    "blobGasFeeCap": "text",
    "blobHashes": [
      "text"
    ],
    "dryrun": true,
    "input": "text",
    "EOA": true,
    "contract_address": "text",
    "token_id": "text",
    "token_ids": "text",
    "approved": true,
    "broadcast": true,
    "alwaysIncrementNonce": true,
    "asset": "text",
    "amount": "text",
    "interestRateMode": 1,
    "referralCode": 1,
    "onBehalfOf": "text",
    "receiverAddress": "text",
    "assets": [
      "text"
    ],
    "amounts": [
      "text"
    ],
    "modes": [
      1
    ],
    "params": "text",
    "rateMode": 1,
    "useAsCollateral": true,
    "collateralAsset": "text",
    "debtAsset": "text",
    "user": "text",
    "debtToCover": "text",
    "receiveAToken": true,
    "inputTokens": [
      {
        "tokenAddress": "text",
        "amount": "text"
      }
    ],
    "outputTokens": [
      {
        "tokenAddress": "text",
        "proportion": 1
      }
    ],
    "slippageLimitPercent": 1,
    "minHealthFactor": "text",
    "premiums": [
      "text"
    ],
    "initiator": "text",
    "role": "text",
    "account": "text",
    "initialDeposit": "text",
    "borrowAmount": "text"
  },
  "address": "text",
  "data": [
    {
      "verified_contract": false,
      "possible_spam": false,
      "created_at": "text",
      "validated": 1,
      "block_number": "text",
      "thumbnail": "text",
      "logo_hash": "text",
      "logo": "text",
      "decimals": 18,
      "symbol": "text",
      "name": "text",
      "address_label": "text",
      "address": "text"
    }
  ]
}