wallet

package
v0.0.1-beta.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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(api *apistruct.FullNodeStruct, maddr address.Address, iam big.Int) (*Module, error)

New creates a new wallet module

func (*Module) Balance

func (m *Module) Balance(ctx context.Context, addr string) (uint64, error)

Balance returns the balance of the specified address.

func (*Module) NewAddress

func (m *Module) NewAddress(ctx context.Context, typ string) (string, error)

NewAddress creates a new address

func (*Module) SendFil

func (m *Module) SendFil(ctx context.Context, from string, to string, amount *big.Int) error

SendFil sends fil from one address to another

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL