@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
28 lines • 799 B
TypeScript
import { RequestErrorType } from "viem/utils";
/**
* Parameters for the `avm.issueTx` method.
* This method sends a signed transaction to the network.
*
* @property tx - The signed transaction in hex format
* @property encoding - The encoding format for the transaction data. Must be "hex".
*/
export type IssueTxParameters = {
tx: string;
encoding: "hex";
};
/**
* Return type for the `avm.issueTx` method.
* Returns the ID of the issued transaction.
*
* @property txID - The ID of the issued transaction
*/
export type IssueTxReturnType = {
txID: string;
};
export type IssueTxErrorType = RequestErrorType;
export type IssueTxMethod = {
Method: "avm.issueTx";
Parameters: IssueTxParameters;
ReturnType: IssueTxReturnType;
};
//# sourceMappingURL=issueTx.d.ts.map