Skip to main content
POST
getFeeQuotes

Understanding getFeeQuotes

  • getFeeQuotes returns an array of UserOperation objects and hashes derived from a standard transaction object. Each returned object corresponds to a specific gas Payment method. It takes:
    • Account config object:
      • name - string.
      • version - string.
      • ownerAddress - string.
      • biconomyApiKey - (optional), string. It should only be used if you’d like to use a Biconomy Paymaster.
    • An array of standard transaction objects.

Query example

JSON

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to retrieve fee quotes for operations.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

method
enum<string>
required

API method being called.

Available options:
particle_aa_getFeeQuotes
params
(string | object[])[]
required

Parameters for retrieving fee quotes.

Response

200 - application/json

Successful response with fee quotes.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

result
object
required
chainId
integer

The blockchain chain ID.

Example:

80001