blockstream

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(ctx context.Context, hash string, raw bool) (string, error)

func BlockBytes

func BlockBytes(ctx context.Context, hash string) ([]byte, error)

func BlockHeader

func BlockHeader(ctx context.Context, hash string) (string, error)

func BlockHeightHash

func BlockHeightHash(ctx context.Context, height string) (string, error)

func Tip

func Tip(ctx context.Context) (int, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL