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) 627 B
import { RequestErrorType } from "viem/utils"; /** * The parameters for the `platform.issueTx` method. * * @param tx - The transaction to issue. * @param encoding - The encoding of the transaction. */ export type IssueTxParameters = { tx: string; encoding: "hex"; }; /** * The return type for the `platform.issueTx` method. * * @param txID - The ID of the issued transaction. */ export type IssueTxReturnType = { txID: string; }; export type IssueTxErrorType = RequestErrorType; export type IssueTxMethod = { Method: "platform.issueTx"; Parameters: IssueTxParameters; ReturnType: IssueTxReturnType; };