Get Started
Learn
- Tutorials
Health Check
- Health Check
EVM
- Chains
- Blocks
- Transactions
- Balances
- Contracts
- NFTs
Primary Network
- Network, Chains & subnet
- Validators & Delegators
- Blocks
- Vertices
- Transactions
- Balances & UTXOs
- Rewards
- Assets
ICM Services
- Teleporter
- Interchain Messaging
- Signature Aggregator
Operations
- Operations
Usage Metrics
- Usage Metrics
List ICM messages by address
Lists ICM messages by address. Ordered by timestamp in descending order.
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
chainId: "43114",
network: "mainnet",
});
async function run() {
const result = await avaCloudSDK.data.icm.listIcmMessagesByAddress({
address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc",
network: "mainnet",
});
// Handle the result
console.log(result);
}
run();
{
"nextPageToken": "<string>",
"messages": [
{
"messageId": "<string>",
"icmContractAddress": "<string>",
"sourceBlockchainId": "<string>",
"destinationBlockchainId": "<string>",
"sourceEvmChainId": "<string>",
"destinationEvmChainId": "<string>",
"messageNonce": "<string>",
"from": "<string>",
"to": "<string>",
"data": "<string>",
"messageExecuted": true,
"receipts": [
{
"receivedMessageNonce": "<string>",
"relayerRewardAddress": "<string>"
}
],
"receiptDelivered": true,
"rewardDetails": {
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"name": "Wrapped AVAX",
"symbol": "WAVAX",
"decimals": 18,
"logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
"ercType": "ERC-20",
"price": {
"currencyCode": "usd",
"value": "42.42"
},
"value": "<string>"
},
"sourceTransaction": {
"txHash": "<string>",
"timestamp": 123,
"gasSpent": "<string>"
},
"status": "pending"
}
]
}
Authorizations
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
Path Parameters
An EVM address.
Query Parameters
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 <= 100
Either mainnet or testnet/fuji.
mainnet
, fuji
, testnet
, devnet
Response
A wallet or contract address in mixed-case checksum encoding.
"0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
The contract name.
"Wrapped AVAX"
The contract symbol.
"WAVAX"
The number of decimals the token uses. For example 6
, means to divide the token amount by 1000000
to get its user representation.
18
ERC-20
The logo uri for the address.
"https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"
The token price, if available.
pending
A token, which can be sent as pageToken
to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
Was this page helpful?
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
chainId: "43114",
network: "mainnet",
});
async function run() {
const result = await avaCloudSDK.data.icm.listIcmMessagesByAddress({
address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc",
network: "mainnet",
});
// Handle the result
console.log(result);
}
run();
{
"nextPageToken": "<string>",
"messages": [
{
"messageId": "<string>",
"icmContractAddress": "<string>",
"sourceBlockchainId": "<string>",
"destinationBlockchainId": "<string>",
"sourceEvmChainId": "<string>",
"destinationEvmChainId": "<string>",
"messageNonce": "<string>",
"from": "<string>",
"to": "<string>",
"data": "<string>",
"messageExecuted": true,
"receipts": [
{
"receivedMessageNonce": "<string>",
"relayerRewardAddress": "<string>"
}
],
"receiptDelivered": true,
"rewardDetails": {
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"name": "Wrapped AVAX",
"symbol": "WAVAX",
"decimals": 18,
"logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
"ercType": "ERC-20",
"price": {
"currencyCode": "usd",
"value": "42.42"
},
"value": "<string>"
},
"sourceTransaction": {
"txHash": "<string>",
"timestamp": 123,
"gasSpent": "<string>"
},
"status": "pending"
}
]
}