getUserOperationGasPrice
Return a User Operation based on a User Operation hash.
Usage
import { pimlicoBundlerClient } from "./client"
const gasPriceResult = await pimlicoBundlerClient.getUserOperationGasPrice()
/**
* {
"slow": {
"maxFeePerGas": 3267781404n,
"maxPriorityFeePerGas": 3267781404n
},
"standard": {
"maxFeePerGas": 3439769899n,
"maxPriorityFeePerGas": 3439769899n
},
"fast": {
"maxFeePerGas": 3620810421n,
"maxPriorityFeePerGas": 3620810421n
}
}
*/
Returns
- Type:
GetUserOperationGasPriceReturnType
The maxFeePerGas
and maxPriorityFeePerGas
values for the different gas price tiers. Choosing a faster gas price will mean faster inclusion by the Pimlico Bundler.