Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { WalletNew(context.Context, string) (address.Address, error) WalletBalance(context.Context, address.Address) (types.BigInt, error) }
API interacts with a Filecoin full-node
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module exposes the filecoin wallet api.
type Service ¶
type Service struct { pb.UnimplementedAPIServer Module *Module }
Service implements the gprc service
func (*Service) NewWallet ¶
func (s *Service) NewWallet(ctx context.Context, req *pb.NewWalletRequest) (*pb.NewWalletReply, error)
NewWallet creates a new wallet
func (*Service) WalletBalance ¶
func (s *Service) WalletBalance(ctx context.Context, req *pb.WalletBalanceRequest) (*pb.WalletBalanceReply, error)
WalletBalance checks a wallet balance
Click to show internal directories.
Click to hide internal directories.