@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
25 lines • 823 B
TypeScript
import { RequestErrorType } from "viem/utils";
import { XChainTransactionType } from "./common.js";
/**
* Parameters for the `avm.getTx` method.
*
* @property txID - The ID of the transaction to retrieve
* @property encoding - The encoding format for the transaction data. Defaults to "json" if not specified.
*/
export type GetTxParameters = {
txID: string;
encoding?: "hex" | "json";
};
/**
* Return type for the `avm.getTx` method.
* Returns the transaction in the requested format.
* @see {@link XChainTransactionType} for detailed structure
*/
export type GetTxReturnType = XChainTransactionType;
export type GetTxErrorType = RequestErrorType;
export type GetTxMethod = {
Method: "avm.getTx";
Parameters: GetTxParameters;
ReturnType: GetTxReturnType;
};
//# sourceMappingURL=getTx.d.ts.map