Safe Haskell | None |
---|---|
Language | Haskell98 |
wrappers around the RPC calls
Documentation
type Call a = ReaderT BitcoinURI IO (Either String a) Source #
Type of an RPC call (without arguments)
runCalls :: BitcoinURI -> ReaderT BitcoinURI IO a -> IO a Source #
Executes the "call monad"
newRequestId :: IO String Source #
Creates a unique request id, using a combination of a counter and a random number.
class ParamList l where Source #
Things which can be converted to an RPC call parameter list.
paramListJSON :: l -> [JSValue] Source #
ParamList () Source # | |
JSON a => ParamList [a] Source # | |
(JSON a, JSON b) => ParamList (a, b) Source # | |
(JSON a, JSON b, JSON c) => ParamList (a, b, c) Source # | |
(JSON a, JSON b, JSON c, JSON d) => ParamList (a, b, c, d) Source # | |
(JSON a, JSON b, JSON c, JSON d, JSON e) => ParamList (a, b, c, d, e) Source # | |
(JSON a, JSON b, JSON c, JSON d, JSON e, JSON f) => ParamList (a, b, c, d, e, f) Source # | |