@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
21 lines (17 loc) • 480 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* The return type for the `avm.getTxFee` method.
*
* @property txFee - The fee for the transaction.
* @property createAssetTxFee - The fee for the create asset transaction.
*/
export type GetTxFeeReturnType = {
txFee: number;
createAssetTxFee: number;
};
export type GetTxFeeErrorType = RequestErrorType;
export type GetTxFeeMethod = {
Method: "avm.getTxFee";
Parameters: {};
ReturnType: GetTxFeeReturnType;
};