arbitrum_sepolia

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_blockchain_arbitrum_sepolia_arbitrum_sepolia_index_types_proto protoreflect.FileDescriptor

Functions

func ToEvenFromLogProto

func ToEvenFromLogProto(obj *ArbitrumSepoliaEventLog) *seer_common.EventJson

Types

type ArbitrumSepoliaBlock

type ArbitrumSepoliaBlock struct {
	BlockNumber      uint64                        `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`          // The block number
	Difficulty       uint64                        `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty,omitempty"`                               // The difficulty of this block
	ExtraData        string                        `protobuf:"bytes,3,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`                 // Extra data included in the block
	GasLimit         uint64                        `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`                   // The gas limit for this block
	GasUsed          uint64                        `protobuf:"varint,5,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`                      // The total gas used by all transactions in this block
	BaseFeePerGas    string                        `protobuf:"bytes,6,opt,name=base_fee_per_gas,json=baseFeePerGas,proto3" json:"base_fee_per_gas,omitempty"` // The base fee per gas for this block
	Hash             string                        `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"`                                            // The hash of this block
	LogsBloom        string                        `protobuf:"bytes,8,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`                 // The logs bloom filter for this block
	Miner            string                        `protobuf:"bytes,9,opt,name=miner,proto3" json:"miner,omitempty"`                                          // The address of the miner who mined this block
	Nonce            string                        `protobuf:"bytes,10,opt,name=nonce,proto3" json:"nonce,omitempty"`                                         // The nonce of this block
	ParentHash       string                        `protobuf:"bytes,11,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`             // The hash of the parent block
	ReceiptsRoot     string                        `protobuf:"bytes,12,opt,name=receipts_root,json=receiptsRoot,proto3" json:"receipts_root,omitempty"`       // The root hash of the receipts trie
	Sha3Uncles       string                        `protobuf:"bytes,13,opt,name=sha3_uncles,json=sha3Uncles,proto3" json:"sha3_uncles,omitempty"`             // The SHA3 hash of the uncles data in this block
	Size             uint64                        `protobuf:"varint,14,opt,name=size,proto3" json:"size,omitempty"`                                          // The size of this block
	StateRoot        string                        `protobuf:"bytes,15,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`                // The root hash of the state trie
	Timestamp        uint64                        `protobuf:"varint,16,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	TotalDifficulty  string                        `protobuf:"bytes,17,opt,name=total_difficulty,json=totalDifficulty,proto3" json:"total_difficulty,omitempty"`    // The total difficulty of the chain until this block
	TransactionsRoot string                        `protobuf:"bytes,18,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"` // The root hash of the transactions trie
	IndexedAt        uint64                        `protobuf:"varint,19,opt,name=indexed_at,json=indexedAt,proto3" json:"indexed_at,omitempty"`                     // When the block was indexed by crawler
	Transactions     []*ArbitrumSepoliaTransaction `protobuf:"bytes,20,rep,name=transactions,proto3" json:"transactions,omitempty"`                                 // The transactions included in this block
	MixHash          string                        `protobuf:"bytes,21,opt,name=mix_hash,json=mixHash,proto3" json:"mix_hash,omitempty"`                            // The timestamp of this block
	SendCount        string                        `protobuf:"bytes,22,opt,name=send_count,json=sendCount,proto3" json:"send_count,omitempty"`                      // The number of sends in this block
	SendRoot         string                        `protobuf:"bytes,23,opt,name=send_root,json=sendRoot,proto3" json:"send_root,omitempty"`                         // The root hash of the sends trie
	L1BlockNumber    uint64                        `protobuf:"varint,24,opt,name=l1_block_number,json=l1BlockNumber,proto3" json:"l1_block_number,omitempty"`       // The block number of the corresponding L1 block
	// contains filtered or unexported fields
}

Represents a block in the Arbitrum blockchain

func ToProtoSingleBlock

func ToProtoSingleBlock(obj *seer_common.BlockJson) *ArbitrumSepoliaBlock

func (*ArbitrumSepoliaBlock) Descriptor deprecated

func (*ArbitrumSepoliaBlock) Descriptor() ([]byte, []int)

Deprecated: Use ArbitrumSepoliaBlock.ProtoReflect.Descriptor instead.

func (*ArbitrumSepoliaBlock) GetBaseFeePerGas

func (x *ArbitrumSepoliaBlock) GetBaseFeePerGas() string

func (*ArbitrumSepoliaBlock) GetBlockNumber

func (x *ArbitrumSepoliaBlock) GetBlockNumber() uint64

func (*ArbitrumSepoliaBlock) GetDifficulty

func (x *ArbitrumSepoliaBlock) GetDifficulty() uint64

func (*ArbitrumSepoliaBlock) GetExtraData

func (x *ArbitrumSepoliaBlock) GetExtraData() string

func (*ArbitrumSepoliaBlock) GetGasLimit

func (x *ArbitrumSepoliaBlock) GetGasLimit() uint64

func (*ArbitrumSepoliaBlock) GetGasUsed

func (x *ArbitrumSepoliaBlock) GetGasUsed() uint64

func (*ArbitrumSepoliaBlock) GetHash

func (x *ArbitrumSepoliaBlock) GetHash() string

func (*ArbitrumSepoliaBlock) GetIndexedAt

func (x *ArbitrumSepoliaBlock) GetIndexedAt() uint64

func (*ArbitrumSepoliaBlock) GetL1BlockNumber

func (x *ArbitrumSepoliaBlock) GetL1BlockNumber() uint64

func (*ArbitrumSepoliaBlock) GetLogsBloom

func (x *ArbitrumSepoliaBlock) GetLogsBloom() string

func (*ArbitrumSepoliaBlock) GetMiner

func (x *ArbitrumSepoliaBlock) GetMiner() string

func (*ArbitrumSepoliaBlock) GetMixHash

func (x *ArbitrumSepoliaBlock) GetMixHash() string

func (*ArbitrumSepoliaBlock) GetNonce

func (x *ArbitrumSepoliaBlock) GetNonce() string

func (*ArbitrumSepoliaBlock) GetParentHash

func (x *ArbitrumSepoliaBlock) GetParentHash() string

func (*ArbitrumSepoliaBlock) GetReceiptsRoot

func (x *ArbitrumSepoliaBlock) GetReceiptsRoot() string

func (*ArbitrumSepoliaBlock) GetSendCount

func (x *ArbitrumSepoliaBlock) GetSendCount() string

func (*ArbitrumSepoliaBlock) GetSendRoot

func (x *ArbitrumSepoliaBlock) GetSendRoot() string

func (*ArbitrumSepoliaBlock) GetSha3Uncles

func (x *ArbitrumSepoliaBlock) GetSha3Uncles() string

func (*ArbitrumSepoliaBlock) GetSize

func (x *ArbitrumSepoliaBlock) GetSize() uint64

func (*ArbitrumSepoliaBlock) GetStateRoot

func (x *ArbitrumSepoliaBlock) GetStateRoot() string

func (*ArbitrumSepoliaBlock) GetTimestamp

func (x *ArbitrumSepoliaBlock) GetTimestamp() uint64

func (*ArbitrumSepoliaBlock) GetTotalDifficulty

func (x *ArbitrumSepoliaBlock) GetTotalDifficulty() string

func (*ArbitrumSepoliaBlock) GetTransactions

func (x *ArbitrumSepoliaBlock) GetTransactions() []*ArbitrumSepoliaTransaction

func (*ArbitrumSepoliaBlock) GetTransactionsRoot

func (x *ArbitrumSepoliaBlock) GetTransactionsRoot() string

func (*ArbitrumSepoliaBlock) ProtoMessage

func (*ArbitrumSepoliaBlock) ProtoMessage()

func (*ArbitrumSepoliaBlock) ProtoReflect

func (x *ArbitrumSepoliaBlock) ProtoReflect() protoreflect.Message

func (*ArbitrumSepoliaBlock) Reset

func (x *ArbitrumSepoliaBlock) Reset()

func (*ArbitrumSepoliaBlock) String

func (x *ArbitrumSepoliaBlock) String() string

type ArbitrumSepoliaBlocksBatch

type ArbitrumSepoliaBlocksBatch struct {
	Blocks      []*ArbitrumSepoliaBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
	SeerVersion string                  `protobuf:"bytes,2,opt,name=seer_version,json=seerVersion,proto3" json:"seer_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ArbitrumSepoliaBlocksBatch) Descriptor deprecated

func (*ArbitrumSepoliaBlocksBatch) Descriptor() ([]byte, []int)

Deprecated: Use ArbitrumSepoliaBlocksBatch.ProtoReflect.Descriptor instead.

func (*ArbitrumSepoliaBlocksBatch) GetBlocks

func (*ArbitrumSepoliaBlocksBatch) GetSeerVersion

func (x *ArbitrumSepoliaBlocksBatch) GetSeerVersion() string

func (*ArbitrumSepoliaBlocksBatch) ProtoMessage

func (*ArbitrumSepoliaBlocksBatch) ProtoMessage()

func (*ArbitrumSepoliaBlocksBatch) ProtoReflect

func (*ArbitrumSepoliaBlocksBatch) Reset

func (x *ArbitrumSepoliaBlocksBatch) Reset()

func (*ArbitrumSepoliaBlocksBatch) String

func (x *ArbitrumSepoliaBlocksBatch) String() string

type ArbitrumSepoliaEventLog

type ArbitrumSepoliaEventLog struct {
	Address          string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`                                            // The address of the contract that generated the log
	Topics           []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`                                              // Topics are indexed parameters during log generation
	Data             string   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`                                                  // The data field from the log
	BlockNumber      uint64   `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`                // The block number where this log was in
	TransactionHash  string   `protobuf:"bytes,5,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`     // The hash of the transaction that generated this log
	BlockHash        string   `protobuf:"bytes,6,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`                       // The hash of the block where this log was in
	Removed          bool     `protobuf:"varint,7,opt,name=removed,proto3" json:"removed,omitempty"`                                           // True if the log was reverted due to a chain reorganization
	LogIndex         uint64   `protobuf:"varint,8,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"`                         // The index of the log in the block
	TransactionIndex uint64   `protobuf:"varint,9,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // The index of the transaction in the block
	// contains filtered or unexported fields
}

func ToProtoSingleEventLog

func ToProtoSingleEventLog(obj *seer_common.EventJson) *ArbitrumSepoliaEventLog

func (*ArbitrumSepoliaEventLog) Descriptor deprecated

func (*ArbitrumSepoliaEventLog) Descriptor() ([]byte, []int)

Deprecated: Use ArbitrumSepoliaEventLog.ProtoReflect.Descriptor instead.

func (*ArbitrumSepoliaEventLog) GetAddress

func (x *ArbitrumSepoliaEventLog) GetAddress() string

func (*ArbitrumSepoliaEventLog) GetBlockHash

func (x *ArbitrumSepoliaEventLog) GetBlockHash() string

func (*ArbitrumSepoliaEventLog) GetBlockNumber

func (x *ArbitrumSepoliaEventLog) GetBlockNumber() uint64

func (*ArbitrumSepoliaEventLog) GetData

func (x *ArbitrumSepoliaEventLog) GetData() string

func (*ArbitrumSepoliaEventLog) GetLogIndex

func (x *ArbitrumSepoliaEventLog) GetLogIndex() uint64

func (*ArbitrumSepoliaEventLog) GetRemoved

func (x *ArbitrumSepoliaEventLog) GetRemoved() bool

func (*ArbitrumSepoliaEventLog) GetTopics

func (x *ArbitrumSepoliaEventLog) GetTopics() []string

func (*ArbitrumSepoliaEventLog) GetTransactionHash

func (x *ArbitrumSepoliaEventLog) GetTransactionHash() string

func (*ArbitrumSepoliaEventLog) GetTransactionIndex

func (x *ArbitrumSepoliaEventLog) GetTransactionIndex() uint64

func (*ArbitrumSepoliaEventLog) ProtoMessage

func (*ArbitrumSepoliaEventLog) ProtoMessage()

func (*ArbitrumSepoliaEventLog) ProtoReflect

func (x *ArbitrumSepoliaEventLog) ProtoReflect() protoreflect.Message

func (*ArbitrumSepoliaEventLog) Reset

func (x *ArbitrumSepoliaEventLog) Reset()

func (*ArbitrumSepoliaEventLog) String

func (x *ArbitrumSepoliaEventLog) String() string

type ArbitrumSepoliaTransaction

type ArbitrumSepoliaTransaction struct {
	Hash                 string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`                                         // The hash of the transaction
	BlockNumber          uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`       // The block number the transaction is in
	FromAddress          string `protobuf:"bytes,3,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`        // The address the transaction is sent from
	ToAddress            string `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`              // The address the transaction is sent to
	Gas                  string `protobuf:"bytes,5,opt,name=gas,proto3" json:"gas,omitempty"`                                           // The gas limit of the transaction
	GasPrice             string `protobuf:"bytes,6,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`                 // The gas price of the transaction
	MaxFeePerGas         string `protobuf:"bytes,7,opt,name=max_fee_per_gas,json=maxFeePerGas,proto3" json:"max_fee_per_gas,omitempty"` // Used as a field to match potential EIP-1559 transaction types
	MaxPriorityFeePerGas string ``                                                                                                      // Used as a field to match potential EIP-1559 transaction types
	/* 127-byte string literal not displayed */
	Input            string                                  `protobuf:"bytes,9,opt,name=input,proto3" json:"input,omitempty"`                                                 // The input data of the transaction
	Nonce            string                                  `protobuf:"bytes,10,opt,name=nonce,proto3" json:"nonce,omitempty"`                                                // The nonce of the transaction
	TransactionIndex uint64                                  `protobuf:"varint,11,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // The index of the transaction in the block
	TransactionType  uint64                                  `protobuf:"varint,12,opt,name=transaction_type,json=transactionType,proto3" json:"transaction_type,omitempty"`    // Field to match potential EIP-1559 transaction types
	Value            string                                  `protobuf:"bytes,13,opt,name=value,proto3" json:"value,omitempty"`                                                // The value of the transaction
	IndexedAt        uint64                                  `protobuf:"varint,14,opt,name=indexed_at,json=indexedAt,proto3" json:"indexed_at,omitempty"`                      // When the transaction was indexed by crawler
	BlockTimestamp   uint64                                  `protobuf:"varint,15,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"`       // The timestamp of this block
	BlockHash        string                                  `protobuf:"bytes,16,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`                       // The hash of the block the transaction is in
	ChainId          string                                  `protobuf:"bytes,17,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`                             // Used as a field to match potential EIP-1559 transaction types
	V                string                                  `protobuf:"bytes,18,opt,name=v,proto3" json:"v,omitempty"`                                                        // Used as a field to match potential EIP-1559 transaction types
	R                string                                  `protobuf:"bytes,19,opt,name=r,proto3" json:"r,omitempty"`                                                        // Used as a field to match potential EIP-1559 transaction types
	S                string                                  `protobuf:"bytes,20,opt,name=s,proto3" json:"s,omitempty"`                                                        // Used as a field to match potential EIP-1559 transaction types
	AccessList       []*ArbitrumSepoliaTransactionAccessList `protobuf:"bytes,21,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"`
	YParity          string                                  `protobuf:"bytes,22,opt,name=y_parity,json=yParity,proto3" json:"y_parity,omitempty"` // Used as a field to match potential EIP-1559 transaction types
	Logs             []*ArbitrumSepoliaEventLog              `protobuf:"bytes,23,rep,name=logs,proto3" json:"logs,omitempty"`                      // The logs generated by this transaction
	// contains filtered or unexported fields
}

Represents a single transaction within a block

func (*ArbitrumSepoliaTransaction) Descriptor deprecated

func (*ArbitrumSepoliaTransaction) Descriptor() ([]byte, []int)

Deprecated: Use ArbitrumSepoliaTransaction.ProtoReflect.Descriptor instead.

func (*ArbitrumSepoliaTransaction) GetAccessList

func (*ArbitrumSepoliaTransaction) GetBlockHash

func (x *ArbitrumSepoliaTransaction) GetBlockHash() string

func (*ArbitrumSepoliaTransaction) GetBlockNumber

func (x *ArbitrumSepoliaTransaction) GetBlockNumber() uint64

func (*ArbitrumSepoliaTransaction) GetBlockTimestamp

func (x *ArbitrumSepoliaTransaction) GetBlockTimestamp() uint64

func (*ArbitrumSepoliaTransaction) GetChainId

func (x *ArbitrumSepoliaTransaction) GetChainId() string

func (*ArbitrumSepoliaTransaction) GetFromAddress

func (x *ArbitrumSepoliaTransaction) GetFromAddress() string

func (*ArbitrumSepoliaTransaction) GetGas

func (x *ArbitrumSepoliaTransaction) GetGas() string

func (*ArbitrumSepoliaTransaction) GetGasPrice

func (x *ArbitrumSepoliaTransaction) GetGasPrice() string

func (*ArbitrumSepoliaTransaction) GetHash

func (x *ArbitrumSepoliaTransaction) GetHash() string

func (*ArbitrumSepoliaTransaction) GetIndexedAt

func (x *ArbitrumSepoliaTransaction) GetIndexedAt() uint64

func (*ArbitrumSepoliaTransaction) GetInput

func (x *ArbitrumSepoliaTransaction) GetInput() string

func (*ArbitrumSepoliaTransaction) GetLogs

func (*ArbitrumSepoliaTransaction) GetMaxFeePerGas

func (x *ArbitrumSepoliaTransaction) GetMaxFeePerGas() string

func (*ArbitrumSepoliaTransaction) GetMaxPriorityFeePerGas

func (x *ArbitrumSepoliaTransaction) GetMaxPriorityFeePerGas() string

func (*ArbitrumSepoliaTransaction) GetNonce

func (x *ArbitrumSepoliaTransaction) GetNonce() string

func (*ArbitrumSepoliaTransaction) GetR

func (*ArbitrumSepoliaTransaction) GetS

func (*ArbitrumSepoliaTransaction) GetToAddress

func (x *ArbitrumSepoliaTransaction) GetToAddress() string

func (*ArbitrumSepoliaTransaction) GetTransactionIndex

func (x *ArbitrumSepoliaTransaction) GetTransactionIndex() uint64

func (*ArbitrumSepoliaTransaction) GetTransactionType

func (x *ArbitrumSepoliaTransaction) GetTransactionType() uint64

func (*ArbitrumSepoliaTransaction) GetV

func (*ArbitrumSepoliaTransaction) GetValue

func (x *ArbitrumSepoliaTransaction) GetValue() string

func (*ArbitrumSepoliaTransaction) GetYParity

func (x *ArbitrumSepoliaTransaction) GetYParity() string

func (*ArbitrumSepoliaTransaction) ProtoMessage

func (*ArbitrumSepoliaTransaction) ProtoMessage()

func (*ArbitrumSepoliaTransaction) ProtoReflect

func (*ArbitrumSepoliaTransaction) Reset

func (x *ArbitrumSepoliaTransaction) Reset()

func (*ArbitrumSepoliaTransaction) String

func (x *ArbitrumSepoliaTransaction) String() string

type ArbitrumSepoliaTransactionAccessList

type ArbitrumSepoliaTransactionAccessList struct {
	Address     string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	StorageKeys []string `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ArbitrumSepoliaTransactionAccessList) Descriptor deprecated

func (*ArbitrumSepoliaTransactionAccessList) Descriptor() ([]byte, []int)

Deprecated: Use ArbitrumSepoliaTransactionAccessList.ProtoReflect.Descriptor instead.

func (*ArbitrumSepoliaTransactionAccessList) GetAddress

func (*ArbitrumSepoliaTransactionAccessList) GetStorageKeys

func (x *ArbitrumSepoliaTransactionAccessList) GetStorageKeys() []string

func (*ArbitrumSepoliaTransactionAccessList) ProtoMessage

func (*ArbitrumSepoliaTransactionAccessList) ProtoMessage()

func (*ArbitrumSepoliaTransactionAccessList) ProtoReflect

func (*ArbitrumSepoliaTransactionAccessList) Reset

func (*ArbitrumSepoliaTransactionAccessList) String

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, timeout int) (*Client, error)

func (*Client) BlockByHash

func (c *Client) BlockByHash(ctx context.Context, hash common.Hash) (*seer_common.BlockJson, error)

BlockByHash returns the block with the given hash.

func (*Client) ChainType

func (c *Client) ChainType() string

ChainType returns the chain type.

func (*Client) ClientFilterLogs

func (c *Client) ClientFilterLogs(ctx context.Context, q ethereum.FilterQuery, debug bool) ([]*seer_common.EventJson, error)

func (*Client) Close

func (c *Client) Close()

Close closes the underlying RPC client.

func (*Client) DecodeProtoBlocks

func (c *Client) DecodeProtoBlocks(data []string) ([]*ArbitrumSepoliaBlock, error)

func (*Client) DecodeProtoEntireBlockToJson

func (c *Client) DecodeProtoEntireBlockToJson(rawData *bytes.Buffer) (*seer_common.BlocksBatchJson, error)

func (*Client) DecodeProtoEntireBlockToLabels

func (c *Client) DecodeProtoEntireBlockToLabels(rawData *bytes.Buffer, abiMap map[string]map[string]*indexer.AbiEntry, threads int) ([]indexer.EventLabel, []indexer.TransactionLabel, error)

func (*Client) DecodeProtoEventLogs

func (c *Client) DecodeProtoEventLogs(data []string) ([]*ArbitrumSepoliaEventLog, error)

func (*Client) DecodeProtoTransactions

func (c *Client) DecodeProtoTransactions(data []string) ([]*ArbitrumSepoliaTransaction, error)

func (*Client) DecodeProtoTransactionsToLabels

func (c *Client) DecodeProtoTransactionsToLabels(transactions []string, blocksCache map[uint64]uint64, abiMap map[string]map[string]*indexer.AbiEntry) ([]indexer.TransactionLabel, error)

func (*Client) FetchAsProtoBlocksWithEvents

func (c *Client) FetchAsProtoBlocksWithEvents(from, to *big.Int, debug bool, maxRequests int) ([]proto.Message, []indexer.BlockIndex, uint64, error)

func (*Client) FetchBlocksInRange

func (c *Client) FetchBlocksInRange(from, to *big.Int, debug bool) ([]*seer_common.BlockJson, error)

FetchBlocksInRange fetches blocks within a specified range. This could be useful for batch processing or analysis.

func (*Client) FetchBlocksInRangeAsync

func (c *Client) FetchBlocksInRangeAsync(from, to *big.Int, debug bool, maxRequests int) ([]*seer_common.BlockJson, error)

FetchBlocksInRangeAsync fetches blocks within a specified range concurrently.

func (*Client) GetBlockByNumber

func (c *Client) GetBlockByNumber(ctx context.Context, number *big.Int, withTransactions bool) (*seer_common.BlockJson, error)

GetBlockByNumber returns the block with the given number.

func (*Client) GetCode

func (c *Client) GetCode(ctx context.Context, address common.Address, blockNumber uint64) ([]byte, error)

Get bytecode of a contract by address.

func (*Client) GetEventsLabels

func (c *Client) GetEventsLabels(startBlock uint64, endBlock uint64, abiMap map[string]map[string]*indexer.AbiEntry, blocksCache map[uint64]seer_common.BlockWithTransactions) ([]indexer.EventLabel, error)

func (*Client) GetLatestBlockNumber

func (c *Client) GetLatestBlockNumber() (*big.Int, error)

GetLatestBlockNumber returns the latest block number.

func (*Client) GetTransactionByHash

func (c *Client) GetTransactionByHash(ctx context.Context, hash string) (*seer_common.TransactionJson, error)

func (*Client) GetTransactionsLabels

func (c *Client) GetTransactionsLabels(startBlock uint64, endBlock uint64, abiMap map[string]map[string]*indexer.AbiEntry, threads int) ([]indexer.TransactionLabel, map[uint64]seer_common.BlockWithTransactions, error)

func (*Client) ParseBlocksWithTransactions

func (c *Client) ParseBlocksWithTransactions(from, to *big.Int, debug bool, maxRequests int) ([]*ArbitrumSepoliaBlock, error)

ParseBlocksWithTransactions parses blocks and their transactions into custom data structure. This method showcases how to handle and transform detailed block and transaction data.

func (*Client) ParseEvents

func (c *Client) ParseEvents(from, to *big.Int, blocksCache map[uint64]indexer.BlockCache, debug bool) ([]*ArbitrumSepoliaEventLog, error)

func (*Client) ProcessBlocksToBatch

func (c *Client) ProcessBlocksToBatch(msgs []proto.Message) (proto.Message, error)

func (*Client) TransactionReceipt

func (c *Client) TransactionReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error)

TransactionReceipt returns the receipt of a transaction by transaction hash.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL