eth_estimateGas - Robinhood Chain API | Alchemy Docs
eth_estimateGas
POST
https://robinhood-mainnet.g.alchemy.com/v2/{apiKey}
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
Path Parameters
apiKey
- Type: string
- Required: Yes
- Default:
docs-demo
For higher throughput, create your own API key
Request
Transaction
- Type: object
- Required: Yes
The transaction object for which to estimate gas usage.
Block
- Type: string or enum
- Required: No
- Default:
'latest'
Responses
200
The estimated amount of gas required for the transaction, as a hexadecimal string.