arbdebug_pricingModel

Request an update

Returns the and pricing state at evenly spaced blocks between start and end, with at most the configured block range bound of samples.

Source: nitro v3.12.2 execution/gethexec/api.go:163

Generated from Nitro v3.12.2.

https://arb1.arbitrum.io/rpc

Params

  1. [0] start BlockNumber requiredFirst block of the range.
  2. [1] end BlockNumber requiredLast block of the range.

Result

Prop

Type

{  "jsonrpc": "2.0",  "id": 1,  "result": {    "start": 0,    "end": 0,    "step": 0,    "timestamp": [      0    ],    "baseFee": [      0    ],    "gasBacklog": [      0    ],    "gasUsed": [      0    ],    "minBaseFee": 0,    "speedLimit": 0,    "perBlockGasLimit": 0,    "perTxGasLimit": 0,    "pricingInertia": 0,    "backlogTolerance": 0,    "l1BaseFeeEstimate": [      0    ],    "l1LastSurplus": [      0    ],    "l1FundsDue": [      0    ],    "l1FundsDueForRewards": [      0    ],    "l1UnitsSinceUpdate": [      0    ],    "l1LastUpdateTime": [      0    ],    "l1EquilibrationUnits": 0,    "l1PerBatchCost": 0,    "l1AmortizedCostCapBips": 0,    "l1PricingInertia": 0,    "l1PerUnitReward": 0,    "l1PayRewardTo": "string"  }}

Go definition

// nitro v3.12.2 execution/gethexec/api.go:163func (api *ArbDebugAPI) PricingModel(ctx context.Context, start, end rpc.BlockNumber) (PricingModelHistory, error)// nitro v3.12.2 execution/gethexec/api.go:112type PricingModelHistory struct {	Start            uint64     `json:"start"`	End              uint64     `json:"end"`	Step             uint64     `json:"step"`	Timestamp        []uint64   `json:"timestamp"`	BaseFee          []*big.Int `json:"baseFee"`	GasBacklog       []uint64   `json:"gasBacklog"`	GasUsed          []uint64   `json:"gasUsed"`	MinBaseFee       *big.Int   `json:"minBaseFee"`	SpeedLimit       uint64     `json:"speedLimit"`	PerBlockGasLimit uint64     `json:"perBlockGasLimit"`	PerTxGasLimit    uint64     `json:"perTxGasLimit"`	PricingInertia   uint64     `json:"pricingInertia"`	BacklogTolerance uint64     `json:"backlogTolerance"`	L1BaseFeeEstimate      []*big.Int `json:"l1BaseFeeEstimate"`	L1LastSurplus          []*big.Int `json:"l1LastSurplus"`	L1FundsDue             []*big.Int `json:"l1FundsDue"`	L1FundsDueForRewards   []*big.Int `json:"l1FundsDueForRewards"`	L1UnitsSinceUpdate     []uint64   `json:"l1UnitsSinceUpdate"`	L1LastUpdateTime       []uint64   `json:"l1LastUpdateTime"`	L1EquilibrationUnits   *big.Int   `json:"l1EquilibrationUnits"`	L1PerBatchCost         int64      `json:"l1PerBatchCost"`	L1AmortizedCostCapBips uint64     `json:"l1AmortizedCostCapBips"`	L1PricingInertia       uint64     `json:"l1PricingInertia"`	L1PerUnitReward        uint64     `json:"l1PerUnitReward"`	L1PayRewardTo          string     `json:"l1PayRewardTo"`}
curl -X POST https://arb1.arbitrum.io/rpc \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "arbdebug_pricingModel",  "params": [    "latest",    "latest"  ]}'

How is this guide?