filecoin

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LotusClient

type LotusClient struct {
	// contains filtered or unexported fields
}

client implements the `Client` interface.

func NewLotusClient

func NewLotusClient() *LotusClient

NewClient returns a new client.

func (*LotusClient) GetBlock

func (c *LotusClient) GetBlock(cid string) ([]byte, error)

func (*LotusClient) GetChainHead

func (c *LotusClient) GetChainHead() ([]byte, error)

func (*LotusClient) GetNodeVersion

func (c *LotusClient) GetNodeVersion() ([]byte, error)

func (*LotusClient) GetTipSetByHeight

func (c *LotusClient) GetTipSetByHeight(chainEpoch int64) ([]byte, error)

func (*LotusClient) GetTransaction

func (c *LotusClient) GetTransaction(cid string) ([]byte, error)

Gets signed transaction from Filecoin and returns SignedTransaction struct in byte slice

func (*LotusClient) HandleRequest

func (c *LotusClient) HandleRequest(method string, params []interface{}) ([]byte, error)

HandleRequest implements the `Client` interface.

func (*LotusClient) VerifyCid

func (c *LotusClient) VerifyCid(cid string) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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