参数
payloadobject必填- blockStateCalls: list of blocks, each with calls (transaction objects) and optional stateOverrides and blockOverrides; optional validation, traceTransfers and returnFullTransactions flags.
blockstring必填- Block number in hex (e.g. "0x1208a5f") or a tag: "latest", "safe", "finalized", "earliest" or "pending". L0vd endpoints run archive nodes, so any historical block works.
返回值
array One simulated block per entry, each with calls: returnData, logs, gasUsed and status.
适用场景
Simulate several dependent calls in one request: approve then swap, deposit then withdraw, or a whole multi-step strategy at a past block.
Test what-if scenarios with state overrides (balances, code, storage) and block overrides (timestamp, base fee) without deploying anything.
如何解读结果
The result has one entry per simulated block; each has calls with status, returnData, gasUsed and logs. Decode returnData with the ABI, as for eth_call.
提示
- Set validation to false (the default) to skip balance and nonce checks, which is what you want for analytics.
- Use it instead of many eth_call requests when calls depend on each other.