sarvalabs / js-moi-sdk

JavaScript library to interact with MOI Protocol via RPC API
https://js-moi-sdk.docs.moi.technology/
Apache License 2.0
24 stars 2 forks source link

Making gasPrice and gasLimit optional when sending an interaction #29

Closed BhimgoudaPatil closed 10 months ago

BhimgoudaPatil commented 11 months ago

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.

sarvalabs-harshrastogi commented 10 months ago

resolved in https://github.com/sarvalabs/js-moi-sdk/pull/36