Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeBlock ¶
NormalizeBlock converts a Nimiq block into the generic model
func NormalizeTx ¶
NormalizeTx converts a Nimiq transaction into the generic model
func NormalizeTxs ¶
NormalizeTxs converts multiple Nimiq transactions
Types ¶
type Block ¶
type Block struct { Number int64 `json:"number"` Hash string `json:"hash"` PoW string `json:"pow"` ParentHash string `json:"parentHash"` Nonce uint32 `json:"nonce"` BodyHash string `json:"bodyHash"` AccountsHash string `json:"accountsHash"` MinerHex string `json:"miner"` Miner string `json:"minerAddress"` Difficulty string `json:"difficulty"` ExtraData string `json:"extraData"` Size int64 `json:"size"` Timestamp int64 `json:"timestamp"` Txs []Tx `json:"transactions"` }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
type Tx ¶
type Tx struct { Hash string `json:"hash"` BlockHash string `json:"blockHash"` BlockNumber uint64 `json:"blockNumber"` Timestamp json.Number `json:"timestamp"` Confirmations int `json:"confirmations"` TxIndex int `json:"transactionIndex"` FromAddress string `json:"fromAddress"` ToAddress string `json:"toAddress"` Value types.Amount `json:"value"` Fee types.Amount `json:"fee"` }
Click to show internal directories.
Click to hide internal directories.