Closed codesport closed 1 year ago
Would you guys consider having a GET based API to fetch the Gas Price like the other chains here:
https://github.com/cgewecke/hardhat-gas-reporter#token-and-gaspriceapi-options-example
Using https://api.harmony.one/api?module=proxy&action=eth_gasPrice should give us the same formatted output as the other chain's explorers do.
https://api.harmony.one/api?module=proxy&action=eth_gasPrice
I'm aware of this: https://docs.harmony.one/home/developers/api/methods/blockchain-related-methods/hmy_gasprice But it only accepts POST requests. So, it doesn't work natively with Hardhat Gas Reporter:
should return
{ "jsonrpc": "2.0", "id": 1, "result": "0xe8d4a51000" }
This is a feature for the explorer (hosted by the respective scanners) and not the nodes so I moved it here. We will look at it.
Problem/limitation At Hand
Would you guys consider having a GET based API to fetch the Gas Price like the other chains here:
https://github.com/cgewecke/hardhat-gas-reporter#token-and-gaspriceapi-options-example
Using
https://api.harmony.one/api?module=proxy&action=eth_gasPrice
should give us the same formatted output as the other chain's explorers do.I'm aware of this: https://docs.harmony.one/home/developers/api/methods/blockchain-related-methods/hmy_gasprice But it only accepts POST requests. So, it doesn't work natively with Hardhat Gas Reporter:
Proposed Solution
https://api.harmony.one/api?module=proxy&action=eth_gasPrice
should return
Alternatives Considered