Tries to create a new account in this wallet for the default account type.
Tries to create a new account in this wallet for the default account type. Fails if the most recent account has no transaction history, as per BIP44
Tries to create a new account in this wallet.
Tries to create a new account in this wallet. Fails if the most recent account has no transaction history, as per BIP44
Mimics the getaddressinfo
RPC call in Bitcoin Core
Mimics the getaddressinfo
RPC call in Bitcoin Core
If the address is found in our database Some(address)
is returned, otherwise None
Retrieves a bloom filter that that can be sent to a P2P network node to get information about our transactions, pubkeys and scripts.
Retrieves a bloom filter that that can be sent to a P2P network node to get information about our transactions, pubkeys and scripts.
Gets the sum of all confirmed UTXOs in this wallet
Gets the sum of all confirmed UTXOs in this wallet
Fetches the default account from the DB
Fetches the default account from the DB
Future[AccountDb]
Fetches the default account for the given address/account kind
Fetches the default account for the given address/account kind
Gets a new external address with the specified type.
Gets a new external address with the specified type. Calling this method multiple times will return the same address, until it has received funds. TODO: Last sentence is not true, implement that https://github.com/bitcoin-s/bitcoin-s/issues/628
Generates a new change address
Generates a new change address
Gets the sum of all unconfirmed UTXOs in this wallet
Gets the sum of all unconfirmed UTXOs in this wallet
Lists unspent transaction outputs in the wallet
Lists unspent transaction outputs in the wallet
Vector[SpendingInfoDb]
Locks the wallet.
Locks the wallet. After this operation is called, all sensitive material in the wallet should be encrypted and unaccessible
Processes the given transaction, updating our DB state if it's relevant to us.
Processes the given transaction, updating our DB state if it's relevant to us.
The transaction we're processing
How many confirmations the TX has
Sends money from the specified account
Sends money from the specified account
todo: add error handling to signature
Unlocks the wallet with the provided passphrase, making it possible to send transactions.
Unlocks the wallet with the provided passphrase, making it possible to send transactions.
Gets the sum of all UTXOs in this wallet
Gets the sum of all UTXOs in this wallet
Gets a new external address from the default account.
Gets a new external address from the default account. Calling this method multiple times will return the same address, until it has received funds.
Generates a new change address for the default account
Generates a new change address for the default account
Lists all wallet accounts with the given type
Lists all wallet accounts with the given type
Future[Vector[AccountDb
The wallet seed
Sends money from the default account
Sends money from the default account
todo: add error handling to signature