permissionless
Version:
A utility library for working with ERC-4337
14 lines • 739 B
TypeScript
import type { Account, Chain, Client, Transport } from "viem";
import type { EtherspotBundlerRpcSchema } from "../../types/etherspot.js";
export type GetGasPriceResponseReturnType = {
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
};
/**
* Returns the live gas prices that you can use to send a user operation.
*
* @param client that you created using viem's createClient whose transport url is pointing to the Etherspot's bundler.
* @returns maxFeePerGas & maxPriorityFeePerGas
*/
export declare const getUserOperationGasPrice: (client: Client<Transport, Chain | undefined, Account | undefined, EtherspotBundlerRpcSchema>) => Promise<GetGasPriceResponseReturnType>;
//# sourceMappingURL=getUserOperationGasPrice.d.ts.map