Documentation ¶
Index ¶
- func GetBalance(c context.Context, address string) (uint64, error)
- func GetBlockCount() (int64, error)
- func GetConfirmations(txid string) (uint64, error)
- func GetNewAddress() (string, error)
- func GetRawTransaction(txid string) (*btcjson.TxRawResult, error)
- func Init()
- func InitWithConfigPath(configFilePath string)
- func SendRawTransaction(c context.Context, txHexString string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockCount ¶
Thanks to https://raw.githubusercontent.com/btcsuite/btcrpcclient/master/examples/bitcoincorehttp/main.go
func GetConfirmations ¶
func GetNewAddress ¶
func GetRawTransaction ¶
func GetRawTransaction(txid string) (*btcjson.TxRawResult, error)
func InitWithConfigPath ¶
func InitWithConfigPath(configFilePath string)
func SendRawTransaction ¶
Transmits to the bitcoin network the raw transaction as provided. The transaction should be encoded as a hex string, as per the original Bitcoin RPC JSON API. The TxId of the transaction is returned if successfully transmitted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.