import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.icm.listByAddress({
pageSize: 10,
address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc",
network: "mainnet",
});
console.log(result);
}
run();{
"messages": [
{
"messageId": "<string>",
"icmContractAddress": "<string>",
"sourceBlockchainId": "<string>",
"destinationBlockchainId": "<string>",
"sourceEvmChainId": "<string>",
"destinationEvmChainId": "<string>",
"messageNonce": "<string>",
"from": "<string>",
"to": "<string>",
"messageExecuted": true,
"receipts": [
{
"receivedMessageNonce": "<string>",
"relayerRewardAddress": "<string>"
}
],
"receiptDelivered": true,
"rewardDetails": {
"address": "<string>",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"ercType": "ERC-20",
"value": "<string>",
"logoUri": "<string>",
"price": {
"currencyCode": "usd",
"value": 123
}
},
"sourceTransaction": {
"txHash": "<string>",
"timestamp": 123,
"gasSpent": "<string>"
},
"status": "pending",
"data": "<string>"
}
],
"nextPageToken": "<string>"
}Lists ICM messages by address. Ordered by timestamp in descending order.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.icm.listByAddress({
pageSize: 10,
address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc",
network: "mainnet",
});
console.log(result);
}
run();{
"messages": [
{
"messageId": "<string>",
"icmContractAddress": "<string>",
"sourceBlockchainId": "<string>",
"destinationBlockchainId": "<string>",
"sourceEvmChainId": "<string>",
"destinationEvmChainId": "<string>",
"messageNonce": "<string>",
"from": "<string>",
"to": "<string>",
"messageExecuted": true,
"receipts": [
{
"receivedMessageNonce": "<string>",
"relayerRewardAddress": "<string>"
}
],
"receiptDelivered": true,
"rewardDetails": {
"address": "<string>",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"ercType": "ERC-20",
"value": "<string>",
"logoUri": "<string>",
"price": {
"currencyCode": "usd",
"value": 123
}
},
"sourceTransaction": {
"txHash": "<string>",
"timestamp": 123,
"gasSpent": "<string>"
},
"status": "pending",
"data": "<string>"
}
],
"nextPageToken": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://developers.avacloud.io/llms.txt
Use this file to discover all available pages before exploring further.
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
An EVM 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 <= 100Either mainnet or testnet/fuji.
mainnet, fuji, testnet Was this page helpful?