Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Confirmations int64 `json:"Confirmations"` Hash string `json:"Hash"` Index int64 `json:"Index"` Merkleroot string `json:"Merkleroot"` NextBlockHash string `json:"Nextblockhash"` NextConsensus string `json:"Nextconsensus"` Nonce string `json:"Nonce"` PreviousBlockHash string `json:"Previousblockhash"` Size int64 `json:"Size"` Time int64 `json:"Time"` Version int64 `json:"Version"` Script Script `json:"Script"` Transactions []Transaction `json:"Tx"` }
Block holds all the data about a particular block on the blockchain.
type Script ¶
type Script struct { Invocation string `json:"Invocation"` Verification string `json:"Verification"` }
Script holds all data about the scripts used.
type Transaction ¶
type Transaction struct { ID string `json:"Txid"` Size int64 `json:"Size"` Type string `json:"Type"` Version int64 `json:"Version"` Attributes []interface{} `json:"Attributes"` // 💩 Vin []Vin `json:"Vin"` Vout []Vout `json:"Vout"` SysFee string `json:"Sys_fee"` NetFee string `json:"Net_fee"` Scripts []Script `json:"Scripts"` Nonce int64 `json:"Nonce"` }
Transaction holds all data about a transaction on the blockchain.
Click to show internal directories.
Click to hide internal directories.