Japanese version: /ja/doc/concepts/blocks-receipts-logs.html
Blocks, Receipts, Logs
TL;DR
- Blocks/receipts/logs are exposed via Candid types.
- Receipt includes
status,gas_used,effective_gas_price,contract_address, andlogs.
Key Points
logs[].logIndexis the in-block ordinal index- receipt lookup can return
Found/NotFound/PossiblyPruned/Pruned
Pitfalls
- Designing as if pruned history is always permanently queryable
- Mixing
tx_idandeth_tx_hashlookup paths
Sources
crates/ic-evm-wrapper/evm_canister.didcrates/ic-evm-rpc/src/lib.rstools/rpc-gateway/src/handlers.ts