diff --git a/types.go b/types.go index 6857480e..3ec602cf 100644 --- a/types.go +++ b/types.go @@ -39,15 +39,15 @@ type Tx struct { } type Block struct { - Hash string `json:"hash"` - Next string `json:"nextblockhash"` - Height uint32 `json:"height"` - Txids []string `json:"tx"` - Txs []*Tx `json:"_"` + BlockHeader + Txids []string `json:"tx"` + Txs []*Tx `json:"_"` } type BlockHeader struct { - Hash string `json:"hash"` - Next string `json:"nextblockhash"` - Height uint32 `json:"height"` + Hash string `json:"hash"` + Prev string `json:"prevblockhash"` + Next string `json:"nextblockhash"` + Height uint32 `json:"height"` + Confirmations int `json:"confirmations"` }