opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
11 lines • 1.09 kB
TypeScript
import type { SendTransactionParameters } from '../../actions/wallet/sendTransaction.js';
import type { Client } from '../../clients/createClient.js';
import type { Transport } from '../../clients/transports/createTransport.js';
import type { Account } from '../../types/account.js';
import type { ChainEIP712 } from '../types/chain.js';
import type { PublicZkSyncRpcSchema } from '../types/eip1193.js';
import type { ZkSyncFee } from '../types/fee.js';
export type EstimateFeeParameters<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined> = SendTransactionParameters<chain, account, chainOverride>;
export type EstimateFeeReturnType = ZkSyncFee;
export declare function estimateFee<chain extends ChainEIP712 | undefined, account extends Account | undefined>(client: Client<Transport, chain, account, PublicZkSyncRpcSchema>, parameters: EstimateFeeParameters<chain, account>): Promise<EstimateFeeReturnType>;
//# sourceMappingURL=estimateFee.d.ts.map