lotus

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 9 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 provides access to the paych api.

func New

func New(clientBuilder lotus.ClientBuilder) *Module

New creates a new paych module.

func (*Module) Create

func (m *Module) Create(ctx context.Context, from string, to string, amount uint64) (ffs.PaychInfo, cid.Cid, error)

Create creates a new payment channel.

func (*Module) List

func (m *Module) List(ctx context.Context, addrs ...string) ([]ffs.PaychInfo, error)

List lists all payment channels involving the specified addresses.

func (*Module) Redeem

func (m *Module) Redeem(ctx context.Context, ch string) error

Redeem redeems a payment channel.

Jump to

Keyboard shortcuts

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