Documentation ¶
Index ¶
- Variables
- func ToEntireBlocksBatchFromLogProto(obj *ArbitrumOneBlocksBatch) *seer_common.BlocksBatchJson
- func ToEvenFromLogProto(obj *ArbitrumOneEventLog) *seer_common.EventJson
- type ArbitrumOneBlock
- func (*ArbitrumOneBlock) Descriptor() ([]byte, []int)deprecated
- func (x *ArbitrumOneBlock) GetBaseFeePerGas() string
- func (x *ArbitrumOneBlock) GetBlockNumber() uint64
- func (x *ArbitrumOneBlock) GetDifficulty() uint64
- func (x *ArbitrumOneBlock) GetExtraData() string
- func (x *ArbitrumOneBlock) GetGasLimit() uint64
- func (x *ArbitrumOneBlock) GetGasUsed() uint64
- func (x *ArbitrumOneBlock) GetHash() string
- func (x *ArbitrumOneBlock) GetIndexedAt() uint64
- func (x *ArbitrumOneBlock) GetL1BlockNumber() uint64
- func (x *ArbitrumOneBlock) GetLogsBloom() string
- func (x *ArbitrumOneBlock) GetMiner() string
- func (x *ArbitrumOneBlock) GetMixHash() string
- func (x *ArbitrumOneBlock) GetNonce() string
- func (x *ArbitrumOneBlock) GetParentHash() string
- func (x *ArbitrumOneBlock) GetReceiptsRoot() string
- func (x *ArbitrumOneBlock) GetSendCount() string
- func (x *ArbitrumOneBlock) GetSendRoot() string
- func (x *ArbitrumOneBlock) GetSha3Uncles() string
- func (x *ArbitrumOneBlock) GetSize() uint64
- func (x *ArbitrumOneBlock) GetStateRoot() string
- func (x *ArbitrumOneBlock) GetTimestamp() uint64
- func (x *ArbitrumOneBlock) GetTotalDifficulty() string
- func (x *ArbitrumOneBlock) GetTransactions() []*ArbitrumOneTransaction
- func (x *ArbitrumOneBlock) GetTransactionsRoot() string
- func (*ArbitrumOneBlock) ProtoMessage()
- func (x *ArbitrumOneBlock) ProtoReflect() protoreflect.Message
- func (x *ArbitrumOneBlock) Reset()
- func (x *ArbitrumOneBlock) String() string
- type ArbitrumOneBlocksBatch
- func (*ArbitrumOneBlocksBatch) Descriptor() ([]byte, []int)deprecated
- func (x *ArbitrumOneBlocksBatch) GetBlocks() []*ArbitrumOneBlock
- func (x *ArbitrumOneBlocksBatch) GetSeerVersion() string
- func (*ArbitrumOneBlocksBatch) ProtoMessage()
- func (x *ArbitrumOneBlocksBatch) ProtoReflect() protoreflect.Message
- func (x *ArbitrumOneBlocksBatch) Reset()
- func (x *ArbitrumOneBlocksBatch) String() string
- type ArbitrumOneEventLog
- func (*ArbitrumOneEventLog) Descriptor() ([]byte, []int)deprecated
- func (x *ArbitrumOneEventLog) GetAddress() string
- func (x *ArbitrumOneEventLog) GetBlockHash() string
- func (x *ArbitrumOneEventLog) GetBlockNumber() uint64
- func (x *ArbitrumOneEventLog) GetData() string
- func (x *ArbitrumOneEventLog) GetLogIndex() uint64
- func (x *ArbitrumOneEventLog) GetRemoved() bool
- func (x *ArbitrumOneEventLog) GetTopics() []string
- func (x *ArbitrumOneEventLog) GetTransactionHash() string
- func (x *ArbitrumOneEventLog) GetTransactionIndex() uint64
- func (*ArbitrumOneEventLog) ProtoMessage()
- func (x *ArbitrumOneEventLog) ProtoReflect() protoreflect.Message
- func (x *ArbitrumOneEventLog) Reset()
- func (x *ArbitrumOneEventLog) String() string
- type ArbitrumOneTransaction
- func (*ArbitrumOneTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ArbitrumOneTransaction) GetAccessList() []*ArbitrumOneTransactionAccessList
- func (x *ArbitrumOneTransaction) GetBlockHash() string
- func (x *ArbitrumOneTransaction) GetBlockNumber() uint64
- func (x *ArbitrumOneTransaction) GetBlockTimestamp() uint64
- func (x *ArbitrumOneTransaction) GetChainId() string
- func (x *ArbitrumOneTransaction) GetFromAddress() string
- func (x *ArbitrumOneTransaction) GetGas() string
- func (x *ArbitrumOneTransaction) GetGasPrice() string
- func (x *ArbitrumOneTransaction) GetHash() string
- func (x *ArbitrumOneTransaction) GetIndexedAt() uint64
- func (x *ArbitrumOneTransaction) GetInput() string
- func (x *ArbitrumOneTransaction) GetLogs() []*ArbitrumOneEventLog
- func (x *ArbitrumOneTransaction) GetMaxFeePerGas() string
- func (x *ArbitrumOneTransaction) GetMaxPriorityFeePerGas() string
- func (x *ArbitrumOneTransaction) GetNonce() string
- func (x *ArbitrumOneTransaction) GetR() string
- func (x *ArbitrumOneTransaction) GetS() string
- func (x *ArbitrumOneTransaction) GetToAddress() string
- func (x *ArbitrumOneTransaction) GetTransactionIndex() uint64
- func (x *ArbitrumOneTransaction) GetTransactionType() uint64
- func (x *ArbitrumOneTransaction) GetV() string
- func (x *ArbitrumOneTransaction) GetValue() string
- func (x *ArbitrumOneTransaction) GetYParity() string
- func (*ArbitrumOneTransaction) ProtoMessage()
- func (x *ArbitrumOneTransaction) ProtoReflect() protoreflect.Message
- func (x *ArbitrumOneTransaction) Reset()
- func (x *ArbitrumOneTransaction) String() string
- type ArbitrumOneTransactionAccessList
- func (*ArbitrumOneTransactionAccessList) Descriptor() ([]byte, []int)deprecated
- func (x *ArbitrumOneTransactionAccessList) GetAddress() string
- func (x *ArbitrumOneTransactionAccessList) GetStorageKeys() []string
- func (*ArbitrumOneTransactionAccessList) ProtoMessage()
- func (x *ArbitrumOneTransactionAccessList) ProtoReflect() protoreflect.Message
- func (x *ArbitrumOneTransactionAccessList) Reset()
- func (x *ArbitrumOneTransactionAccessList) String() string
- type Client
- func (c *Client) BlockByHash(ctx context.Context, hash common.Hash) (*seer_common.BlockJson, error)
- func (c *Client) ChainType() string
- func (c *Client) ClientFilterLogs(ctx context.Context, q ethereum.FilterQuery, debug bool) ([]*seer_common.EventJson, error)
- func (c *Client) Close()
- func (c *Client) DecodeProtoBlocks(data []string) ([]*ArbitrumOneBlock, error)
- func (c *Client) DecodeProtoEntireBlockToJson(rawData *bytes.Buffer) (*seer_common.BlocksBatchJson, error)
- func (c *Client) DecodeProtoEntireBlockToLabels(rawData *bytes.Buffer, abiMap map[string]map[string]*indexer.AbiEntry, ...) ([]indexer.EventLabel, []indexer.TransactionLabel, error)
- func (c *Client) DecodeProtoEventLogs(data []string) ([]*ArbitrumOneEventLog, error)
- func (c *Client) DecodeProtoTransactions(data []string) ([]*ArbitrumOneTransaction, error)
- func (c *Client) DecodeProtoTransactionsToLabels(transactions []string, blocksCache map[uint64]uint64, ...) ([]indexer.TransactionLabel, error)
- func (c *Client) FetchAsProtoBlocksWithEvents(from, to *big.Int, debug bool, maxRequests int) ([]proto.Message, []indexer.BlockIndex, uint64, error)
- func (c *Client) FetchBlocksInRange(from, to *big.Int, debug bool) ([]*seer_common.BlockJson, error)
- func (c *Client) FetchBlocksInRangeAsync(from, to *big.Int, debug bool, maxRequests int) ([]*seer_common.BlockJson, error)
- func (c *Client) GetBlockByNumber(ctx context.Context, number *big.Int, withTransactions bool) (*seer_common.BlockJson, error)
- func (c *Client) GetCode(ctx context.Context, address common.Address, blockNumber uint64) ([]byte, error)
- func (c *Client) GetEventsLabels(startBlock uint64, endBlock uint64, ...) ([]indexer.EventLabel, error)
- func (c *Client) GetLatestBlockNumber() (*big.Int, error)
- func (c *Client) GetTransactionByHash(ctx context.Context, hash string) (*seer_common.TransactionJson, error)
- func (c *Client) GetTransactionsLabels(startBlock uint64, endBlock uint64, ...) ([]indexer.TransactionLabel, map[uint64]seer_common.BlockWithTransactions, ...)
- func (c *Client) ParseBlocksWithTransactions(from, to *big.Int, debug bool, maxRequests int) ([]*ArbitrumOneBlock, error)
- func (c *Client) ParseEvents(from, to *big.Int, blocksCache map[uint64]indexer.BlockCache, debug bool) ([]*ArbitrumOneEventLog, error)
- func (c *Client) ProcessBlocksToBatch(msgs []proto.Message) (proto.Message, error)
- func (c *Client) TransactionReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
var File_blockchain_arbitrum_one_arbitrum_one_index_types_proto protoreflect.FileDescriptor
Functions ¶
func ToEntireBlocksBatchFromLogProto ¶
func ToEntireBlocksBatchFromLogProto(obj *ArbitrumOneBlocksBatch) *seer_common.BlocksBatchJson
func ToEvenFromLogProto ¶
func ToEvenFromLogProto(obj *ArbitrumOneEventLog) *seer_common.EventJson
Types ¶
type ArbitrumOneBlock ¶
type ArbitrumOneBlock 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 []*ArbitrumOneTransaction `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) *ArbitrumOneBlock
func (*ArbitrumOneBlock) Descriptor
deprecated
func (*ArbitrumOneBlock) Descriptor() ([]byte, []int)
Deprecated: Use ArbitrumOneBlock.ProtoReflect.Descriptor instead.
func (*ArbitrumOneBlock) GetBaseFeePerGas ¶
func (x *ArbitrumOneBlock) GetBaseFeePerGas() string
func (*ArbitrumOneBlock) GetBlockNumber ¶
func (x *ArbitrumOneBlock) GetBlockNumber() uint64
func (*ArbitrumOneBlock) GetDifficulty ¶
func (x *ArbitrumOneBlock) GetDifficulty() uint64
func (*ArbitrumOneBlock) GetExtraData ¶
func (x *ArbitrumOneBlock) GetExtraData() string
func (*ArbitrumOneBlock) GetGasLimit ¶
func (x *ArbitrumOneBlock) GetGasLimit() uint64
func (*ArbitrumOneBlock) GetGasUsed ¶
func (x *ArbitrumOneBlock) GetGasUsed() uint64
func (*ArbitrumOneBlock) GetHash ¶
func (x *ArbitrumOneBlock) GetHash() string
func (*ArbitrumOneBlock) GetIndexedAt ¶
func (x *ArbitrumOneBlock) GetIndexedAt() uint64
func (*ArbitrumOneBlock) GetL1BlockNumber ¶
func (x *ArbitrumOneBlock) GetL1BlockNumber() uint64
func (*ArbitrumOneBlock) GetLogsBloom ¶
func (x *ArbitrumOneBlock) GetLogsBloom() string
func (*ArbitrumOneBlock) GetMiner ¶
func (x *ArbitrumOneBlock) GetMiner() string
func (*ArbitrumOneBlock) GetMixHash ¶
func (x *ArbitrumOneBlock) GetMixHash() string
func (*ArbitrumOneBlock) GetNonce ¶
func (x *ArbitrumOneBlock) GetNonce() string
func (*ArbitrumOneBlock) GetParentHash ¶
func (x *ArbitrumOneBlock) GetParentHash() string
func (*ArbitrumOneBlock) GetReceiptsRoot ¶
func (x *ArbitrumOneBlock) GetReceiptsRoot() string
func (*ArbitrumOneBlock) GetSendCount ¶
func (x *ArbitrumOneBlock) GetSendCount() string
func (*ArbitrumOneBlock) GetSendRoot ¶
func (x *ArbitrumOneBlock) GetSendRoot() string
func (*ArbitrumOneBlock) GetSha3Uncles ¶
func (x *ArbitrumOneBlock) GetSha3Uncles() string
func (*ArbitrumOneBlock) GetSize ¶
func (x *ArbitrumOneBlock) GetSize() uint64
func (*ArbitrumOneBlock) GetStateRoot ¶
func (x *ArbitrumOneBlock) GetStateRoot() string
func (*ArbitrumOneBlock) GetTimestamp ¶
func (x *ArbitrumOneBlock) GetTimestamp() uint64
func (*ArbitrumOneBlock) GetTotalDifficulty ¶
func (x *ArbitrumOneBlock) GetTotalDifficulty() string
func (*ArbitrumOneBlock) GetTransactions ¶
func (x *ArbitrumOneBlock) GetTransactions() []*ArbitrumOneTransaction
func (*ArbitrumOneBlock) GetTransactionsRoot ¶
func (x *ArbitrumOneBlock) GetTransactionsRoot() string
func (*ArbitrumOneBlock) ProtoMessage ¶
func (*ArbitrumOneBlock) ProtoMessage()
func (*ArbitrumOneBlock) ProtoReflect ¶
func (x *ArbitrumOneBlock) ProtoReflect() protoreflect.Message
func (*ArbitrumOneBlock) Reset ¶
func (x *ArbitrumOneBlock) Reset()
func (*ArbitrumOneBlock) String ¶
func (x *ArbitrumOneBlock) String() string
type ArbitrumOneBlocksBatch ¶
type ArbitrumOneBlocksBatch struct { Blocks []*ArbitrumOneBlock `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 (*ArbitrumOneBlocksBatch) Descriptor
deprecated
func (*ArbitrumOneBlocksBatch) Descriptor() ([]byte, []int)
Deprecated: Use ArbitrumOneBlocksBatch.ProtoReflect.Descriptor instead.
func (*ArbitrumOneBlocksBatch) GetBlocks ¶
func (x *ArbitrumOneBlocksBatch) GetBlocks() []*ArbitrumOneBlock
func (*ArbitrumOneBlocksBatch) GetSeerVersion ¶
func (x *ArbitrumOneBlocksBatch) GetSeerVersion() string
func (*ArbitrumOneBlocksBatch) ProtoMessage ¶
func (*ArbitrumOneBlocksBatch) ProtoMessage()
func (*ArbitrumOneBlocksBatch) ProtoReflect ¶
func (x *ArbitrumOneBlocksBatch) ProtoReflect() protoreflect.Message
func (*ArbitrumOneBlocksBatch) Reset ¶
func (x *ArbitrumOneBlocksBatch) Reset()
func (*ArbitrumOneBlocksBatch) String ¶
func (x *ArbitrumOneBlocksBatch) String() string
type ArbitrumOneEventLog ¶
type ArbitrumOneEventLog 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) *ArbitrumOneEventLog
func (*ArbitrumOneEventLog) Descriptor
deprecated
func (*ArbitrumOneEventLog) Descriptor() ([]byte, []int)
Deprecated: Use ArbitrumOneEventLog.ProtoReflect.Descriptor instead.
func (*ArbitrumOneEventLog) GetAddress ¶
func (x *ArbitrumOneEventLog) GetAddress() string
func (*ArbitrumOneEventLog) GetBlockHash ¶
func (x *ArbitrumOneEventLog) GetBlockHash() string
func (*ArbitrumOneEventLog) GetBlockNumber ¶
func (x *ArbitrumOneEventLog) GetBlockNumber() uint64
func (*ArbitrumOneEventLog) GetData ¶
func (x *ArbitrumOneEventLog) GetData() string
func (*ArbitrumOneEventLog) GetLogIndex ¶
func (x *ArbitrumOneEventLog) GetLogIndex() uint64
func (*ArbitrumOneEventLog) GetRemoved ¶
func (x *ArbitrumOneEventLog) GetRemoved() bool
func (*ArbitrumOneEventLog) GetTopics ¶
func (x *ArbitrumOneEventLog) GetTopics() []string
func (*ArbitrumOneEventLog) GetTransactionHash ¶
func (x *ArbitrumOneEventLog) GetTransactionHash() string
func (*ArbitrumOneEventLog) GetTransactionIndex ¶
func (x *ArbitrumOneEventLog) GetTransactionIndex() uint64
func (*ArbitrumOneEventLog) ProtoMessage ¶
func (*ArbitrumOneEventLog) ProtoMessage()
func (*ArbitrumOneEventLog) ProtoReflect ¶
func (x *ArbitrumOneEventLog) ProtoReflect() protoreflect.Message
func (*ArbitrumOneEventLog) Reset ¶
func (x *ArbitrumOneEventLog) Reset()
func (*ArbitrumOneEventLog) String ¶
func (x *ArbitrumOneEventLog) String() string
type ArbitrumOneTransaction ¶
type ArbitrumOneTransaction 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 []*ArbitrumOneTransactionAccessList `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 []*ArbitrumOneEventLog `protobuf:"bytes,25,rep,name=logs,proto3" json:"logs,omitempty"` // The logs included in this block // contains filtered or unexported fields }
Represents a single transaction within a block
func ToProtoSingleTransaction ¶
func ToProtoSingleTransaction(obj *seer_common.TransactionJson) *ArbitrumOneTransaction
func (*ArbitrumOneTransaction) Descriptor
deprecated
func (*ArbitrumOneTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ArbitrumOneTransaction.ProtoReflect.Descriptor instead.
func (*ArbitrumOneTransaction) GetAccessList ¶
func (x *ArbitrumOneTransaction) GetAccessList() []*ArbitrumOneTransactionAccessList
func (*ArbitrumOneTransaction) GetBlockHash ¶
func (x *ArbitrumOneTransaction) GetBlockHash() string
func (*ArbitrumOneTransaction) GetBlockNumber ¶
func (x *ArbitrumOneTransaction) GetBlockNumber() uint64
func (*ArbitrumOneTransaction) GetBlockTimestamp ¶
func (x *ArbitrumOneTransaction) GetBlockTimestamp() uint64
func (*ArbitrumOneTransaction) GetChainId ¶
func (x *ArbitrumOneTransaction) GetChainId() string
func (*ArbitrumOneTransaction) GetFromAddress ¶
func (x *ArbitrumOneTransaction) GetFromAddress() string
func (*ArbitrumOneTransaction) GetGas ¶
func (x *ArbitrumOneTransaction) GetGas() string
func (*ArbitrumOneTransaction) GetGasPrice ¶
func (x *ArbitrumOneTransaction) GetGasPrice() string
func (*ArbitrumOneTransaction) GetHash ¶
func (x *ArbitrumOneTransaction) GetHash() string
func (*ArbitrumOneTransaction) GetIndexedAt ¶
func (x *ArbitrumOneTransaction) GetIndexedAt() uint64
func (*ArbitrumOneTransaction) GetInput ¶
func (x *ArbitrumOneTransaction) GetInput() string
func (*ArbitrumOneTransaction) GetLogs ¶
func (x *ArbitrumOneTransaction) GetLogs() []*ArbitrumOneEventLog
func (*ArbitrumOneTransaction) GetMaxFeePerGas ¶
func (x *ArbitrumOneTransaction) GetMaxFeePerGas() string
func (*ArbitrumOneTransaction) GetMaxPriorityFeePerGas ¶
func (x *ArbitrumOneTransaction) GetMaxPriorityFeePerGas() string
func (*ArbitrumOneTransaction) GetNonce ¶
func (x *ArbitrumOneTransaction) GetNonce() string
func (*ArbitrumOneTransaction) GetR ¶
func (x *ArbitrumOneTransaction) GetR() string
func (*ArbitrumOneTransaction) GetS ¶
func (x *ArbitrumOneTransaction) GetS() string
func (*ArbitrumOneTransaction) GetToAddress ¶
func (x *ArbitrumOneTransaction) GetToAddress() string
func (*ArbitrumOneTransaction) GetTransactionIndex ¶
func (x *ArbitrumOneTransaction) GetTransactionIndex() uint64
func (*ArbitrumOneTransaction) GetTransactionType ¶
func (x *ArbitrumOneTransaction) GetTransactionType() uint64
func (*ArbitrumOneTransaction) GetV ¶
func (x *ArbitrumOneTransaction) GetV() string
func (*ArbitrumOneTransaction) GetValue ¶
func (x *ArbitrumOneTransaction) GetValue() string
func (*ArbitrumOneTransaction) GetYParity ¶
func (x *ArbitrumOneTransaction) GetYParity() string
func (*ArbitrumOneTransaction) ProtoMessage ¶
func (*ArbitrumOneTransaction) ProtoMessage()
func (*ArbitrumOneTransaction) ProtoReflect ¶
func (x *ArbitrumOneTransaction) ProtoReflect() protoreflect.Message
func (*ArbitrumOneTransaction) Reset ¶
func (x *ArbitrumOneTransaction) Reset()
func (*ArbitrumOneTransaction) String ¶
func (x *ArbitrumOneTransaction) String() string
type ArbitrumOneTransactionAccessList ¶
type ArbitrumOneTransactionAccessList 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 (*ArbitrumOneTransactionAccessList) Descriptor
deprecated
func (*ArbitrumOneTransactionAccessList) Descriptor() ([]byte, []int)
Deprecated: Use ArbitrumOneTransactionAccessList.ProtoReflect.Descriptor instead.
func (*ArbitrumOneTransactionAccessList) GetAddress ¶
func (x *ArbitrumOneTransactionAccessList) GetAddress() string
func (*ArbitrumOneTransactionAccessList) GetStorageKeys ¶
func (x *ArbitrumOneTransactionAccessList) GetStorageKeys() []string
func (*ArbitrumOneTransactionAccessList) ProtoMessage ¶
func (*ArbitrumOneTransactionAccessList) ProtoMessage()
func (*ArbitrumOneTransactionAccessList) ProtoReflect ¶
func (x *ArbitrumOneTransactionAccessList) ProtoReflect() protoreflect.Message
func (*ArbitrumOneTransactionAccessList) Reset ¶
func (x *ArbitrumOneTransactionAccessList) Reset()
func (*ArbitrumOneTransactionAccessList) String ¶
func (x *ArbitrumOneTransactionAccessList) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BlockByHash ¶
BlockByHash returns the block with the given hash.
func (*Client) ClientFilterLogs ¶
func (*Client) DecodeProtoBlocks ¶
func (c *Client) DecodeProtoBlocks(data []string) ([]*ArbitrumOneBlock, error)
func (*Client) DecodeProtoEntireBlockToJson ¶
func (c *Client) DecodeProtoEntireBlockToJson(rawData *bytes.Buffer) (*seer_common.BlocksBatchJson, error)
func (*Client) DecodeProtoEntireBlockToLabels ¶
func (*Client) DecodeProtoEventLogs ¶
func (c *Client) DecodeProtoEventLogs(data []string) ([]*ArbitrumOneEventLog, error)
func (*Client) DecodeProtoTransactions ¶
func (c *Client) DecodeProtoTransactions(data []string) ([]*ArbitrumOneTransaction, error)
func (*Client) DecodeProtoTransactionsToLabels ¶
func (*Client) FetchAsProtoBlocksWithEvents ¶
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 ¶
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) ([]*ArbitrumOneBlock, 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) ([]*ArbitrumOneEventLog, error)