Documentation
¶
Index ¶
- func Block(ctx context.Context, hash string, raw bool) (string, error)
- func BlockBytes(ctx context.Context, hash string) ([]byte, error)
- func BlockHeader(ctx context.Context, hash string) (string, error)
- func BlockHeightHash(ctx context.Context, height string) (string, error)
- func SetNetwork(network string) error
- func Tip(ctx context.Context) (int, error)
- type TBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetNetwork ¶ added in v0.16.1
Types ¶
type TBlock ¶
type TBlock struct {
ID string `json:"id"`
Height uint `json:"height"`
Version uint `json:"version"`
Timestamp int64 `json:"timestamp"`
TxCount uint `json:"tx_count"`
Size uint `json:"size"`
Weight uint `json:"weight"`
MerkleRoot string `json:"merkle_root"`
PreviousBlockHash string `json:"previousblockhash"`
MedianTime int64 `json:"mediantime"`
Nonce uint `json:"nonce"`
Bits uint `json:"bits"`
Difficulty uint `json:"difficulty"`
}
Click to show internal directories.
Click to hide internal directories.