module

Transactions

Constants

LogChunkBlocks = 2000_u64

Number of blocks queried per eth_getLogs call. Public endpoints cap the scan range, so large histories are walked in chunks.

Class methods

erc20_from_row(row : Hash(String, JSON::Any)) : Transfer
Source
format_amount(raw : BigInt, decimals : Int32) : String

Formats a raw integer amount with decimals fractional digits.

Source
list(rpc : EthereumRpc, address : String, from_block : UInt64 = 0_u64, to_block : UInt64 | Nil = nil, include_traces : Bool = true, include_logs : Bool = true, chunk_blocks : UInt64 = LogChunkBlocks) : HistoryResult
Source
list_explorer(api : ExplorerApi, address : String) : HistoryResult
Source
native_from_row(row : Hash(String, JSON::Any)) : Transfer
Source