import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
chainId: "43114",
});
async function run() {
const result = await avalanche.data.evm.address.contracts.listDeployments({
pageSize: 10,
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
});
for await (const page of result) {
console.log(page);
}
}
run();{
"contracts": [
{
"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>"
}
],
"nextPageToken": "<string>"
}Lists all contracts deployed by the given address.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
chainId: "43114",
});
async function run() {
const result = await avalanche.data.evm.address.contracts.listDeployments({
pageSize: 10,
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
});
for await (const page of result) {
console.log(page);
}
}
run();{
"contracts": [
{
"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>"
}
],
"nextPageToken": "<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.
A wallet address.
A page token, received from a previous list call. Provide this to retrieve the subsequent page.
The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1 <= x <= 100Was this page helpful?