Versions in this module Expand all Collapse all v0 v0.55.2 Apr 12, 2025 v0.55.1 Apr 12, 2025 Changes in this version + func MultiCall(ctx context.Context, client rpc.RPC, calls []types.Call, ...) ([][]byte, error) + type CachedLogs struct + func NewCachedLogs(getter LogsGetter, cacheMaxRange, getterMaxRange uint64) *CachedLogs + func (cl *CachedLogs) GetLogs(ctx context.Context, from, to uint64) ([]types.Log, error) + type ERC20 struct + func NewERC20(client rpc.RPC) (*ERC20, error) + func (e *ERC20) GetDetails(ctx context.Context, addresses []types.Address) ([]ERC20Details, error) + func (e *ERC20) GetSymbolAndDecimals(ctx context.Context, addresses []types.Address) (map[string]ERC20Details, error) + type ERC20Details struct + Address types.Address + Decimals int + Symbol string + type LogsGetter interface + GetLogs func(ctx context.Context, fromBlock, toBlock uint64) ([]types.Log, error) + type LogsIterator struct + func NewLogsIterator(client LogsIteratorRPC, batchSize uint64, query types.FilterLogsQuery) *LogsIterator + func (i *LogsIterator) IterateRange(ctx context.Context, blocks uint64, ...) error + func (i *LogsIterator) IterateSince(ctx context.Context, since time.Time, ...) error + type LogsIteratorRPC interface + BlockByNumber func(ctx context.Context, number types.BlockNumber, full bool) (*types.Block, error) + BlockNumber func(ctx context.Context) (*big.Int, error) + GetLogs func(ctx context.Context, query *types.FilterLogsQuery) ([]types.Log, error)