Versions in this module Expand all Collapse all v1 v1.0.0 Jun 6, 2020 Changes in this version + const ESTIMATE_MODE_CONSERVATIVE + const ESTIMATE_MODE_ECONOMICAL + const ESTIMATE_MODE_UNSET + const RPCCLIENT_TIMEOUT + const VERSION + type Bitcoind struct + func New(host string, port int, user, passwd string, useSSL bool, timeoutParam ...int) (*Bitcoind, error) + func (b *Bitcoind) BackupWallet(destination string) error + func (b *Bitcoind) DumpPrivKey(address string) (privKey string, err error) + func (b *Bitcoind) EncryptWallet(passphrase string) error + func (b *Bitcoind) EstimateSmartFee(minconf int) (ret EstimateSmartFeeResult, err error) + func (b *Bitcoind) EstimateSmartFeeWithMode(minconf int, mode string) (ret EstimateSmartFeeResult, err error) + func (b *Bitcoind) GetAccount(address string) (account string, err error) + func (b *Bitcoind) GetAccountAddress(account string) (address string, err error) + func (b *Bitcoind) GetAddressesByAccount(account string) (addresses []string, err error) + func (b *Bitcoind) GetBalance(account string, minconf uint64) (balance float64, err error) + func (b *Bitcoind) GetBestBlockhash() (bestBlockHash string, err error) + func (b *Bitcoind) GetBlock(blockHash string) (block Block, err error) + func (b *Bitcoind) GetBlockCount() (count uint64, err error) + func (b *Bitcoind) GetBlockHash(index uint64) (hash string, err error) + func (b *Bitcoind) GetBlockTemplate(capabilities []string, mode string) (template string, err error) + func (b *Bitcoind) GetBlockheader(blockHash string) (*BlockHeader, error) + func (b *Bitcoind) GetChainTips() (tips []ChainTip, err error) + func (b *Bitcoind) GetConnectionCount() (count uint64, err error) + func (b *Bitcoind) GetDifficulty() (difficulty float64, err error) + func (b *Bitcoind) GetGenerate() (generate bool, err error) + func (b *Bitcoind) GetHashesPerSec() (hashpersec float64, err error) + func (b *Bitcoind) GetInfo() (i Info, err error) + func (b *Bitcoind) GetMiningInfo() (miningInfo MiningInfo, err error) + func (b *Bitcoind) GetNewAddress(account ...string) (addr string, err error) + func (b *Bitcoind) GetPeerInfo() (peerInfo []Peer, err error) + func (b *Bitcoind) GetRawBlock(blockHash string) (str string, err error) + func (b *Bitcoind) GetRawChangeAddress(account ...string) (rawAddress string, err error) + func (b *Bitcoind) GetRawMempool() (txId []string, err error) + func (b *Bitcoind) GetRawMempoolVerbose() (txs map[string]VerboseTx, err error) + func (b *Bitcoind) GetRawTransaction(txId string, verbose bool) (rawTx interface{}, err error) + func (b *Bitcoind) GetReceivedByAccount(account string, minconf uint32) (amount float64, err error) + func (b *Bitcoind) GetReceivedByAddress(address string, minconf uint32) (amount float64, err error) + func (b *Bitcoind) GetTransaction(txid string) (transaction Transaction, err error) + func (b *Bitcoind) GetTxOut(txid string, n uint32, includeMempool bool) (transactionOut UTransactionOut, err error) + func (b *Bitcoind) GetTxOutsetInfo() (txOutSet TransactionOutSet, err error) + func (b *Bitcoind) GetWalletInfo() (i WalletInfo, err error) + func (b *Bitcoind) GetWork(data ...string) (response interface{}, err error) + func (b *Bitcoind) ImportPrivKey(privKey, label string, rescan bool) error + func (b *Bitcoind) KeyPoolRefill() error + func (b *Bitcoind) ListAccounts(minconf int32) (accounts map[string]float64, err error) + func (b *Bitcoind) ListAddressGroupings() (list []ListAddressResult, err error) + func (b *Bitcoind) ListLockUnspent() (unspendableOutputs []UnspendableOutput, err error) + func (b *Bitcoind) ListReceivedByAccount(minConf uint32, includeEmpty bool) (list []ReceivedByAccount, err error) + func (b *Bitcoind) ListReceivedByAddress(minConf uint32, includeEmpty bool) (list []ReceivedByAddress, err error) + func (b *Bitcoind) ListSinceBlock(blockHash string, targetConfirmations uint32) (transaction []Transaction, err error) + func (b *Bitcoind) ListTransactions(account string, count, from uint32) (transaction []Transaction, err error) + func (b *Bitcoind) ListUnspent(minconf, maxconf uint32) (transactions []Transaction, err error) + func (b *Bitcoind) LockUnspent(lock bool, outputs []UnspendableOutput) (success bool, err error) + func (b *Bitcoind) Move(formAccount, toAccount string, amount float64, minconf uint32, comment string) (success bool, err error) + func (b *Bitcoind) SendFrom(fromAccount, toAddress string, amount float64, minconf uint32, ...) (txID string, err error) + func (b *Bitcoind) SendMany(fromAccount string, amounts map[string]float64, minconf uint32, comment string) (txID string, err error) + func (b *Bitcoind) SendManyReplaceable(fromAccount string, amounts map[string]float64, minconf uint32, comment string, ...) (txID string, err error) + func (b *Bitcoind) SendManySubtractFeeFrom(fromAccount string, amounts map[string]float64, minconf uint32, comment string, ...) (txID string, err error) + func (b *Bitcoind) SendToAddress(toAddress string, amount float64, comment, commentTo string) (txID string, err error) + func (b *Bitcoind) SetAccount(address, account string) error + func (b *Bitcoind) SetGenerate(generate bool, genProcLimit int32) error + func (b *Bitcoind) SetTxFee(amount float64) error + func (b *Bitcoind) SignMessage(address, message string) (sig string, err error) + func (b *Bitcoind) Stop() error + func (b *Bitcoind) ValidateAddress(address string) (va ValidateAddressResponse, err error) + func (b *Bitcoind) VerifyMessage(address, sign, message string) (success bool, err error) + func (b *Bitcoind) WalletLock() error + func (b *Bitcoind) WalletPassphrase(passPhrase string, timeout uint64) error + func (b *Bitcoind) WalletPassphraseChange(oldPassphrase, newPassprhase string) error + type Block struct + Bits string + Chainwork string + Confirmations uint64 + Difficulty float64 + Hash string + Height uint64 + Merkleroot string + Nextblockhash string + Nonce uint64 + Previousblockhash string + Size uint64 + Time int64 + Tx []string + Version uint32 + type BlockHeader struct + Bits uint32 + Chainwork string + Confirmations int + Difficulty float64 + Hash string + Height int + Mediantime int64 + Merkleroot string + Nextblockhash string + Nonce uint32 + Previousblockhash string + Time int64 + Txes int + Version uint32 + VersionHex string + type ChainTip struct + BranchLen int + Hash string + Height int + Status string + type EstimateSmartFeeResult struct + Blocks int + Errors []string + FeeRate float64 + type Info struct + Balance float64 + Blocks uint32 + Connections uint32 + Difficulty float64 + Errors string + KeypoolSize uint32 + Keypoololdest uint64 + Paytxfee float64 + Protocolversion uint32 + Proxy string + Relayfee float64 + Testnet bool + Timeoffset int32 + UnlockedUntil int64 + Version uint32 + Walletversion uint32 + type ListAddressResult struct + Account string + Address string + Amount float64 + type MiningInfo struct + Blocks uint64 + CurrentBlockTx uint64 + CurrentBlocksize uint64 + Difficulty float64 + Errors string + GenProcLimit int32 + Generate bool + HashesPersec uint64 + NetworkHashps uint64 + PooledtTx uint64 + Testnet bool + type Peer struct + Addr string + Addrlocal string + Banscore int32 + Bytesrecv uint64 + Bytessent uint64 + Conntime uint64 + Inbound bool + Lastrecv uint64 + Lastsend uint64 + Pingtime float64 + Pingwait float64 + Services string + Startingheight int32 + Subver string + Syncnode bool + Version uint32 + type RPCError struct + Code RPCErrorCode + Message string + func (e RPCError) Error() string + type RPCErrorCode int + type RawTransaction struct + BlockHash string + Blocktime int64 + Confirmations uint64 + Hex string + LockTime uint32 + Time int64 + Txid string + Version uint32 + Vin []Vin + Vout []Vout + type ReceivedByAccount struct + Account string + Amount float64 + Confirmations uint32 + type ReceivedByAddress struct + Account string + Address string + Amount float64 + Confirmations uint32 + TxIds []string + type ScriptPubKey struct + Addresses []string + Asm string + Hex string + ReqSigs int + Type string + type ScriptSig struct + Asm string + Hex string + type Transaction struct + Account string + Address string + Amount float64 + BlockHash string + BlockIndex int64 + BlockTime int64 + Category string + Confirmations int64 + Details []TransactionDetails + Fee float64 + Hex string + Time int64 + TimeReceived int64 + TxID string + WalletConflicts []string + type TransactionDetails struct + Account string + Address string + Amount float64 + Category string + Fee float64 + type TransactionOutSet struct + Bestblock string + BytesSerialized float64 + HashSerialized string + Height uint32 + TotalAmount float64 + Transactions float64 + TxOuts float64 + type UTransactionOut struct + Bestblock string + Coinbase bool + Confirmations uint32 + ScriptPubKey ScriptPubKey + Value float64 + Version uint32 + type UnspendableOutput struct + TxId string + Vout uint64 + type ValidateAddressResponse struct + Account string + Address string + IsCompressed bool + IsMine bool + IsScript bool + IsValid bool + PubKey string + type VerboseTx struct + AncestorCount uint32 + AncestorFees uint32 + AncestorSize uint32 + Depends []string + DescendantCount uint32 + DescendantFees float64 + DescendantSize uint32 + Fee float64 + Height uint32 + ModifiedFee float64 + Size uint32 + SpentBy []string + Time uint32 + WTxId string + type Vin struct + Coinbase string + ScriptSig ScriptSig + Sequence uint32 + Txid string + Vout int + type Vout struct + N int + ScriptPubKey ScriptPubKey + Value float64 + type WalletInfo struct + Balance float64 + HdMasterKeyID *string + ImmatureBalance float64 + KeyPoolOldest int64 + KeyPoolSize int64 + KeyPoolSizeHdInternal int64 + PaytxFee float64 + TxCount int64 + UnconfirmedBalance float64 + UnlockedUntil *int64 + WalletName string + WalletVersion float64 + type Work struct + Data string + Hash1 string + Midstate string + Target string