Version: v0.0.0-...-d238806 Latest Latest

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

Go to latest
Published: Nov 2, 2019 License: GPL-2.0, GPL-3.0 Imports: 6 Imported by: 4




This section is empty.


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"


func AbandonTransaction

func AbandonTransaction(txid string) ([]byte, error)

func AbortRescan

func AbortRescan() ([]byte, error)

func AddMultisigAddress

func AddMultisigAddress(n string, keys ...string) ([]byte, error)

func AddNode

func AddNode(node string) ([]byte, error)

func AnalyzePSBT

func AnalyzePSBT(psbt string) ([]byte, error)

func BackupWallet

func BackupWallet(destination string) ([]byte, error)

func BumpFee

func BumpFee(txid string) ([]byte, error)

TODO: add json options here

func ClearBanned

func ClearBanned() ([]byte, error)

func CombinePSBT

func CombinePSBT(psbts ...string) ([]byte, error)

func CombineRawTransaction

func CombineRawTransaction(psbts ...string) ([]byte, error)

func ConvertToPsbt

func ConvertToPsbt(psbt string) ([]byte, error)

func CreateMultisig

func CreateMultisig(n int, pubkeys ...string) ([]byte, error)

func CreateWallet

func CreateWallet(walletName string, disablePrivkey bool, blank bool) ([]byte, error)

func DecodePsbt

func DecodePsbt(psbt string) ([]byte, error)

func DecodeRawTransaction

func DecodeRawTransaction(rawtx string) ([]byte, error)

func DecodeScript

func DecodeScript(hexString string) ([]byte, error)

func DeriveAddresses

func DeriveAddresses(descriptor string) ([]byte, error)

func DisconnectNode

func DisconnectNode(address string) ([]byte, error)

func DumpPrivKey

func DumpPrivKey(address string) ([]byte, error)

func EncryptWallet

func EncryptWallet(passphrase string) ([]byte, error)

func EstimateSmartFee

func EstimateSmartFee(confTarget string, estimateMode string) ([]byte, error)

func FinalizePSBT

func FinalizePSBT(psbt string, extract bool) ([]byte, error)

func FundRawTransaction

func FundRawTransaction(hexString string, includeWatching bool) ([]byte, error)

func Generate

func Generate(nBlocks string, maxtries string) ([]byte, error)

func GenerateToAddress

func GenerateToAddress(nBlocks string, address string) ([]byte, error)

func GetAddedNodeInfo

func GetAddedNodeInfo() ([]byte, error)

func GetAddressesByLabel

func GetAddressesByLabel(label string) ([]byte, error)

func GetAddressesInfo

func GetAddressesInfo(address string) ([]byte, error)

func GetBalance

func GetBalance(dummy string, minConf string, watchOnly bool) ([]byte, error)

func GetBestBlockHash

func GetBestBlockHash() ([]byte, error)

func GetBlock

func GetBlock(blockhash string) ([]byte, error)

func GetBlockCount

func GetBlockCount() ([]byte, error)

func GetBlockHash

func GetBlockHash(blockNumber uint32) ([]byte, error)

func GetBlockHeader

func GetBlockHeader(blockhash string) ([]byte, error)

func GetBlockStats

func GetBlockStats(hashOrHeight string) ([]byte, error)

func GetChainTips

func GetChainTips() ([]byte, error)

func GetChainTxStats

func GetChainTxStats(nBlocks string) ([]byte, error)

func GetConnectionCount

func GetConnectionCount() ([]byte, error)

func GetDescriptorInfo

func GetDescriptorInfo(descriptor string) ([]byte, error)

func GetDifficulty

func GetDifficulty() ([]byte, error)

func GetMemoryInfo

func GetMemoryInfo() ([]byte, error)

func GetMempoolAncestors

func GetMempoolAncestors(txid string) ([]byte, error)

func GetMempoolEntry

func GetMempoolEntry(txid string) ([]byte, error)

func GetMempoolInfo

func GetMempoolInfo() ([]byte, error)

func GetNetTotals

func GetNetTotals() ([]byte, error)

func GetNetworkInfo

func GetNetworkInfo() ([]byte, error)

func GetNewAddress

func GetNewAddress(label string, addressType string) ([]byte, error)

func GetNodeAddresses

func GetNodeAddresses() ([]byte, error)

func GetPeerInfo

func GetPeerInfo() ([]byte, error)

func GetRPCInfo

func GetRPCInfo() ([]byte, error)

func GetRawChangeAddress

func GetRawChangeAddress() ([]byte, error)

func GetRawMempool

func GetRawMempool() ([]byte, error)

func GetRawTransaction

func GetRawTransaction(txid string, verbose bool, blockhash string) ([]byte, error)

func GetReceivedByLabel

func GetReceivedByLabel(label string) ([]byte, error)

func GetTransaction

func GetTransaction(txid string, watchOnly bool) ([]byte, error)

func GetTxOut

func GetTxOut(txid string, n int) ([]byte, error)

func GetTxOutProof

func GetTxOutProof(txid string) ([]byte, error)

TODO: fix this route

func GetTxOutSetInfo

func GetTxOutSetInfo() ([]byte, error)

func GetUnconfirmedBalance

func GetUnconfirmedBalance() ([]byte, error)

func GetWalletInfo

func GetWalletInfo() ([]byte, error)

func GetZmqNotifications

func GetZmqNotifications() ([]byte, error)

func Help

func Help() ([]byte, error)

func ImportAddress

func ImportAddress(address string, label string, rescan bool, p2sh bool) ([]byte, error)

func ImportPrunedFunds

func ImportPrunedFunds(rawtx string, txoutproof string) ([]byte, error)

func ImportPubkey

func ImportPubkey(pubkey string, label string, rescan bool) ([]byte, error)

func ImportWallet

func ImportWallet(name string) ([]byte, error)

func JoinPSBTs

func JoinPSBTs(psbts ...string) ([]byte, error)

func KeypoolRefill

func KeypoolRefill(newSize string) ([]byte, error)

func ListAddressGroupings

func ListAddressGroupings() ([]byte, error)

func ListBanned

func ListBanned() ([]byte, error)

func ListLabels

func ListLabels(purpose string) ([]byte, error)

func ListLockUnspent

func ListLockUnspent() ([]byte, error)

func ListReceivedByAddress

func ListReceivedByAddress(minConf string, includeEmpty bool, watchOnly bool, addressFilter string) ([]byte, error)

func ListReceivedByLabel

func ListReceivedByLabel(minConf string, includeEmpty bool, watchOnly bool) ([]byte, error)

func ListSinceBlock

func ListSinceBlock(blockhash string, targetConf string, watchOnly bool, includeRemoved bool) ([]byte, error)

func ListTransactions

func ListTransactions(label string, count string, skip string, watchOnly bool) ([]byte, error)

func ListUnspent

func ListUnspent(minConf string, maxConf string, addresses []string) ([]byte, error)

func ListWalletDir

func ListWalletDir() ([]byte, error)

func ListWallets

func ListWallets() ([]byte, error)

func Logging

func Logging(params ...string) ([]byte, error)

func Ping

func Ping() ([]byte, error)

func PostReq

func PostReq(payload RPCReq) ([]byte, error)

func PreciousBlock

func PreciousBlock(blockhash string) ([]byte, error)

func PruneBlockchain

func PruneBlockchain(height string) ([]byte, error)

func RemovePrunedFunds

func RemovePrunedFunds(txid string) ([]byte, error)

func RescanBlockchain

func RescanBlockchain(startHeight string, stopHeight string) ([]byte, error)

func SaveMempool

func SaveMempool() ([]byte, error)

func ScanTxOutset

func ScanTxOutset() ([]byte, error)

TODO: implement this route

func SendRawTransaction

func SendRawTransaction(hexString string, allowHighFees bool) ([]byte, error)

func SendToAddress

func SendToAddress(address string, amount string,
	comment string, commentTo string, subtractFee bool, replaceAble bool, confTarget int,
	estimateMode string) ([]byte, error)

func SetBan

func SetBan(subnet string, command string, bantime string, absolute bool) ([]byte, error)

func SetBitcoindURL

func SetBitcoindURL(url, rpcuser, rpcpass string)

func SetHdSeed

func SetHdSeed(newkeypool bool, seed string) ([]byte, error)

func SetLabel

func SetLabel(address string, label string) ([]byte, error)

func SetNetworkActive

func SetNetworkActive(state bool) ([]byte, error)

func SetTxFee

func SetTxFee(amount string) ([]byte, error)

func SignMessage

func SignMessage(address string, message string) ([]byte, error)

func SignMessageWithPrivkey

func SignMessageWithPrivkey(privkey string, message string) ([]byte, error)

func SignRawTransactionWithWallet

func SignRawTransactionWithWallet(hexString string) ([]byte, error)

func Stop

func Stop() ([]byte, error)

func SubmitBlock

func SubmitBlock(hexdata string) ([]byte, error)

func SubmitHeader

func SubmitHeader(hexdata string) ([]byte, error)

func UnloadWallet

func UnloadWallet(walletName string) ([]byte, error)

func Uptime

func Uptime() ([]byte, error)

func UtxoUpdatePSBT

func UtxoUpdatePSBT(psbt string) ([]byte, error)

func ValidateAddress

func ValidateAddress(address string) ([]byte, error)

func VerifyChain

func VerifyChain(nBlocks string, checkLevel string) ([]byte, error)

func VerifyMessage

func VerifyMessage(address string, signature string, message string) ([]byte, error)

func VerifyTxOutProof

func VerifyTxOutProof(txproof string) ([]byte, error)

TODO: implement this route

func WalletCreateFundedPSBT

func WalletCreateFundedPSBT(inputs []interface{}, outputs map[string]int, locktime int, options map[string]interface{}, bip32Derivs bool, rawpayload string) ([]byte, error)

func WalletLock

func WalletLock() ([]byte, error)

func WalletPassphrase

func WalletPassphrase(passphrase string, timeout string) ([]byte, error)

func WalletPassphraseChange

func WalletPassphraseChange(old string, new string) ([]byte, error)

func WalletProcessPSBT

func WalletProcessPSBT(psbt string, sign bool,
	sighashType string, bip32derivs bool) ([]byte, error)


type RPCReq

type RPCReq struct {
	JsonRPC string      `json:"jsonrpc"`
	ID      string      `json:"id"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params"`

type SignMessageWithPrivkeyReturn

type SignMessageWithPrivkeyReturn struct {
	Result string `json:"result"`
	Error  string `json:"error"`
	Id     string `json:"id"`

Source Files

Jump to

Keyboard shortcuts

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