Versions in this module Expand all Collapse all v1 v1.9.2 Aug 13, 2019 Changes in this version + type Account struct + func (a *Account) Address(ctx context.Context) (common.Address, error) + func (a *Account) Balance(ctx context.Context) (hexutil.Big, error) + func (a *Account) Code(ctx context.Context) (hexutil.Bytes, error) + func (a *Account) Storage(ctx context.Context, args struct{ ... }) (common.Hash, error) + func (a *Account) TransactionCount(ctx context.Context) (hexutil.Uint64, error) + type Block struct + func (b *Block) Account(ctx context.Context, args struct{ ... }) (*Account, error) + func (b *Block) Call(ctx context.Context, args struct{ ... }) (*CallResult, error) + func (b *Block) Difficulty(ctx context.Context) (hexutil.Big, error) + func (b *Block) EstimateGas(ctx context.Context, args struct{ ... }) (hexutil.Uint64, error) + func (b *Block) ExtraData(ctx context.Context) (hexutil.Bytes, error) + func (b *Block) GasLimit(ctx context.Context) (hexutil.Uint64, error) + func (b *Block) GasUsed(ctx context.Context) (hexutil.Uint64, error) + func (b *Block) Hash(ctx context.Context) (common.Hash, error) + func (b *Block) Logs(ctx context.Context, args struct{ ... }) ([]*Log, error) + func (b *Block) LogsBloom(ctx context.Context) (hexutil.Bytes, error) + func (b *Block) Miner(ctx context.Context, args BlockNumberArgs) (*Account, error) + func (b *Block) MixHash(ctx context.Context) (common.Hash, error) + func (b *Block) Nonce(ctx context.Context) (hexutil.Bytes, error) + func (b *Block) Number(ctx context.Context) (hexutil.Uint64, error) + func (b *Block) OmmerAt(ctx context.Context, args struct{ ... }) (*Block, error) + func (b *Block) OmmerCount(ctx context.Context) (*int32, error) + func (b *Block) OmmerHash(ctx context.Context) (common.Hash, error) + func (b *Block) Ommers(ctx context.Context) (*[]*Block, error) + func (b *Block) Parent(ctx context.Context) (*Block, error) + func (b *Block) ReceiptsRoot(ctx context.Context) (common.Hash, error) + func (b *Block) StateRoot(ctx context.Context) (common.Hash, error) + func (b *Block) Timestamp(ctx context.Context) (hexutil.Uint64, error) + func (b *Block) TotalDifficulty(ctx context.Context) (hexutil.Big, error) + func (b *Block) TransactionAt(ctx context.Context, args struct{ ... }) (*Transaction, error) + func (b *Block) TransactionCount(ctx context.Context) (*int32, error) + func (b *Block) Transactions(ctx context.Context) (*[]*Transaction, error) + func (b *Block) TransactionsRoot(ctx context.Context) (common.Hash, error) + type BlockFilterCriteria struct + Addresses *[]common.Address + Topics *[][]common.Hash + type BlockNumberArgs struct + Block *hexutil.Uint64 + func (a BlockNumberArgs) Number() rpc.BlockNumber + type BlockType int + type CallData struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + To *common.Address + Value *hexutil.Big + type CallResult struct + func (c *CallResult) Data() hexutil.Bytes + func (c *CallResult) GasUsed() hexutil.Uint64 + func (c *CallResult) Status() hexutil.Uint64 + type FilterCriteria struct + Addresses *[]common.Address + FromBlock *hexutil.Uint64 + ToBlock *hexutil.Uint64 + Topics *[][]common.Hash + type GraphiQL struct + func (h GraphiQL) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Log struct + func (l *Log) Account(ctx context.Context, args BlockNumberArgs) *Account + func (l *Log) Data(ctx context.Context) hexutil.Bytes + func (l *Log) Index(ctx context.Context) int32 + func (l *Log) Topics(ctx context.Context) []common.Hash + func (l *Log) Transaction(ctx context.Context) *Transaction + type Pending struct + func (p *Pending) Account(ctx context.Context, args struct{ ... }) *Account + func (p *Pending) Call(ctx context.Context, args struct{ ... }) (*CallResult, error) + func (p *Pending) EstimateGas(ctx context.Context, args struct{ ... }) (hexutil.Uint64, error) + func (p *Pending) TransactionCount(ctx context.Context) (int32, error) + func (p *Pending) Transactions(ctx context.Context) (*[]*Transaction, error) + type Resolver struct + func (r *Resolver) Block(ctx context.Context, args struct{ ... }) (*Block, error) + func (r *Resolver) Blocks(ctx context.Context, args struct{ ... }) ([]*Block, error) + func (r *Resolver) GasPrice(ctx context.Context) (hexutil.Big, error) + func (r *Resolver) Logs(ctx context.Context, args struct{ ... }) ([]*Log, error) + func (r *Resolver) Pending(ctx context.Context) *Pending + func (r *Resolver) ProtocolVersion(ctx context.Context) (int32, error) + func (r *Resolver) SendRawTransaction(ctx context.Context, args struct{ ... }) (common.Hash, error) + func (r *Resolver) Syncing() (*SyncState, error) + func (r *Resolver) Transaction(ctx context.Context, args struct{ ... }) (*Transaction, error) + type Service struct + func New(backend ethapi.Backend, endpoint string, cors, vhosts []string, ...) (*Service, error) + func (s *Service) APIs() []rpc.API + func (s *Service) Protocols() []p2p.Protocol + func (s *Service) Start(server *p2p.Server) error + func (s *Service) Stop() error + type SyncState struct + func (s *SyncState) CurrentBlock() hexutil.Uint64 + func (s *SyncState) HighestBlock() hexutil.Uint64 + func (s *SyncState) KnownStates() *hexutil.Uint64 + func (s *SyncState) PulledStates() *hexutil.Uint64 + func (s *SyncState) StartingBlock() hexutil.Uint64 + type Transaction struct + func (t *Transaction) Block(ctx context.Context) (*Block, error) + func (t *Transaction) CreatedContract(ctx context.Context, args BlockNumberArgs) (*Account, error) + func (t *Transaction) CumulativeGasUsed(ctx context.Context) (*hexutil.Uint64, error) + func (t *Transaction) From(ctx context.Context, args BlockNumberArgs) (*Account, error) + func (t *Transaction) Gas(ctx context.Context) (hexutil.Uint64, error) + func (t *Transaction) GasPrice(ctx context.Context) (hexutil.Big, error) + func (t *Transaction) GasUsed(ctx context.Context) (*hexutil.Uint64, error) + func (t *Transaction) Hash(ctx context.Context) common.Hash + func (t *Transaction) Index(ctx context.Context) (*int32, error) + func (t *Transaction) InputData(ctx context.Context) (hexutil.Bytes, error) + func (t *Transaction) Logs(ctx context.Context) (*[]*Log, error) + func (t *Transaction) Nonce(ctx context.Context) (hexutil.Uint64, error) + func (t *Transaction) Status(ctx context.Context) (*hexutil.Uint64, error) + func (t *Transaction) To(ctx context.Context, args BlockNumberArgs) (*Account, error) + func (t *Transaction) Value(ctx context.Context) (hexutil.Big, error)