0

is it possible in solidity create a function to estimate a gas fee and apply a % of fees based on gas fees ?

Thanks

1 Answer 1

0

The smart contract can't handle the gas fee because the gas fee is determined by the market demand and node validators so you can do it using RPC services with ethers.js or web3.js.

Getting in inside a smart contract will generate a need for oracles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.