# 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](https://dashboard.alchemy.com/signup?utm_source=docs&utm_medium=referral&utm_content=chains_robinhood-chain_robinhood-chain-api-endpoints_eth-estimate-gas)

## 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.
