Skip to main content
POST
gelato_getUserOperationQuote

Headers

X-API-Key
string
required

Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.

Path Parameters

chainId
number
required

Target network chain identifier.

Body

application/json
id
number
default:1
jsonrpc
string
default:2.0
method
string
default:gelato_getUserOperationQuote
params
(`UserOperationEntryPoint0.7` · object | `UserOperationEntryPoint0.6` · object | string | `StateOverrideSet` · object)[]
  1. Object - The UserOperation object (gas limits and prices are optional)
  2. String - The EntryPoint address the request should be sent through. This MUST be one of the entry points returned by the eth_supportedEntryPoints rpc call.
  3. Object - Optional state override set that allows changes to the state of a contract before executing the call.
Required array length: 2 - 3 elements

Response

Successful response

id
number
default:1
jsonrpc
string
default:2.0
result
object