Skandha Bundler
Bundler Fee History
We can check the fee history of any Skandha bundler, this will return a collection of historical gas prices for submitted userops.
A sample request through curl like this can be used, with any Skandha bundler deployment being the endpoint.
This can be run in any command line.
skandha_feeHistory is the method.
curl --location 'https://polygon-bundler.etherspot.io/' \
--header 'Content-Type: application/json' \
--data '{
"id": 3,
"method": "skandha_feeHistory",
"params": [
"0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"15",
"latest"
],
"jsonrpc": "2.0"
}'
The skandha_feeHistory method accepts 3 params:
- EntryPoint address: address of the entrypoint contract.
- blockCount: Number of blocks in the requested range.
- newestBlock: Highest number block of the requested range.
In return the bundler will return a collection of historical gas prices for submitted userops.
A successful response will look like this:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"actualGasPrice": [
"0x307a7e7f36",
"0x307a7e7f36",
"0x2ff9dac0c4",
"0x2e61367b3d",
],
"maxFeePerGas": [
"0x3f7de0dc1d",
"0x3f7de0dc1d",
"0x41c725f6d1",
"0x3f322ffe26",
],
"maxPriorityFeePerGas": [
"0xcb2c6926c",
"0xcb2c6926c",
"0xd27d46490",
"0xca3a332d4",
]
}
}