Learn how to use the getFeeQuotes JSON-RPC method.
curl --request POST \
--url 'https://rpc.particle.network/evm-chain/#particle_aa_getFeeQuotes' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "particle_aa_getFeeQuotes",
"params": [
"<string>"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"verifyingPaymasterGasless": {},
"verifyingPaymasterNative": {},
"tokenPaymaster": {}
},
"chainId": 80001
}getFeeQuotesgetFeeQuotes 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:
name - string.version - string.ownerAddress - string.biconomyApiKey - (optional), string. It should only be used if you’d like to use a Biconomy Paymaster.{
"jsonrpc": "2.0",
"id": "f216c7ea-3986-4784-954f-e54320c75b40",
"chainId": 80001,
"method": "particle_aa_getFeeQuotes",
"params": [
// account config
{
"name": "BICONOMY",
"version": "1.0.0",
"ownerAddress": "0xA60123a1056e9D38B64c4993615F27cCe9A9E8D5",
"biconomyApiKey": "LdF-gC43H.6f0ec763-fde5-4d5e-89f6-1b9ef12ba4a4" // optional
},
// txs
[
{
"to": "0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8",
"value": "0x1",
"data": "0x"
}
]
]
}
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request to retrieve fee quotes for operations.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
API method being called.
particle_aa_getFeeQuotes Parameters for retrieving fee quotes.
Successful response with fee quotes.
Was this page helpful?
curl --request POST \
--url 'https://rpc.particle.network/evm-chain/#particle_aa_getFeeQuotes' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "particle_aa_getFeeQuotes",
"params": [
"<string>"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"verifyingPaymasterGasless": {},
"verifyingPaymasterNative": {},
"tokenPaymaster": {}
},
"chainId": 80001
}