Documentation ¶
Index ¶
- Variables
- func AbandonTransaction(txid string) ([]byte, error)
- func AbortRescan() ([]byte, error)
- func AddMultisigAddress(n string, keys ...string) ([]byte, error)
- func AddNode(node string) ([]byte, error)
- func AnalyzePSBT(psbt string) ([]byte, error)
- func BackupWallet(destination string) ([]byte, error)
- func BumpFee(txid string) ([]byte, error)
- func ClearBanned() ([]byte, error)
- func CombinePSBT(psbts ...string) ([]byte, error)
- func CombineRawTransaction(psbts ...string) ([]byte, error)
- func ConvertToPsbt(psbt string) ([]byte, error)
- func CreateMultisig(n int, pubkeys ...string) ([]byte, error)
- func CreateWallet(walletName string, disablePrivkey bool, blank bool) ([]byte, error)
- func DecodePsbt(psbt string) ([]byte, error)
- func DecodeRawTransaction(rawtx string) ([]byte, error)
- func DecodeScript(hexString string) ([]byte, error)
- func DeriveAddresses(descriptor string) ([]byte, error)
- func DisconnectNode(address string) ([]byte, error)
- func DumpPrivKey(address string) ([]byte, error)
- func EncryptWallet(passphrase string) ([]byte, error)
- func EstimateSmartFee(confTarget string, estimateMode string) ([]byte, error)
- func FinalizePSBT(psbt string, extract bool) ([]byte, error)
- func FundRawTransaction(hexString string, includeWatching bool) ([]byte, error)
- func Generate(nBlocks string, maxtries string) ([]byte, error)
- func GenerateToAddress(nBlocks string, address string) ([]byte, error)
- func GetAddedNodeInfo() ([]byte, error)
- func GetAddressesByLabel(label string) ([]byte, error)
- func GetAddressesInfo(address string) ([]byte, error)
- func GetBalance(dummy string, minConf string, watchOnly bool) ([]byte, error)
- func GetBestBlockHash() ([]byte, error)
- func GetBlock(blockhash string) ([]byte, error)
- func GetBlockCount() ([]byte, error)
- func GetBlockHash(blockNumber uint32) ([]byte, error)
- func GetBlockHeader(blockhash string) ([]byte, error)
- func GetBlockStats(hashOrHeight string) ([]byte, error)
- func GetChainTips() ([]byte, error)
- func GetChainTxStats(nBlocks string) ([]byte, error)
- func GetConnectionCount() ([]byte, error)
- func GetDescriptorInfo(descriptor string) ([]byte, error)
- func GetDifficulty() ([]byte, error)
- func GetMemoryInfo() ([]byte, error)
- func GetMempoolAncestors(txid string) ([]byte, error)
- func GetMempoolEntry(txid string) ([]byte, error)
- func GetMempoolInfo() ([]byte, error)
- func GetNetTotals() ([]byte, error)
- func GetNetworkInfo() ([]byte, error)
- func GetNewAddress(label string, addressType string) ([]byte, error)
- func GetNodeAddresses() ([]byte, error)
- func GetPeerInfo() ([]byte, error)
- func GetRPCInfo() ([]byte, error)
- func GetRawChangeAddress() ([]byte, error)
- func GetRawMempool() ([]byte, error)
- func GetRawTransaction(txid string, verbose bool, blockhash string) ([]byte, error)
- func GetReceivedByLabel(label string) ([]byte, error)
- func GetTransaction(txid string, watchOnly bool) ([]byte, error)
- func GetTxOut(txid string, n int) ([]byte, error)
- func GetTxOutProof(txid string) ([]byte, error)
- func GetTxOutSetInfo() ([]byte, error)
- func GetUnconfirmedBalance() ([]byte, error)
- func GetWalletInfo() ([]byte, error)
- func GetZmqNotifications() ([]byte, error)
- func Help() ([]byte, error)
- func ImportAddress(address string, label string, rescan bool, p2sh bool) ([]byte, error)
- func ImportPrunedFunds(rawtx string, txoutproof string) ([]byte, error)
- func ImportPubkey(pubkey string, label string, rescan bool) ([]byte, error)
- func ImportWallet(name string) ([]byte, error)
- func JoinPSBTs(psbts ...string) ([]byte, error)
- func KeypoolRefill(newSize string) ([]byte, error)
- func ListAddressGroupings() ([]byte, error)
- func ListBanned() ([]byte, error)
- func ListLabels(purpose string) ([]byte, error)
- func ListLockUnspent() ([]byte, error)
- func ListReceivedByAddress(minConf string, includeEmpty bool, watchOnly bool, addressFilter string) ([]byte, error)
- func ListReceivedByLabel(minConf string, includeEmpty bool, watchOnly bool) ([]byte, error)
- func ListSinceBlock(blockhash string, targetConf string, watchOnly bool, includeRemoved bool) ([]byte, error)
- func ListTransactions(label string, count string, skip string, watchOnly bool) ([]byte, error)
- func ListUnspent(minConf string, maxConf string, addresses []string) ([]byte, error)
- func ListWalletDir() ([]byte, error)
- func ListWallets() ([]byte, error)
- func Logging(params ...string) ([]byte, error)
- func Ping() ([]byte, error)
- func PostReq(payload RPCReq) ([]byte, error)
- func PreciousBlock(blockhash string) ([]byte, error)
- func PruneBlockchain(height string) ([]byte, error)
- func RemovePrunedFunds(txid string) ([]byte, error)
- func RescanBlockchain(startHeight string, stopHeight string) ([]byte, error)
- func SaveMempool() ([]byte, error)
- func ScanTxOutset() ([]byte, error)
- func SendRawTransaction(hexString string, allowHighFees bool) ([]byte, error)
- func SendToAddress(address string, amount string, comment string, commentTo string, ...) ([]byte, error)
- func SetBan(subnet string, command string, bantime string, absolute bool) ([]byte, error)
- func SetBitcoindURL(url, rpcuser, rpcpass string)
- func SetHdSeed(newkeypool bool, seed string) ([]byte, error)
- func SetLabel(address string, label string) ([]byte, error)
- func SetNetworkActive(state bool) ([]byte, error)
- func SetTxFee(amount string) ([]byte, error)
- func SignMessage(address string, message string) ([]byte, error)
- func SignMessageWithPrivkey(privkey string, message string) ([]byte, error)
- func SignRawTransactionWithWallet(hexString string) ([]byte, error)
- func Stop() ([]byte, error)
- func SubmitBlock(hexdata string) ([]byte, error)
- func SubmitHeader(hexdata string) ([]byte, error)
- func UnloadWallet(walletName string) ([]byte, error)
- func Uptime() ([]byte, error)
- func UtxoUpdatePSBT(psbt string) ([]byte, error)
- func ValidateAddress(address string) ([]byte, error)
- func VerifyChain(nBlocks string, checkLevel string) ([]byte, error)
- func VerifyMessage(address string, signature string, message string) ([]byte, error)
- func VerifyTxOutProof(txproof string) ([]byte, error)
- func WalletCreateFundedPSBT(inputs []interface{}, outputs map[string]int, locktime int, ...) ([]byte, error)
- func WalletLock() ([]byte, error)
- func WalletPassphrase(passphrase string, timeout string) ([]byte, error)
- func WalletPassphraseChange(old string, new string) ([]byte, error)
- func WalletProcessPSBT(psbt string, sign bool, sighashType string, bip32derivs bool) ([]byte, error)
- type RPCReq
- type SignMessageWithPrivkeyReturn
Constants ¶
This section is empty.
Variables ¶
View Source
var BitcoindURL = "http://localhost:18443/" // for regtest
View Source
var ID = "curltext"
View Source
var JsonRPC = "1.0"
View Source
var RPCPass = "password"
View Source
var RPCUser = "user"
Functions ¶
func AbandonTransaction ¶
func AbortRescan ¶
func AnalyzePSBT ¶
func BackupWallet ¶
func ClearBanned ¶
func CombinePSBT ¶
func CombineRawTransaction ¶
func ConvertToPsbt ¶
func CreateWallet ¶
func DecodePsbt ¶
func DecodeRawTransaction ¶
func DecodeScript ¶
func DeriveAddresses ¶
func DisconnectNode ¶
func DumpPrivKey ¶
func EncryptWallet ¶
func EstimateSmartFee ¶
func FundRawTransaction ¶
func GetAddedNodeInfo ¶
func GetAddressesByLabel ¶
func GetAddressesInfo ¶
func GetBestBlockHash ¶
func GetBlockCount ¶
func GetBlockHash ¶
func GetBlockHeader ¶
func GetBlockStats ¶
func GetChainTips ¶
func GetChainTxStats ¶
func GetConnectionCount ¶
func GetDescriptorInfo ¶
func GetDifficulty ¶
func GetMemoryInfo ¶
func GetMempoolAncestors ¶
func GetMempoolEntry ¶
func GetMempoolInfo ¶
func GetNetTotals ¶
func GetNetworkInfo ¶
func GetNodeAddresses ¶
func GetPeerInfo ¶
func GetRPCInfo ¶
func GetRawChangeAddress ¶
func GetRawMempool ¶
func GetRawTransaction ¶
func GetReceivedByLabel ¶
func GetTxOutSetInfo ¶
func GetUnconfirmedBalance ¶
func GetWalletInfo ¶
func GetZmqNotifications ¶
func ImportAddress ¶
func ImportWallet ¶
func KeypoolRefill ¶
func ListAddressGroupings ¶
func ListBanned ¶
func ListLabels ¶
func ListLockUnspent ¶
func ListReceivedByAddress ¶
func ListReceivedByLabel ¶
func ListSinceBlock ¶
func ListTransactions ¶
func ListUnspent ¶
func ListWalletDir ¶
func ListWallets ¶
func PreciousBlock ¶
func PruneBlockchain ¶
func RemovePrunedFunds ¶
func RescanBlockchain ¶
func SaveMempool ¶
func SendRawTransaction ¶
func SendToAddress ¶
func SetBitcoindURL ¶
func SetBitcoindURL(url, rpcuser, rpcpass string)
func SetNetworkActive ¶
func SignMessageWithPrivkey ¶
func SubmitBlock ¶
func SubmitHeader ¶
func UnloadWallet ¶
func UtxoUpdatePSBT ¶
func ValidateAddress ¶
func VerifyMessage ¶
func VerifyTxOutProof ¶
TODO: implement this route
func WalletCreateFundedPSBT ¶
func WalletLock ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.