Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
getBalance :: MonadUnliftIO m => ElectrsEnv -> BitcoindEnv -> Either (OnChainAddress a) ScriptHash -> m (Either RpcError Balance) Source #
version :: MonadUnliftIO m => ElectrsEnv -> () -> m (Either RpcError [Text]) Source #
blockHeader :: MonadUnliftIO m => ElectrsEnv -> BlkHeight -> m (Either RpcError BlockHeader) Source #
Balance | |
|
newtype ScriptHash Source #
Instances
ToJSON ScriptHash Source # | |
Defined in ElectrsClient.Rpc toJSON :: ScriptHash -> Value # toEncoding :: ScriptHash -> Encoding # toJSONList :: [ScriptHash] -> Value # toEncodingList :: [ScriptHash] -> Encoding # | |
Generic ScriptHash Source # | |
Defined in ElectrsClient.Rpc type Rep ScriptHash :: Type -> Type # from :: ScriptHash -> Rep ScriptHash x # to :: Rep ScriptHash x -> ScriptHash # | |
type Rep ScriptHash Source # | |
Defined in ElectrsClient.Rpc type Rep ScriptHash = D1 ('MetaData "ScriptHash" "ElectrsClient.Rpc" "electrs-client-0.1.0.0-inplace" 'True) (C1 ('MetaCons "ScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype BlockHeader Source #
Instances
Out BlockHeader Source # | |
Defined in ElectrsClient.Rpc | |
FromJSON BlockHeader Source # | |
Defined in ElectrsClient.Rpc parseJSON :: Value -> Parser BlockHeader # parseJSONList :: Value -> Parser [BlockHeader] # | |
Generic BlockHeader Source # | |
Defined in ElectrsClient.Rpc type Rep BlockHeader :: Type -> Type # from :: BlockHeader -> Rep BlockHeader x # to :: Rep BlockHeader x -> BlockHeader # | |
Eq BlockHeader Source # | |
Defined in ElectrsClient.Rpc (==) :: BlockHeader -> BlockHeader -> Bool # (/=) :: BlockHeader -> BlockHeader -> Bool # | |
type Rep BlockHeader Source # | |
Defined in ElectrsClient.Rpc type Rep BlockHeader = D1 ('MetaData "BlockHeader" "ElectrsClient.Rpc" "electrs-client-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BlockHeader" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |