Versions in this module Expand all Collapse all v0 v0.8.0 Mar 30, 2021 Changes in this version + func GenerateWeb3Server(server *aggregator.Server, privateKeys []*ecdsa.PrivateKey, ganacheMode bool, ...) (*rpc.Server, error) + func HandleCallError(res *evm.TxResult, ganacheMode bool) error + func HandleNodeInterfaceCall(srv *aggregator.Server, calldata []byte) ([]byte, error) + type Accounts struct + func NewAccounts(ethServer *Server, privateKeys []*ecdsa.PrivateKey) *Accounts + func (s *Accounts) Accounts() []common.Address + func (s *Accounts) SendTransaction(ctx context.Context, args *SendTransactionArgs) (common.Hash, error) + func (s *Accounts) Sign(account common.Address, data hexutil.Bytes) (hexutil.Bytes, error) + type CallTxArgs struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + To *common.Address + Value *hexutil.Big + type EthClient struct + func NewEthClient(srv *aggregator.Server, ganacheMode bool) *EthClient + func (c *EthClient) CallContract(_ context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + func (c *EthClient) CodeAt(_ context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + func (c *EthClient) EstimateGas(_ context.Context, call ethereum.CallMsg) (uint64, error) + func (c *EthClient) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) + func (c *EthClient) PendingCodeAt(_ context.Context, account common.Address) ([]byte, error) + func (c *EthClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) + func (c *EthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error + func (c *EthClient) SubscribeFilterLogs(_ context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + func (c *EthClient) SuggestGasPrice(_ context.Context) (*big.Int, error) + func (c *EthClient) TransactionReceipt(_ context.Context, txHash common.Hash) (*types.Receipt, error) + type FeeSetResult struct + L1Calldata *hexutil.Big + L1Transaction *hexutil.Big + L2Computation *hexutil.Big + L2Storage *hexutil.Big + type FeeStatsResult struct + Paid *FeeSetResult + Prices *FeeSetResult + UnitsUsed *FeeSetResult + type GetBlockResult struct + Difficulty *hexutil.Big + ExtraData *hexutil.Bytes + GasLimit *hexutil.Uint64 + GasUsed *hexutil.Uint64 + Hash hexutil.Bytes + L1BlockNumber *hexutil.Big + LogsBloom hexutil.Bytes + Miner hexutil.Bytes + MixDigest hexutil.Bytes + Nonce *types.BlockNonce + Number *hexutil.Big + ParentHash hexutil.Bytes + ReceiptsRoot hexutil.Bytes + Sha3Uncles hexutil.Bytes + Size *hexutil.Uint64 + StateRoot hexutil.Bytes + Timestamp *hexutil.Uint64 + TotalDifficulty *hexutil.Big + Transactions interface{} + TransactionsRoot hexutil.Bytes + Uncles *[]hexutil.Bytes + type GetTransactionReceiptResult struct + BlockHash common.Hash + BlockNumber *hexutil.Big + ContractAddress *common.Address + CumulativeGasUsed hexutil.Uint64 + FeeStats *FeeStatsResult + From common.Address + GasUsed hexutil.Uint64 + L1BlockNumber *hexutil.Big + Logs []*types.Log + LogsBloom hexutil.Bytes + ReturnCode hexutil.Uint64 + ReturnData hexutil.Bytes + Status hexutil.Uint64 + To *common.Address + TransactionHash common.Hash + TransactionIndex hexutil.Uint64 + type Net struct + func (net *Net) Version() string + type PersonalAccounts struct + func NewPersonalAccounts(privateKeys []*ecdsa.PrivateKey) *PersonalAccounts + func (s *PersonalAccounts) Sign(data hexutil.Bytes, account common.Address, _ *hexutil.Bytes) (hexutil.Bytes, error) + type SendTransactionArgs struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + Nonce *hexutil.Uint64 + To *common.Address + Value *hexutil.Big + type Server struct + func NewServer(srv *aggregator.Server, ganacheMode bool) *Server + func (s *Server) Accounts() []common.Address + func (s *Server) BlockNumber() (hexutil.Uint64, error) + func (s *Server) Call(callArgs CallTxArgs, blockNum *rpc.BlockNumber) (hexutil.Bytes, error) + func (s *Server) ChainId() hexutil.Uint64 + func (s *Server) EstimateGas(args CallTxArgs) (hexutil.Uint64, error) + func (s *Server) GasPrice() *hexutil.Big + func (s *Server) GetBalance(address *common.Address, blockNum *rpc.BlockNumber) (*hexutil.Big, error) + func (s *Server) GetBlockByHash(blockHashRaw hexutil.Bytes, includeTxData bool) (*GetBlockResult, error) + func (s *Server) GetBlockByNumber(blockNum *rpc.BlockNumber, includeTxData bool) (*GetBlockResult, error) + func (s *Server) GetBlockTransactionCountByHash(blockHash common.Hash) (*hexutil.Big, error) + func (s *Server) GetBlockTransactionCountByNumber(blockNum *rpc.BlockNumber) (*hexutil.Big, error) + func (s *Server) GetCode(address *common.Address, blockNum *rpc.BlockNumber) (hexutil.Bytes, error) + func (s *Server) GetStorageAt(address *common.Address, index *hexutil.Big, blockNum *rpc.BlockNumber) (*hexutil.Big, error) + func (s *Server) GetTransactionByBlockHashAndIndex(blockHash common.Hash, index hexutil.Uint64) (*TransactionResult, error) + func (s *Server) GetTransactionByBlockNumberAndIndex(blockNum *rpc.BlockNumber, index hexutil.Uint64) (*TransactionResult, error) + func (s *Server) GetTransactionByHash(txHash hexutil.Bytes) (*TransactionResult, error) + func (s *Server) GetTransactionCount(ctx context.Context, address *common.Address, blockNum *rpc.BlockNumber) (hexutil.Uint64, error) + func (s *Server) GetTransactionReceipt(txHash hexutil.Bytes) (*GetTransactionReceiptResult, error) + func (s *Server) SendRawTransaction(ctx context.Context, data hexutil.Bytes) (hexutil.Bytes, error) + type TransactionResult struct + ArbSubType *hexutil.Uint64 + ArbType hexutil.Uint64 + BlockHash *common.Hash + BlockNumber *hexutil.Big + From common.Address + Gas hexutil.Uint64 + GasPrice *hexutil.Big + Hash common.Hash + IndexInParent *hexutil.Big + Input hexutil.Bytes + L1BlockNumber *hexutil.Big + L1SeqNum *hexutil.Big + Nonce hexutil.Uint64 + ParentRequestId *common.Hash + R *hexutil.Big + S *hexutil.Big + To *common.Address + TransactionIndex *hexutil.Uint64 + V *hexutil.Big + Value *hexutil.Big + type Web3 struct + func (web3 *Web3) ClientVersion() string + func (web3 *Web3) Sha3(data hexutil.Bytes) hexutil.Bytes