sarvalabs / js-moi-sdk

JavaScript library to interact with MOI Protocol via RPC API

Home Page:https://js-moi-sdk.docs.moi.technology/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making gasPrice and gasLimit optional when sending an interaction

BhimgoudaPatil opened this issue · comments

Making gasPrice and gasLimit optional when sending an interaction

This proposal is being presented after observing how ethers.js attempts to automatically estimate these two values by making an RPC call to the node for eth_estimateGas and eth_gasPrice.

Instead of users making these RPC calls beforehand, the js-moi-sdk can handle this process automatically by calling our moi.FuelEstimate method and for now our gasPrice is anyways set to 1, thereby enhancing the user experience.

resolved in #36