| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Namecoin
Description
Namecoin utility library
- type Error = Either String
 - comment :: Parser ()
 - setting :: Parser (Text, Text)
 - line :: Parser (Text, Text)
 - config :: Parser [(Text, Text)]
 - uri :: Text -> Error String
 - data RPCRequest = RPCRequest {}
 - data RPCResponse = RPCResponse {}
 - data RPCError = RPCError {}
 - data Name = Name {}
 - decodeValue :: FromJSON a => Value -> Error a
 - rpcRequest :: String -> String -> [String] -> IO (Error Value)
 - nameList :: String -> IO (Error [Name])
 - nameUpdate :: String -> Name -> IO Int
 
Documentation
Namecoin config parser
uri :: Text -> Error String Source #
Takes the content of a namecoin config file and gives the URI to connect to the JSON-RPC server
JSON-RPC client
Namecoin API error record
Constructors
| RPCError | |
Namecoin API Value record
Constructors
| Name | |
Arguments
| :: String | the URI of the JSON-RPC endpoint  | 
| -> String | the method name  | 
| -> [String] | the method parameters  | 
| -> IO (Error Value) | and error or the wanted result  | 
Execute an RPC method