Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeBlock ¶ added in v1.0.0
func NormalizeBlock(srcBlock *Block) blockatlas.Block
NormalizeBlock converts a Nimiq block into the generic model
func NormalizeTx ¶ added in v1.0.0
func NormalizeTx(srcTx *Tx) blockatlas.Tx
NormalizeTx converts a Nimiq transaction into the generic model
func NormalizeTxs ¶ added in v1.0.0
func NormalizeTxs(srcTxs []Tx) []blockatlas.Tx
NormalizeTxs converts multiple Nimiq transactions
Types ¶
type Block ¶ added in v1.0.0
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 Client ¶ added in v1.0.0
type Client struct {
blockatlas.Request
}
func (*Client) CurrentBlockNumber ¶ added in v1.0.0
func (*Client) GetBlockByNumber ¶ added in v1.0.0
type Platform ¶ added in v1.0.0
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶ added in v1.0.0
func (*Platform) GetBlockByNumber ¶ added in v1.0.0
func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
func (*Platform) GetTxsByAddress ¶ added in v1.0.0
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
type Tx ¶ added in v1.0.0
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 blockatlas.Amount `json:"value"` Fee blockatlas.Amount `json:"fee"` }
Click to show internal directories.
Click to hide internal directories.