bitcoin-api-0.12.1: Provides access to the RPC API of Bitcoin Core

Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.Api.Wallet

Synopsis

Documentation

listUnspent :: Client -> IO [UnspentTransaction] Source

Lists unspent transaction with default parameters

listUnspentWith Source

Arguments

:: 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

listAccountsWith Source

Arguments

:: 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

getAccountBalance Source

Arguments

:: 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.

newAddress Source

Arguments

:: Client

Our client context

-> IO Address

The address created

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.

newAddressWith Source

Arguments

:: 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.

newChangeAddress Source

Arguments

:: Client

Our client context

-> IO Address

The address created

Provides access to a new change address, which will not appear in the UI. This is to be used with raw transactions only.

getAddressAccount :: Client -> Address -> IO Account Source

Provides access to the Account an Address belongs to.