UNPKG

@avalanche-sdk/client

Version:

A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa

30 lines (25 loc) 811 B
import { RequestErrorType } from "viem/utils"; import { PChainTransactionStatus } from "./common.js"; /** * Parameters for the `platform.getTxStatus` method. * Get the status of a transaction. * @property txID - The ID of the transaction to get the status of */ export type GetTxStatusParameters = { txID: string; }; /** * Return type for the `platform.getTxStatus` method. * @property status - The status of the transaction * @property reason - The reason for the transaction's status, if applicable */ export type GetTxStatusReturnType = { status: PChainTransactionStatus; reason?: string; }; export type GetTxStatusErrorType = RequestErrorType; export type GetTxStatusMethod = { Method: "platform.getTxStatus"; Parameters: GetTxStatusParameters; ReturnType: GetTxStatusReturnType; };