Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricsSubsystem = "eth" ChainIDMethodName = "chainId" GetBlockByNumberMethodName = "getBlockByNumber" GetBlockByHashMethodName = "getBlockByHash" )
Variables ¶
View Source
var RPCMethodDurationBucketsMicroseconds = []float64{1, 10, 50, 100, 500, 1000}
Functions ¶
This section is empty.
Types ¶
type BlockAPI ¶
type BlockAPI struct {
// contains filtered or unexported fields
}
func (*BlockAPI) GetBlockByHash ¶
type BlockID ¶
type BlockID struct { Label eth.BlockLabel Height int64 }
func (*BlockID) UnmarshalJSON ¶
type BlockIDDatabase ¶
type ChainIDAPI ¶
type ChainIDAPI struct {
// contains filtered or unexported fields
}
func NewChainIDAPI ¶
func NewChainIDAPI(chainID *hexutil.Big, metrics Metrics) *ChainIDAPI
func (*ChainIDAPI) ChainId ¶
func (e *ChainIDAPI) ChainId() *hexutil.Big
type Metrics ¶
type Metrics interface { rpcmetrics.Metrics }
Metrics contains metrics collected from the eth package.
func NewMetrics ¶
func NewNoopMetrics ¶
func NewNoopMetrics() Metrics
type ProofAPI ¶
type ProofAPI struct {
// contains filtered or unexported fields
}
func (*ProofAPI) GetProof ¶
func (p *ProofAPI) GetProof( ctx context.Context, address common.Address, storageKeys []string, blockNrOrHash rpc.BlockNumberOrHash, ) (*ethapi.AccountResult, error)
GetProof returns the account and storage values of the specified account including the Merkle-proof. The user can specify either a block number or a block hash to build to proof from.
Click to show internal directories.
Click to hide internal directories.