wallets-wrapper
Version:
How to install
17 lines (16 loc) • 531 B
TypeScript
import { ethers } from 'ethers';
import { ChainIds } from '../models';
export declare const getFeeData: ({ chainId, from, to, data, value, }: {
chainId: ChainIds;
from: string;
to: string;
data?: string | undefined;
value?: number | undefined;
}) => Promise<{
nonce: number;
gasPrice: ethers.BigNumber;
maxFeePerGas: ethers.BigNumber | null;
maxPriorityFeePerGas: ethers.BigNumber | null;
gasLimit: ethers.BigNumber;
provider: ethers.providers.StaticJsonRpcProvider;
}>;