Skip to main content

gas_getUserOperationGasPrice

This method is used to get the recommended gas price to ensure a timely inclusion of a user operation by the bundler.

Parameters

None.

Returns

A JSON object with the following properties:

  • slow: A JSON object with the following properties:
    • maxFeePerGas: A string representing the maximum fee per gas.
    • maxPriorityFeePerGas: A string representing the maximum priority fee per gas.
  • standard: A JSON object with the following properties:
    • maxFeePerGas: A string representing the maximum fee per gas.
    • maxPriorityFeePerGas: A string representing the maximum priority fee per gas.
  • fast: A JSON object with the following properties:
    • maxFeePerGas: A string representing the maximum fee per gas.
    • maxPriorityFeePerGas: A string representing the maximum priority fee per gas.

Example Request

{
"jsonrpc":"2.0",
"id":1,
"method":"gas_getUserOperationGasPrice",
"params":[]
}

Example Response

{
"jsonrpc":"2.0",
"id":1,
"result":{
"slow":{
"maxFeePerGas":"0x123456",
"maxPriorityFeePerGas":"0x123456"
},
"standard":{
"maxFeePerGas":"0x123456",
"maxPriorityFeePerGas":"0x123456"
},
"fast":{
"maxFeePerGas":"0x123456",
"maxPriorityFeePerGas":"0x123456"
}
}
}