Documentation ¶
Index ¶
- func GetBlockHeightByHash(rpcClient interfaces.BTCRPCClient, hash string) (int64, error)
- func GetRawTxResult(rpcClient interfaces.BTCRPCClient, hash *chainhash.Hash, ...) (btcjson.TxRawResult, error)
- func GetRecentFeeRate(rpcClient interfaces.BTCRPCClient, netParams *chaincfg.Params) (uint64, error)
- func GetTxResultByHash(rpcClient interfaces.BTCRPCClient, txID string) (*chainhash.Hash, *btcjson.GetTransactionResult, error)
- func NewRPCClient(btcConfig config.BTCConfig) (*rpcclient.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockHeightByHash ¶
func GetBlockHeightByHash( rpcClient interfaces.BTCRPCClient, hash string, ) (int64, error)
GetBlockHeightByHash gets the block height by block hash
func GetRawTxResult ¶
func GetRawTxResult( rpcClient interfaces.BTCRPCClient, hash *chainhash.Hash, res *btcjson.GetTransactionResult, ) (btcjson.TxRawResult, error)
GetRawTxResult gets the raw tx result
func GetRecentFeeRate ¶
func GetRecentFeeRate(rpcClient interfaces.BTCRPCClient, netParams *chaincfg.Params) (uint64, error)
GetRecentFeeRate gets the highest fee rate from recent blocks Note: this method is only used for testnet
func GetTxResultByHash ¶
func GetTxResultByHash( rpcClient interfaces.BTCRPCClient, txID string, ) (*chainhash.Hash, *btcjson.GetTransactionResult, error)
GetTxResultByHash gets the transaction result by hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.