eth_estimateUserOperationGas

generates and returns an estimate of how much gas is necessary to allow the transaction to complete, given a UserOperation.

Parameters:

Object -

Returns:

Object

Example:

// Request
curl https://taiko.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" 
--data 
'{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "eth_estimateUserOperationGas",
  "params": [
    {
      sender,
      nonce,
      initCode,
      callData,
      callGasLimit,
      verificationGasLimit,