@0xfutbol/id
Version:
React component library with shared providers for 0xFutbol ID
24 lines (23 loc) • 1.17 kB
JavaScript
;var index=require('./index-DwkZmKdT.js');require('react'),require('react/jsx-runtime'),require('@0xfutbol/id-sign'),require('react-use'),require('@0xfutbol/constants'),require('thirdweb'),require('@matchain/matchid-sdk-react'),require('@tanstack/react-query'),require('@matchain/matchid-sdk-react/index.css'),require('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 index.an(estimateResult);
}exports.eth_estimateGas=eth_estimateGas;//# sourceMappingURL=eth_estimateGas-Dx1yeV--.js.map