Documentation ¶
Index ¶
- type Module
- func (m *Module) Balance(ctx context.Context, addr string) (*big.Int, error)
- func (m *Module) FundFromFaucet(ctx context.Context, addr string) error
- func (m *Module) GetVerifiedClientInfo(ctx context.Context, addr string) (wallet.VerifiedClientInfo, error)
- func (m *Module) List(ctx context.Context) ([]string, error)
- func (m *Module) MasterAddr() address.Address
- func (m *Module) NewAddress(ctx context.Context, typ string) (string, error)
- func (m *Module) SendFil(ctx context.Context, from string, to string, amount *big.Int) (cid.Cid, error)
- func (m *Module) Sign(ctx context.Context, addr string, message []byte) ([]byte, error)
- func (m *Module) Verify(ctx context.Context, addr string, message, signature []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module exposes the filecoin wallet api.
func New ¶
func New(clientBuilder lotus.ClientBuilder, maddr address.Address, iam big.Int, autocreate bool, networkName string) (*Module, error)
New creates a new wallet module.
func (*Module) FundFromFaucet ¶
FundFromFaucet make a faucet call to fund the provided wallet address.
func (*Module) GetVerifiedClientInfo ¶
func (m *Module) GetVerifiedClientInfo(ctx context.Context, addr string) (wallet.VerifiedClientInfo, error)
GetVerifiedClientInfo returns details about a wallet-address that's a verified client. If the wallet address isn't a verified client, it will return ErrNoVerifiedClient.
func (*Module) MasterAddr ¶
func (m *Module) MasterAddr() address.Address
MasterAddr returns the master address. Will return address.Undef is Powergate was started with no master address.
func (*Module) NewAddress ¶
NewAddress creates a new address.
func (*Module) SendFil ¶
func (m *Module) SendFil(ctx context.Context, from string, to string, amount *big.Int) (cid.Cid, error)
SendFil sends fil from one address to another.
Click to show internal directories.
Click to hide internal directories.