UNPKG

@0xfutbol/id

Version:

React component library with shared providers for 0xFutbol ID

24 lines (23 loc) 1.13 kB
import {an as hexToBigInt}from'./index-BJCJzM2_.js';import'react';import'react/jsx-runtime';import'@0xfutbol/id-sign';import'react-use';import'@0xfutbol/constants';import'thirdweb';import'@matchain/matchid-sdk-react';import'@tanstack/react-query';import'@matchain/matchid-sdk-react/index.css';import'react-dom';/** * Estimates the gas required to execute a transaction on the Ethereum network. * @param request - The EIP1193 request function. * @param transactionRequest - The transaction request object. * @returns A promise that resolves to the estimated gas as a bigint. * @rpc * @example * ```ts * import { getRpcClient, eth_estimateGas } from "thirdweb/rpc"; * const rpcRequest = getRpcClient({ client, chain }); * const gas = await eth_estimateGas(rpcRequest, { * to: "0x...", * ... * }); * ``` */ async function eth_estimateGas(request, transactionRequest) { const estimateResult = await request({ method: "eth_estimateGas", params: [transactionRequest], }); return hexToBigInt(estimateResult); }export{eth_estimateGas};//# sourceMappingURL=eth_estimateGas-B552v_73.js.map