blockdata

package
v0.0.0-...-6077ea7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRawTransaction

func DecodeRawTransaction(transactionHash []byte) *btcjson.TxRawResult

Decode the raw transaction hash into a human readable json

func GetBlock

func GetBlock(blockhash *chainhash.Hash) (*btcjson.GetBlockVerboseResult, error)

func GetBlockAsync

func GetBlockAsync(blockhash *chainhash.Hash) *btcjson.GetBlockVerboseResult

func GetBlockChainInfo

func GetBlockChainInfo() (*btcjson.GetBlockChainInfoResult, error)

func GetBlockCount

func GetBlockCount() int64

func GetBlockHash

func GetBlockHash(blockHeight int64) (*chainhash.Hash, error)

func GetBlockHashAsync

func GetBlockHashAsync(blockHeight int64) *chainhash.Hash

func GetBlockHeader

func GetBlockHeader(blockhash *chainhash.Hash) (*btcjson.GetBlockHeaderVerboseResult, error)

func GetBlockHeaderVerbose

func GetBlockHeaderVerbose(blockhash *chainhash.Hash) (*btcjson.GetBlockHeaderVerboseResult, error)

func GetDifficulty

func GetDifficulty() (float64, error)

get current difficulty of a block

func GetLatestBlock

func GetLatestBlock() (*btcjson.GetBlockVerboseResult, error)

get latest block info

func GetRawTransaction

func GetRawTransaction(transactionHash *chainhash.Hash) *btcutil.Tx

func GetRawTransactionVerbose

func GetRawTransactionVerbose(transactionHash *chainhash.Hash) (*btcjson.TxRawResult, error)

func SearchRawTransactionsVerbose

func SearchRawTransactionsVerbose(address btcutil.Address, skip, count int, reverse bool, filterAddrs []string) []*btcjson.SearchRawTransactionsResult

Types

This section is empty.

Jump to

Keyboard shortcuts

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