Параметры
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.