Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMessageResponse ¶
type BlockMessageResponse struct {
SecpkMessages []SecpkMessage `json:"SecpkMessages"`
}
type ChainHeadResponse ¶
type ChainHeadResponse struct { Cids []struct { Cid string `json:"/"` } `json:"Cids"` Blocks []struct { Timestamp int `json:"Timestamp"` } Height int `json:"Height"` }
func (ChainHeadResponse) GetCids ¶
func (c ChainHeadResponse) GetCids() []string
func (ChainHeadResponse) GetTimestamp ¶
func (c ChainHeadResponse) GetTimestamp() int64
type Client ¶
func (Client) GetBlockHeight ¶
func (c Client) GetBlockHeight() (ChainHeadResponse, error)
func (Client) GetBlockMessage ¶
func (c Client) GetBlockMessage(cid string) (BlockMessageResponse, error)
func (Client) GetTipSetByHeight ¶
func (c Client) GetTipSetByHeight(height int64) (ChainHeadResponse, error)
type Message ¶
type Message struct { Version int `json:"Version"` To string `json:"To"` From string `json:"From"` Nonce int `json:"Nonce"` Value string `json:"Value"` GasLimit int `json:"GasLimit"` GasFeeCap string `json:"GasFeeCap"` GasPremium string `json:"GasPremium"` Method int `json:"Method"` Params interface{} `json:"Params"` }
type SecpkMessage ¶
type SecpkMessage struct {
Message Message `json:"Message"`
}
Click to show internal directories.
Click to hide internal directories.