import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
});
async function run() {
const result = await avaCloudSDK.data.icm.get({
messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d",
});
console.log(result);
}
run();
{
"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"
}
Gets an ICM message by teleporter message ID.
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
});
async function run() {
const result = await avaCloudSDK.data.icm.get({
messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d",
});
console.log(result);
}
run();
{
"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"
}
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
The teleporter message ID of the ICM message.
Successful response
The response is of type object
.
Was this page helpful?