Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPResp ¶
Types ¶
type BlockData ¶
type BlockData struct { Hash string ChainID string Height string Time time.Time NumTxs string LastCommitHash string DataHash string ValidatorsHash string AppHash string Txs []*types.Transaction }
func GetBlockChainList ¶
func GetLastNumChain ¶
type HTTPResponse ¶
type HTTPResponse struct { JSONRPC string `json:"jsonrpc"` ID string `json:"id"` Result *json.RawMessage `json:"result"` Error string `json:"error"` }
type Header ¶
type Header struct { ChainID string `json:"chain_id"` Height string `json:"height"` Time time.Time `json:"time"` NumTxs string `json:"num_txs"` // XXX: Can we get rid of this? LastCommitHash string `json:"last_commit_hash"` // commit from validators from the last block DataHash string `json:"data_hash"` // transactions ValidatorsHash string `json:"validators_hash"` // validators for the current block AppHash string `json:"app_hash"` // state after txs from the previous block //ReceiptsHash string `json:"recepits_hash"` // recepits_hash from previous block LastBlockID BlockID `json:"last_block_id"` }
type ResultBlock ¶
func GetBlock ¶
func GetBlock(height string) (result ResultBlock, err error)
Click to show internal directories.
Click to hide internal directories.