Documentation ¶
Index ¶
- type LotusClient
- func (c *LotusClient) GetBlock(cid string) ([]byte, error)
- func (c *LotusClient) GetChainHead() ([]byte, error)
- func (c *LotusClient) GetNodeVersion() ([]byte, error)
- func (c *LotusClient) GetTipSetByHeight(chainEpoch int64) ([]byte, error)
- func (c *LotusClient) GetTransaction(cid string) ([]byte, error)
- func (c *LotusClient) HandleRequest(method string, params []interface{}) ([]byte, error)
- func (c *LotusClient) VerifyCid(cid string) ([]byte, error)
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 (*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.
Click to show internal directories.
Click to hide internal directories.