Documentation ¶
Index ¶
- Variables
- func CurrentBlockHeight() (float64, error)
- func GetBalanceAddress(addr string) (float64, float64)
- func GetBalanceCount(addr string) (float64, float64)
- func GetFeeEstimates() (format.FeeResponse, error)
- func GetTxsAddress(addr string) ([]format.Tx, error)
- func GetUtxosAddress(addr string) ([]format.Utxo, error)
- func SetMainnet()
- func SetURL(main, fallback string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ElectrsURL = "http://testapi.bithyve.com"
ElectrsURL is the URL of a running electrs instance
View Source
var FallbackURL = "https://blockstream.info/testnet/api"
FallbackURL is the URL of a fallback electrs instance
Functions ¶
func CurrentBlockHeight ¶
CurrentBlockHeight gets the current block height from the blockchain
func GetBalanceAddress ¶
GetBalanceAddress gets the net balance of an address
func GetBalanceCount ¶
GetBalanceCount gets the total incoming balance
func GetFeeEstimates ¶
func GetFeeEstimates() (format.FeeResponse, error)
GetFeeEstimates gets the fee estimates in the following blocks
func GetTxsAddress ¶
GetTxsAddress gets the transactions associated with a given address
func GetUtxosAddress ¶
GetUtxosAddress gets the utxos associated with a given address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.