Safe Haskell | None |
---|---|
Language | Haskell2010 |
- listUnspent :: Client -> IO [UnspentTransaction]
- listUnspentWith :: Client -> Integer -> Integer -> IO [UnspentTransaction]
- listAccounts :: Client -> IO [(Account, Btc)]
- listAccountsWith :: Client -> Integer -> Bool -> IO [(Account, Btc)]
- getAccountBalance :: Client -> Account -> IO Btc
- newAddress :: Client -> IO Address
- newAddressWith :: Client -> Account -> IO Address
- newChangeAddress :: Client -> IO Address
- getAddressAccount :: Client -> Address -> IO Account
Documentation
listUnspent :: Client -> IO [UnspentTransaction] Source
Lists unspent transaction with default parameters
:: Client | Our client context |
-> Integer | Minimum amount of confirmations needed. Defaults to 1. |
-> Integer | Maximum amount of confirmations. Defaults to 9999999. |
-> IO [UnspentTransaction] |
Lists unspent transactions with configurable parameters
listAccounts :: Client -> IO [(Account, Btc)] Source
Lists all accounts currently known by the wallet with default parameters
:: Client | Our client context |
-> Integer | Minimum amount of confirmations a transaction needs |
-> Bool | Whether or not to include watch-only addresses |
-> IO [(Account, Btc)] |
Lists all accounts currently known by the wallet with configurable parameters
:: Client | Our client context |
-> Account | The account we're looking for |
-> IO Btc | Amount of Btc in wallet |
Returns the amount of Btc currently held in the wallet by a specified account.
Provides access to a new receiving address filed under the default account. Intended to be published to another party that wishes to send you money.
:: Client | Our client context |
-> Account | The account to create the address under |
-> IO Address | The address created |
Provides access to a new receiving address filed under a specific account. Intended to be published to another party that wishes to send you money.
Provides access to a new change address, which will not appear in the UI. This is to be used with raw transactions only.