GET
/
v1
/
chains
/
{chainId}
/
addresses
/
{address}
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.evm.contracts.getContractMetadata({
    chainId: "43114",
    address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "name": "Wrapped AVAX",
  "description": "<string>",
  "officialSite": "<string>",
  "email": "<string>",
  "logoAsset": {
    "assetId": "<string>",
    "imageUri": "<string>"
  },
  "bannerAsset": {
    "assetId": "<string>",
    "imageUri": "<string>"
  },
  "color": "<string>",
  "resourceLinks": [
    {
      "type": "Blog",
      "url": "<string>"
    }
  ],
  "tags": [
    "<string>"
  ],
  "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
  "deploymentDetails": {
    "txHash": "<string>",
    "deployerAddress": "<string>",
    "deployerContractAddress": "<string>"
  },
  "ercType": "ERC-721",
  "symbol": "WAVAX"
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Path Parameters

chainId
string
required

A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.

address
string
required

Contract address on the relevant chain.

Response

200
application/json
Successful response
address
string
required

A wallet or contract address in mixed-case checksum encoding.

deploymentDetails
object
required
ercType
enum<string>
required
Available options:
ERC-721
name
string

The contract name.

description
string
officialSite
string
email
string
logoAsset
object
bannerAsset
object
color
string
tags
string[]
symbol
string

The contract symbol.