public class BitcoinWallet extends BitcoinClientSupport implements Wallet
Wallet.AddressclientALL_FUNDS, LABEL_CHANGE, LABEL_DEFAULT| Modifier | Constructor and Description |
|---|---|
protected |
BitcoinWallet(BitcoinBlockchain blockchain,
wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client) |
getRpcClientprotected BitcoinWallet(BitcoinBlockchain blockchain, wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client)
public Wallet.Address addPrivateKey(String privKey, List<String> labels)
addPrivateKey in interface Walletpublic Wallet.Address addAddress(String address, List<String> labels)
addAddress in interface Walletpublic final Wallet.Address newAddress(List<String> labels)
newAddress in interface Walletprotected BitcoinAddress createNewAddress(List<String> labels)
public Wallet.Address getAddress(String label)
getAddress in interface Walletpublic Wallet.Address findAddress(String rawAddr)
findAddress in interface Walletpublic List<Wallet.Address> getAddresses()
getAddresses in interface Walletpublic List<Wallet.Address> getAddresses(String label)
getAddresses in interface Walletpublic Wallet.Address getChangeAddress(String label)
getChangeAddress in interface Walletpublic List<Wallet.Address> getChangeAddresses(String label)
getChangeAddresses in interface Walletpublic BigDecimal getBalance(String label)
getBalance in interface Walletpublic BigDecimal getBalance(Wallet.Address addr)
getBalance in interface Walletpublic String sendToAddress(String toAddress, BigDecimal amount)
sendToAddress in interface Walletpublic String sendFromLabel(String label, String toAddress, BigDecimal amount)
sendFromLabel in interface Walletpublic List<UTXO> listUnspent(String label)
listUnspent in interface Walletpublic List<UTXO> listUnspent(List<Wallet.Address> addrs)
listUnspent in interface Walletpublic List<UTXO> selectUnspent(String label, BigDecimal amount)
selectUnspent in interface Walletpublic List<UTXO> selectUnspent(List<Wallet.Address> addrs, BigDecimal amount)
selectUnspent in interface Walletpublic Tx getTransaction(String txId)
getTransaction in interface Walletprotected boolean isP2PKH(String addr)
Copyright © 2018. All rights reserved.