Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthBlockChainRPC ¶
type EthBlockChainRPC struct {
// contains filtered or unexported fields
}
func NewEthRPC ¶
func NewEthRPC(api string) *EthBlockChainRPC
func (EthBlockChainRPC) GetBlockByNum ¶
func (rpc EthBlockChainRPC) GetBlockByNum(num uint64) (sdk.Block, error)
func (EthBlockChainRPC) GetCurrentBlockNum ¶
func (rpc EthBlockChainRPC) GetCurrentBlockNum() (uint64, error)
func (EthBlockChainRPC) GetTransactionReceipt ¶
func (rpc EthBlockChainRPC) GetTransactionReceipt(txHash string) (sdk.TransactionReceipt, error)
type EthBlockChainRPCWithRetry ¶
type EthBlockChainRPCWithRetry struct { *EthBlockChainRPC // contains filtered or unexported fields }
func NewEthRPCWithRetry ¶
func NewEthRPCWithRetry(api string, maxRetryCount int) *EthBlockChainRPCWithRetry
func (EthBlockChainRPCWithRetry) GetBlockByNum ¶
func (rpc EthBlockChainRPCWithRetry) GetBlockByNum(num uint64) (rst sdk.Block, err error)
func (EthBlockChainRPCWithRetry) GetCurrentBlockNum ¶
func (rpc EthBlockChainRPCWithRetry) GetCurrentBlockNum() (rst uint64, err error)
func (EthBlockChainRPCWithRetry) GetTransactionReceipt ¶
func (rpc EthBlockChainRPCWithRetry) GetTransactionReceipt(txHash string) (rst sdk.TransactionReceipt, err error)
Click to show internal directories.
Click to hide internal directories.