Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcClient ¶
type GrpcClient struct { Address string Conn *grpc.ClientConn Client api.WalletClient }
func NewGrpcClient ¶
func NewGrpcClient(address string) *GrpcClient
func (*GrpcClient) GetAccount ¶
func (g *GrpcClient) GetAccount(address string) (*core.Account, error)
func (*GrpcClient) GetBlockByNum ¶
func (g *GrpcClient) GetBlockByNum(num int64) (*api.BlockExtention, error)
func (*GrpcClient) GetNowBlock ¶
func (g *GrpcClient) GetNowBlock() (*api.BlockExtention, error)
func (*GrpcClient) Start ¶
func (g *GrpcClient) Start()
Click to show internal directories.
Click to hide internal directories.