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

Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.Api.Client

Synopsis

Documentation

data Client Source

Client session data

Constructors

Client 

Fields

clientUrl :: String

The JSON RPC url

clientOpts :: Options

Default HTTP options to use with wreq requests

clientSession :: Session

Connection reuse of our HTTP session

Instances

withClient :: String -> Int -> Text -> Text -> (Client -> IO a) -> IO a Source

Initializes a client and prepares it for making requests against the Bitcoin RPC API. Connection reuse is provided, and cleanup of any acquired resources is handled automatically.