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

29 lines (24 loc) 725 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the `platform.issueTx` method. * Issue a transaction to the Platform Chain. * @property tx - The byte representation of a transaction * @property encoding - The encoding format for the transaction bytes. Can only be hex when a value is provided */ export type IssueTxParameters = { tx: string; encoding: "hex"; }; /** * Return type for the `platform.issueTx` method. * @property txID - The transaction's ID */ export type IssueTxReturnType = { txID: string; }; export type IssueTxErrorType = RequestErrorType; export type IssueTxMethod = { Method: "platform.issueTx"; Parameters: IssueTxParameters; ReturnType: IssueTxReturnType; };