Versions in this module Expand all Collapse all v1 v1.0.0 Jan 11, 2019 Changes in this version + type AddMultisigAddressResult struct + Address string + RedeemScript string + type AddrsPrevTxs struct + Addrs []string + PrevTxs []PrevTx + SenderAccount enum.AccountType + type Bitcoin struct + func NewBitcoin(client *rpcclient.Client, conf *toml.BitcoinConf) (*Bitcoin, error) + func (b *Bitcoin) AddMultisigAddress(requiredSigs int, addresses []string, accountName string, ...) (*AddMultisigAddressResult, error) + func (b *Bitcoin) AmountString(amt btcutil.Amount) string + func (b *Bitcoin) BackupWallet(fileName string) error + func (b *Bitcoin) CastStrBitToAmount(s string) (btcutil.Amount, error) + func (b *Bitcoin) CastStrSatoshiToAmount(s string) (btcutil.Amount, error) + func (b *Bitcoin) Client() *rpcclient.Client + func (b *Bitcoin) Close() + func (b *Bitcoin) CoinType() enum.CoinType + func (b *Bitcoin) ConfirmationBlock() int + func (b *Bitcoin) CreateNewAddress(accountName string) (btcutil.Address, error) + func (b *Bitcoin) CreateRawTransaction(sendAddr string, amount btcutil.Amount, inputs []btcjson.TransactionInput) (*wire.MsgTx, error) + func (b *Bitcoin) CreateRawTransactionWithOutput(inputs []btcjson.TransactionInput, outputs map[btcutil.Address]btcutil.Amount) (*wire.MsgTx, error) + func (b *Bitcoin) CreateWallet(fileName string, disablePrivKey bool) error + func (b *Bitcoin) DecodeAddress(addr string) (btcutil.Address, error) + func (b *Bitcoin) DecodeRawTransaction(hexTx string) (*btcjson.TxRawResult, error) + func (b *Bitcoin) DumpWallet(fileName string) error + func (b *Bitcoin) EncryptWallet(passphrase string) error + func (b *Bitcoin) EstimateSmartFee() (float64, error) + func (b *Bitcoin) FeeRangeMax() float64 + func (b *Bitcoin) FeeRangeMin() float64 + func (b *Bitcoin) FloatBitToAmount(f float64) (btcutil.Amount, error) + func (b *Bitcoin) FundRawTransaction(hex string) (*FundRawTransactionResult, error) + func (b *Bitcoin) GetAccount(addr string) (string, error) + func (b *Bitcoin) GetAccountAddress(accountName string) (btcutil.Address, error) + func (b *Bitcoin) GetAddressInfo(addr string) (*GetAddressInfoResult, error) + func (b *Bitcoin) GetAddressesByAccount(accountName string) ([]btcutil.Address, error) + func (b *Bitcoin) GetAddressesByLabel(labelName string) ([]btcutil.Address, error) + func (b *Bitcoin) GetBalanceByAccount(accountName string) (btcutil.Amount, error) + func (b *Bitcoin) GetBlockCount() (int64, error) + func (b *Bitcoin) GetChainConf() *chaincfg.Params + func (b *Bitcoin) GetFee(tx *wire.MsgTx, adjustmentFee float64) (btcutil.Amount, error) + func (b *Bitcoin) GetNetworkInfo() (*GetNetworkInfoResult, error) + func (b *Bitcoin) GetRawTransactionByHex(strHashTx string) (*btcutil.Tx, error) + func (b *Bitcoin) GetReceivedByAccountAndMinConf(accountName string, minConf int) (btcutil.Amount, error) + func (b *Bitcoin) GetReceivedByLabelAndMinConf(accountName string, minConf int) (btcutil.Amount, error) + func (b *Bitcoin) GetTransactionByTxID(txID string) (*btcjson.GetTransactionResult, error) + func (b *Bitcoin) GetTransactionFee(tx *wire.MsgTx) (btcutil.Amount, error) + func (b *Bitcoin) GetTxOutByTxID(txID string, index uint32) (*btcjson.GetTxOutResult, error) + func (b *Bitcoin) ImportAddress(pubkey string) error + func (b *Bitcoin) ImportAddressWithLabel(address, label string, rescan bool) error + func (b *Bitcoin) ImportAddressWithoutReScan(pubkey string) error + func (b *Bitcoin) ImportPrivKey(privKeyWIF *btcutil.WIF) error + func (b *Bitcoin) ImportPrivKeyLabel(privKeyWIF *btcutil.WIF, label string) error + func (b *Bitcoin) ImportPrivKeyWithoutReScan(privKeyWIF *btcutil.WIF, label string) error + func (b *Bitcoin) ImportWallet(fileName string) error + func (b *Bitcoin) ListAccounts() (map[string]btcutil.Amount, error) + func (b *Bitcoin) ListUnspent() ([]ListUnspentResult, error) + func (b *Bitcoin) ListUnspentByAccount(accountType enum.AccountType) ([]ListUnspentResult, []btcutil.Address, error) + func (b *Bitcoin) LoadWallet(fileName string) error + func (b *Bitcoin) LockUnspent(tx btcjson.ListUnspentResult) error + func (b *Bitcoin) Logging() (*LoggingResult, error) + func (b *Bitcoin) SendTransactionByByte(rawTx []byte) (*chainhash.Hash, error) + func (b *Bitcoin) SendTransactionByHex(hex string) (*chainhash.Hash, error) + func (b *Bitcoin) SetAccount(addr, account string) error + func (b *Bitcoin) SetChainConf(conf *chaincfg.Params) + func (b *Bitcoin) SetChainConfNet(btcNet wire.BitcoinNet) + func (b *Bitcoin) SetCoinType(coinType enum.CoinType) + func (b *Bitcoin) SetLabel(addr, label string) error + func (b *Bitcoin) SetVersion(ver enum.BTCVersion) + func (b *Bitcoin) Sign(tx *wire.MsgTx, strPrivateKey string) (string, error) + func (b *Bitcoin) SignRawTransaction(tx *wire.MsgTx, prevtxs []PrevTx) (*wire.MsgTx, bool, error) + func (b *Bitcoin) SignRawTransactionWithKey(tx *wire.MsgTx, privKeysWIF []string, prevtxs []PrevTx) (*wire.MsgTx, bool, error) + func (b *Bitcoin) ToHex(tx *wire.MsgTx) (string, error) + func (b *Bitcoin) ToMsgTx(txHex string) (*wire.MsgTx, error) + func (b *Bitcoin) UnLoadWallet(fileName string) error + func (b *Bitcoin) UnlockAllUnspentTransaction() error + func (b *Bitcoin) ValidateAddress(addr string) (*btcjson.ValidateAddressWalletResult, error) + func (b *Bitcoin) Version() enum.BTCVersion + func (b *Bitcoin) WalletLock() error + func (b *Bitcoin) WalletPassphrase(passphrase string, timeoutSecs int64) error + func (b *Bitcoin) WalletPassphraseChange(old, new string) error + type EstimateSmartFeeResult struct + Blocks int64 + Errors []string + FeeRate float64 + type FeeAdjustmentRate struct + type FundRawTransactionResult struct + Changepos int64 + Fee int64 + Hex string + type GetAddressInfoResult struct + Address string + Embedded struct{ ... } + Hex string + Ismine bool + Isscript bool + Iswatchonly bool + Iswitness bool + Label string + Labels []Label + Pubkey string + Script string + ScriptPubKey string + Timestamp int64 + type GetNetworkInfoResult struct + Connections int + Incrementalfee float64 + Localaddresses []string + Localrelay bool + Localservices string + Networkactive bool + Networks []Network + Protocolversion int + Relayfee float64 + Subversion string + Timeoffset int + Version enum.BTCVersion + Warnings string + type Label struct + Name string + Purpose string + type ListUnspentResult struct + Address string + Amount float64 + Confirmations int64 + Label string + RedeemScript string + Safe bool + ScriptPubKey string + Solvable bool + Spendable bool + TxID string + Vout uint32 + type LoadWalletResult struct + WalletName string + Warning string + type LoggingResult struct + Addrman int64 + Bench int64 + CmpctBlock int64 + CoinDB int64 + DB int64 + EstimateFee int64 + HTTP int64 + LevelDB int64 + LibEvent int64 + Mempool int64 + MempoolRej int64 + Net int64 + Proxy int64 + Prune int64 + Qt int64 + RPC int64 + Rand int64 + ReIndex int64 + SelectCoins int64 + Tor int64 + Zmq int64 + type Network struct + Limited bool + Name string + Proxy string + ProxyRandomizeCredentials bool + Reachable bool + type PrevTx struct + Amount float64 + RedeemScript string + ScriptPubKey string + Txid string + Vout uint32 + type Purpose struct + Purpose string + type SignRawTransactionError struct + Error string + ScriptSig string + Sequence int64 + Txid string + Vout int64 + type SignRawTransactionResult struct + Complete bool + Errors []SignRawTransactionError + Hex string + type WalletResult struct + FileName string