rpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 1 Imported by: 0

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

type Client struct {
	client.Request
}

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"`
}

Jump to

Keyboard shortcuts

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