import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
chainId: "43114",
});
async function run() {
const result = await avalanche.data.evm.contracts.getMetadata({
address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
});
console.log(result);
}
run();{
"address": "<string>",
"ercType": "ERC-721",
"name": "<string>",
"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>"
],
"deploymentDetails": {
"txHash": "<string>",
"deployerAddress": "<string>",
"deployerContractAddress": "<string>"
},
"symbol": "<string>"
}Gets metadata about the contract at the given address.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
chainId: "43114",
});
async function run() {
const result = await avalanche.data.evm.contracts.getMetadata({
address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
});
console.log(result);
}
run();{
"address": "<string>",
"ercType": "ERC-721",
"name": "<string>",
"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>"
],
"deploymentDetails": {
"txHash": "<string>",
"deployerAddress": "<string>",
"deployerContractAddress": "<string>"
},
"symbol": "<string>"
}Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.
Contract address on the relevant chain.
Successful response
A wallet or contract address in mixed-case checksum encoding.
"0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
ERC-721 The contract name.
"Wrapped AVAX"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The contract symbol.
"WAVAX"
Was this page helpful?