UNPKG

@substrate/api-sidecar

Version:

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

15 lines (14 loc) 706 B
import { ApiPromise } from '@polkadot/api'; import { BlockHash, RuntimeDispatchInfo, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces'; import { AbstractService } from '../AbstractService'; export declare class TransactionFeeEstimateService extends AbstractService { /** * Fetch estimated fee information for a SCALE-encoded extrinsic at a given * block. * * @param api ApiPromise to use for the call * @param hash `BlockHash` to make call at * @param extrinsic scale encoded extrinsic to get a fee estimate for */ fetchTransactionFeeEstimate(api: ApiPromise, hash: BlockHash, transaction: string): Promise<RuntimeDispatchInfo | RuntimeDispatchInfoV1>; }