Documentation ¶
Index ¶
- type Block
- type BlockHeader
- type BlockTxRpc
- type BlockTxs
- type ChainInfo
- type Client
- func (c *Client) GetBlock(number int64) (block Block, err error)
- func (c *Client) GetBlockchainInfo() (info *ChainInfo, err error)
- func (c *Client) GetTransactionsHashesInBlock(number int64) ([]string, error)
- func (c *Client) GetTx(hash string) (tx Tx, err error)
- func (c *Client) GetTxInBlock(number int64) (header BlockHeader, txs []Tx, err error)
- type HashesResponse
- type Receipt
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Header BlockHeader `json:"header"`
}
type BlockHeader ¶
type BlockTxRpc ¶
type Client ¶
func InitClient ¶
func (*Client) GetBlockchainInfo ¶
func (*Client) GetTransactionsHashesInBlock ¶
func (*Client) GetTxInBlock ¶
func (c *Client) GetTxInBlock(number int64) (header BlockHeader, txs []Tx, err error)
type HashesResponse ¶
type HashesResponse struct { ID int `json:"id"` Jsonrpc string `json:"jsonrpc"` Result [][]string `json:"result"` }
func (HashesResponse) Txs ¶
func (h HashesResponse) Txs() []string
type Tx ¶
type Tx struct { ID string `json:"ID"` Amount string `json:"amount"` GasLimit string `json:"gasLimit"` GasPrice string `json:"gasPrice"` Nonce string `json:"nonce"` Receipt Receipt `json:"receipt"` SenderPubKey string `json:"senderPubKey"` Signature string `json:"signature"` ToAddr string `json:"toAddr"` Version string `json:"version"` }
Click to show internal directories.
Click to hide internal directories.