import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.operations.getResult({
operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138",
});
console.log(result);
}
run();{
"operationId": "<string>",
"operationType": "TRANSACTION_EXPORT_PRIMARY_NETWORK",
"operationStatus": "RUNNING",
"createdAtTimestamp": 123,
"updatedAtTimestamp": 123,
"message": "<string>",
"metadata": {
"code": "ErrInvalidRequest",
"downloadUrl": "<string>",
"nextDate": "<string>"
}
}Gets operation details for the given operation id.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.operations.getResult({
operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138",
});
console.log(result);
}
run();{
"operationId": "<string>",
"operationType": "TRANSACTION_EXPORT_PRIMARY_NETWORK",
"operationStatus": "RUNNING",
"createdAtTimestamp": 123,
"updatedAtTimestamp": 123,
"message": "<string>",
"metadata": {
"code": "ErrInvalidRequest",
"downloadUrl": "<string>",
"nextDate": "<string>"
}
}Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
UUID of given operation
Successful response
TRANSACTION_EXPORT_PRIMARY_NETWORK, TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING, TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE, TRANSACTION_EXPORT_EVM RUNNING, COMPLETED, COMPLETED_WITH_WARNING, FAILED Show child attributes
Was this page helpful?