Documentation ¶
Index ¶
- Constants
- type APIClient
- func (c *APIClient) GetBlock(cid cid.Cid) *types.BlockHeader
- func (c *APIClient) GetBlockMessages(cid cid.Cid) *api.BlockMessages
- func (c *APIClient) GetByHeight(height abi.ChainEpoch) (*types.TipSet, bool)
- func (c *APIClient) GetGenesis() *types.TipSet
- func (c *APIClient) GetHead() *types.TipSet
- func (c *APIClient) GetMessage(cid cid.Cid) *types.Message
- type APIErr
- type APIRequest
- type APIResponse
- type Block
- type BlockMessages
- type Message
- type TipSet
Constants ¶
View Source
const ( ChainHead = "Filecoin.ChainHead" ChainGetGenesis = "Filecoin.ChainGetGenesis" ChainGetBlock = "Filecoin.ChainGetBlock" ChainGetTipSetByHeight = "Filecoin.ChainGetTipSetByHeight" ChainGetBlockMessages = "Filecoin.ChainGetBlockMessages" ChainGetMessage = "Filecoin.ChainGetMessage" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) GetBlock ¶
func (c *APIClient) GetBlock(cid cid.Cid) *types.BlockHeader
func (*APIClient) GetBlockMessages ¶
func (c *APIClient) GetBlockMessages(cid cid.Cid) *api.BlockMessages
func (*APIClient) GetByHeight ¶
func (*APIClient) GetGenesis ¶
func (*APIClient) GetMessage ¶
type APIRequest ¶
type APIResponse ¶
type Block ¶
type Block struct { APIResponse Result *types.BlockHeader `json:"result"` // payload }
type BlockMessages ¶
type BlockMessages struct { APIResponse Result *api.BlockMessages `json:"result"` // payload }
type Message ¶
type Message struct { APIResponse Result *types.Message `json:"result"` // payload }
type TipSet ¶
type TipSet struct { APIResponse Result *types.TipSet `json:"result"` // payload }
Click to show internal directories.
Click to hide internal directories.