Documentation ¶
Index ¶
- func AccountIsExist(address string) bool
- type Server
- func (s *Server) GetAllBlock(ctx context.Context, req *pb.GetAllBlockReq) (*pb.GetAllBlockResp, error)
- func (s *Server) GetAllTx(ctx context.Context, req *pb.GetAllTxReq) (*pb.GetAllTxResp, error)
- func (s *Server) GetBalance(ctx context.Context, req *pb.GetBalanceReq) (*pb.GetBalanceResp, error)
- func (s *Server) GetInfoByBlockHash(ctx context.Context, req *pb.GetInfoByBlockHashReq) (*pb.GetInfoByBlockHashResp, error)
- func (s *Server) GetInfoByBlockNum(ctx context.Context, req *pb.GetInfoByBlockNumReq) (*pb.GetInfoByBlockNumResp, error)
- func (s *Server) GetInfoByTxHash(ctx context.Context, req *pb.GetInfoByTxHashReq) (*pb.GetInfoByTxHashResp, error)
- func (s *Server) GetTxPool(ctx context.Context, req *pb.GetTxPoolReq) (*pb.GetTxPoolResp, error)
- func (s *Server) Mine(ctx context.Context, req *pb.MineReq) (*pb.MineResp, error)
- func (s *Server) NewAccount(ctx context.Context, req *pb.NewAccountReq) (*pb.NewAccountResp, error)
- func (s *Server) NewBlock(ctx context.Context, req *pb.NewBlockReq) (*pb.NewBlockResp, error)
- func (s *Server) NewTx(ctx context.Context, req *pb.NewTxReq) (*pb.NewTxResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountIsExist ¶
Types ¶
type Server ¶
type Server struct { MptDB *pebble.DB ChainDB *pebble.DB TxDB *pebble.DB pb.UnimplementedRpcServer }
func (*Server) GetAllBlock ¶
func (s *Server) GetAllBlock(ctx context.Context, req *pb.GetAllBlockReq) (*pb.GetAllBlockResp, error)
func (*Server) GetAllTx ¶
func (s *Server) GetAllTx(ctx context.Context, req *pb.GetAllTxReq) (*pb.GetAllTxResp, error)
func (*Server) GetBalance ¶
func (s *Server) GetBalance(ctx context.Context, req *pb.GetBalanceReq) (*pb.GetBalanceResp, error)
func (*Server) GetInfoByBlockHash ¶
func (s *Server) GetInfoByBlockHash(ctx context.Context, req *pb.GetInfoByBlockHashReq) (*pb.GetInfoByBlockHashResp, error)
func (*Server) GetInfoByBlockNum ¶
func (s *Server) GetInfoByBlockNum(ctx context.Context, req *pb.GetInfoByBlockNumReq) (*pb.GetInfoByBlockNumResp, error)
func (*Server) GetInfoByTxHash ¶
func (s *Server) GetInfoByTxHash(ctx context.Context, req *pb.GetInfoByTxHashReq) (*pb.GetInfoByTxHashResp, error)
func (*Server) GetTxPool ¶
func (s *Server) GetTxPool(ctx context.Context, req *pb.GetTxPoolReq) (*pb.GetTxPoolResp, error)
func (*Server) NewAccount ¶
func (s *Server) NewAccount(ctx context.Context, req *pb.NewAccountReq) (*pb.NewAccountResp, error)
func (*Server) NewBlock ¶
func (s *Server) NewBlock(ctx context.Context, req *pb.NewBlockReq) (*pb.NewBlockResp, error)
Click to show internal directories.
Click to hide internal directories.