Returns gas price for a specific block_height or block_hash. Using [null] will return the most recent block's gas price.

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

JsonRpcRequestForGasPrice required
id, string required
jsonrpc, string required
method, 'gas_price' required
params, RpcGasPriceRequest required

Response

union required
object required
OR
object required

Changes

    • breaking

      added subschema #2 subschema #3 to the oneOf[subschema #2]/error response property oneOf list for the response status

    • breaking

      the oneOf[subschema #2]/error response's property type changed from object to no type for status

    • breaking

      removed the required property oneOf[subschema #2]/error/code from the response with the status

    5 more changes in this revision