Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Serial b => ApiResource a b | a -> b where Source #
resourceMethod :: Proxy a -> StdMethod Source #
resourcePath :: Proxy a -> [Text] -> Text Source #
queryParams :: a -> ([ParamBox], [ParamBox]) Source #
captureParams :: Proxy a -> [ProxyBox] Source #
resourceBody :: a -> Maybe PostBox Source #
Instances
Instances
ApiResource GetBlock BlockData Source # | |
Defined in Haskoin.Store.WebCommon |
Instances
ApiResource GetBlocks (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon |
newtype GetBlockRaw Source #
Instances
ApiResource GetBlockRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockRaw -> StdMethod Source # resourcePath :: Proxy GetBlockRaw -> [Text] -> Text Source # queryParams :: GetBlockRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockRaw -> [ProxyBox] Source # resourceBody :: GetBlockRaw -> Maybe PostBox Source # |
newtype GetBlockBest Source #
Instances
ApiResource GetBlockBest BlockData Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockBest -> StdMethod Source # resourcePath :: Proxy GetBlockBest -> [Text] -> Text Source # queryParams :: GetBlockBest -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockBest -> [ProxyBox] Source # resourceBody :: GetBlockBest -> Maybe PostBox Source # |
data GetBlockBestRaw Source #
Instances
ApiResource GetBlockBestRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockBestRaw -> StdMethod Source # resourcePath :: Proxy GetBlockBestRaw -> [Text] -> Text Source # queryParams :: GetBlockBestRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockBestRaw -> [ProxyBox] Source # |
newtype GetBlockLatest Source #
Instances
ApiResource GetBlockLatest (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockLatest -> StdMethod Source # resourcePath :: Proxy GetBlockLatest -> [Text] -> Text Source # queryParams :: GetBlockLatest -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockLatest -> [ProxyBox] Source # |
data GetBlockHeight Source #
Instances
ApiResource GetBlockHeight (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockHeight -> StdMethod Source # resourcePath :: Proxy GetBlockHeight -> [Text] -> Text Source # queryParams :: GetBlockHeight -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeight -> [ProxyBox] Source # |
data GetBlockHeights Source #
Instances
ApiResource GetBlockHeights (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockHeights -> StdMethod Source # resourcePath :: Proxy GetBlockHeights -> [Text] -> Text Source # queryParams :: GetBlockHeights -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeights -> [ProxyBox] Source # |
newtype GetBlockHeightRaw Source #
Instances
ApiResource GetBlockHeightRaw (RawResultList Block) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockHeightRaw -> StdMethod Source # resourcePath :: Proxy GetBlockHeightRaw -> [Text] -> Text Source # queryParams :: GetBlockHeightRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeightRaw -> [ProxyBox] Source # |
data GetBlockTime Source #
Instances
ApiResource GetBlockTime BlockData Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockTime -> StdMethod Source # resourcePath :: Proxy GetBlockTime -> [Text] -> Text Source # queryParams :: GetBlockTime -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockTime -> [ProxyBox] Source # resourceBody :: GetBlockTime -> Maybe PostBox Source # |
newtype GetBlockTimeRaw Source #
Instances
ApiResource GetBlockTimeRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockTimeRaw -> StdMethod Source # resourcePath :: Proxy GetBlockTimeRaw -> [Text] -> Text Source # queryParams :: GetBlockTimeRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockTimeRaw -> [ProxyBox] Source # |
data GetBlockMTP Source #
Instances
ApiResource GetBlockMTP BlockData Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockMTP -> StdMethod Source # resourcePath :: Proxy GetBlockMTP -> [Text] -> Text Source # queryParams :: GetBlockMTP -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockMTP -> [ProxyBox] Source # resourceBody :: GetBlockMTP -> Maybe PostBox Source # |
newtype GetBlockMTPRaw Source #
Instances
ApiResource GetBlockMTPRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetBlockMTPRaw -> StdMethod Source # resourcePath :: Proxy GetBlockMTPRaw -> [Text] -> Text Source # queryParams :: GetBlockMTPRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockMTPRaw -> [ProxyBox] Source # |
Instances
Instances
ApiResource GetTxs (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon |
Instances
ApiResource GetTxRaw (RawResult Tx) Source # | |
Defined in Haskoin.Store.WebCommon |
Instances
ApiResource GetTxsRaw (RawResultList Tx) Source # | |
Defined in Haskoin.Store.WebCommon |
newtype GetTxsBlock Source #
Instances
ApiResource GetTxsBlock (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetTxsBlock -> StdMethod Source # resourcePath :: Proxy GetTxsBlock -> [Text] -> Text Source # queryParams :: GetTxsBlock -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetTxsBlock -> [ProxyBox] Source # resourceBody :: GetTxsBlock -> Maybe PostBox Source # |
newtype GetTxsBlockRaw Source #
Instances
ApiResource GetTxsBlockRaw (RawResultList Tx) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetTxsBlockRaw -> StdMethod Source # resourcePath :: Proxy GetTxsBlockRaw -> [Text] -> Text Source # queryParams :: GetTxsBlockRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetTxsBlockRaw -> [ProxyBox] Source # |
data GetTxAfter Source #
Instances
ApiResource GetTxAfter (GenericResult (Maybe Bool)) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetTxAfter -> StdMethod Source # resourcePath :: Proxy GetTxAfter -> [Text] -> Text Source # queryParams :: GetTxAfter -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetTxAfter -> [ProxyBox] Source # resourceBody :: GetTxAfter -> Maybe PostBox Source # |
Instances
ApiResource PostTx TxId Source # | |
Defined in Haskoin.Store.WebCommon |
data GetMempool Source #
Instances
ApiResource GetMempool (SerialList TxHash) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetMempool -> StdMethod Source # resourcePath :: Proxy GetMempool -> [Text] -> Text Source # queryParams :: GetMempool -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetMempool -> [ProxyBox] Source # resourceBody :: GetMempool -> Maybe PostBox Source # |
Instances
ApiResource GetEvents (SerialList Event) Source # | |
Defined in Haskoin.Store.WebCommon |
data GetAddrTxs Source #
Instances
ApiResource GetAddrTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrTxs -> StdMethod Source # resourcePath :: Proxy GetAddrTxs -> [Text] -> Text Source # queryParams :: GetAddrTxs -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrTxs -> [ProxyBox] Source # resourceBody :: GetAddrTxs -> Maybe PostBox Source # |
data GetAddrsTxs Source #
Instances
ApiResource GetAddrsTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsTxs -> StdMethod Source # resourcePath :: Proxy GetAddrsTxs -> [Text] -> Text Source # queryParams :: GetAddrsTxs -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsTxs -> [ProxyBox] Source # resourceBody :: GetAddrsTxs -> Maybe PostBox Source # |
data GetAddrTxsFull Source #
Instances
ApiResource GetAddrTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrTxsFull -> [Text] -> Text Source # queryParams :: GetAddrTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrTxsFull -> [ProxyBox] Source # |
data GetAddrsTxsFull Source #
Instances
ApiResource GetAddrsTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrsTxsFull -> [Text] -> Text Source # queryParams :: GetAddrsTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsTxsFull -> [ProxyBox] Source # |
newtype GetAddrBalance Source #
Instances
ApiResource GetAddrBalance Balance Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrBalance -> StdMethod Source # resourcePath :: Proxy GetAddrBalance -> [Text] -> Text Source # queryParams :: GetAddrBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrBalance -> [ProxyBox] Source # |
newtype GetAddrsBalance Source #
Instances
ApiResource GetAddrsBalance (SerialList Balance) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsBalance -> StdMethod Source # resourcePath :: Proxy GetAddrsBalance -> [Text] -> Text Source # queryParams :: GetAddrsBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsBalance -> [ProxyBox] Source # |
data GetAddrUnspent Source #
Instances
ApiResource GetAddrUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrUnspent -> [Text] -> Text Source # queryParams :: GetAddrUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrUnspent -> [ProxyBox] Source # |
data GetAddrsUnspent Source #
Instances
ApiResource GetAddrsUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrsUnspent -> [Text] -> Text Source # queryParams :: GetAddrsUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsUnspent -> [ProxyBox] Source # |
Instances
ApiResource GetXPub XPubSummary Source # | |
Defined in Haskoin.Store.WebCommon |
data GetXPubTxs Source #
Instances
ApiResource GetXPubTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetXPubTxs -> StdMethod Source # resourcePath :: Proxy GetXPubTxs -> [Text] -> Text Source # queryParams :: GetXPubTxs -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubTxs -> [ProxyBox] Source # resourceBody :: GetXPubTxs -> Maybe PostBox Source # |
data GetXPubTxsFull Source #
Instances
ApiResource GetXPubTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetXPubTxsFull -> StdMethod Source # resourcePath :: Proxy GetXPubTxsFull -> [Text] -> Text Source # queryParams :: GetXPubTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubTxsFull -> [ProxyBox] Source # |
data GetXPubBalances Source #
Instances
ApiResource GetXPubBalances (SerialList XPubBal) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetXPubBalances -> StdMethod Source # resourcePath :: Proxy GetXPubBalances -> [Text] -> Text Source # queryParams :: GetXPubBalances -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubBalances -> [ProxyBox] Source # |
data GetXPubUnspent Source #
Instances
ApiResource GetXPubUnspent (SerialList XPubUnspent) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetXPubUnspent -> StdMethod Source # resourcePath :: Proxy GetXPubUnspent -> [Text] -> Text Source # queryParams :: GetXPubUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubUnspent -> [ProxyBox] Source # |
data DelCachedXPub Source #
Instances
ApiResource DelCachedXPub (GenericResult Bool) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy DelCachedXPub -> StdMethod Source # resourcePath :: Proxy DelCachedXPub -> [Text] -> Text Source # queryParams :: DelCachedXPub -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy DelCachedXPub -> [ProxyBox] Source # resourceBody :: DelCachedXPub -> Maybe PostBox Source # |
Instances
ApiResource GetPeers (SerialList PeerInformation) Source # | |
Defined in Haskoin.Store.WebCommon |
Instances
ApiResource GetHealth HealthCheck Source # | |
Defined in Haskoin.Store.WebCommon |
capturePath :: ApiResource a b => Proxy a -> RoutePattern Source #
paramLabel :: Param p => p -> Text Source #
Instances
data StartParam Source #
Instances
Eq StartParam Source # | |
Defined in Haskoin.Store.WebCommon (==) :: StartParam -> StartParam -> Bool # (/=) :: StartParam -> StartParam -> Bool # | |
Show StartParam Source # | |
Defined in Haskoin.Store.WebCommon showsPrec :: Int -> StartParam -> ShowS # show :: StartParam -> String # showList :: [StartParam] -> ShowS # | |
Param StartParam Source # | |
Defined in Haskoin.Store.WebCommon proxyLabel :: Proxy StartParam -> Text Source # encodeParam :: Network -> StartParam -> Maybe [Text] Source # parseParam :: Network -> [Text] -> Maybe StartParam Source # |
newtype OffsetParam Source #
Instances
newtype LimitParam Source #
Instances
data LimitsParam Source #
Instances
Eq LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon (==) :: LimitsParam -> LimitsParam -> Bool # (/=) :: LimitsParam -> LimitsParam -> Bool # | |
Show LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon showsPrec :: Int -> LimitsParam -> ShowS # show :: LimitsParam -> String # showList :: [LimitsParam] -> ShowS # | |
Default LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon def :: LimitsParam # |
newtype HeightParam Source #
Instances
newtype HeightsParam Source #
Instances
Eq HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon (==) :: HeightsParam -> HeightsParam -> Bool # (/=) :: HeightsParam -> HeightsParam -> Bool # | |
Read HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon readsPrec :: Int -> ReadS HeightsParam # readList :: ReadS [HeightsParam] # | |
Show HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon showsPrec :: Int -> HeightsParam -> ShowS # show :: HeightsParam -> String # showList :: [HeightsParam] -> ShowS # | |
Param HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon proxyLabel :: Proxy HeightsParam -> Text Source # encodeParam :: Network -> HeightsParam -> Maybe [Text] Source # parseParam :: Network -> [Text] -> Maybe HeightsParam Source # |
Instances
Enum TimeParam Source # | |
Defined in Haskoin.Store.WebCommon succ :: TimeParam -> TimeParam # pred :: TimeParam -> TimeParam # fromEnum :: TimeParam -> Int # enumFrom :: TimeParam -> [TimeParam] # enumFromThen :: TimeParam -> TimeParam -> [TimeParam] # enumFromTo :: TimeParam -> TimeParam -> [TimeParam] # enumFromThenTo :: TimeParam -> TimeParam -> TimeParam -> [TimeParam] # | |
Eq TimeParam Source # | |
Integral TimeParam Source # | |
Defined in Haskoin.Store.WebCommon | |
Num TimeParam Source # | |
Defined in Haskoin.Store.WebCommon | |
Ord TimeParam Source # | |
Defined in Haskoin.Store.WebCommon | |
Read TimeParam Source # | |
Real TimeParam Source # | |
Defined in Haskoin.Store.WebCommon toRational :: TimeParam -> Rational # | |
Show TimeParam Source # | |
Param TimeParam Source # | |