getGasPrice
Retrieve current gas prices for Ethereum transactions across supported chains; specify chainId or format in Gwei for precise results.
Instructions
Get the current gas price. If chainId is not specified, will return gas price for all supported chains.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | ||
| formatGwei | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "number"
},
"formatGwei": {
"type": "boolean"
}
},
"type": "object"
}