Documentation ¶
Index ¶
- func GetAPIs(eth *eth.Ethereum) ([]rpc.API, error)
- type RPCServer
- type Service
- func (s *Service) BlockSubscribe(ctx context.Context) (*rpc.Subscription, error)
- func (s *Service) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*big.Int, error)
- func (s *Service) GetBlock(num *big.Int) (*types.LKBlock, error)
- func (s *Service) GetBlockNum() (*big.Int, error)
- func (s *Service) GetBlockNumUint64() (uint64, error)
- func (s *Service) GetLogs(ctx context.Context, crit filters.FilterCriteria) ([]*etypes.Log, error)
- func (s *Service) GetTransaction(req *types.TxRecordReq) (*types.LKTransaction, error)
- func (s *Service) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (uint64, error)
- func (s *Service) GetTransactionReceipt(hash common.Hash) (map[string]interface{}, error)
- func (s *Service) GetWrappedTransaction(req *types.TxRecordReq) (*types.WrappedLKTransaction, error)
- func (s *Service) LogsSubscribe(ctx context.Context, crit filters.FilterCriteria) (*rpc.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) BlockSubscribe ¶
BlockSubscribe subscribe new block notifi.
func (*Service) GetBalance ¶
func (*Service) GetBlockNum ¶
GetBlockNum query current block num
func (*Service) GetBlockNumUint64 ¶
GetBlockNumUint64 query current block num
func (*Service) GetTransaction ¶
func (s *Service) GetTransaction(req *types.TxRecordReq) (*types.LKTransaction, error)
GetTransaction query transaction
func (*Service) GetTransactionCount ¶
func (*Service) GetTransactionReceipt ¶
GetTransactionReceipt returns the transaction receipt for the given transaction hash.
func (*Service) GetWrappedTransaction ¶
func (s *Service) GetWrappedTransaction(req *types.TxRecordReq) (*types.WrappedLKTransaction, error)
func (*Service) LogsSubscribe ¶
func (s *Service) LogsSubscribe(ctx context.Context, crit filters.FilterCriteria) (*rpc.Subscription, error)
BlockSubscribe subscribe new block notifi.
Click to show internal directories.
Click to hide internal directories.