| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Haskoin.Store.WebCommon
Documentation
class Serial b => ApiResource a b | a -> b where Source #
Minimal complete definition
Methods
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 #
Constructors
| GetBlockRaw BlockHash |
Instances
| ApiResource GetBlockRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetBlockBest NoTx |
Instances
| ApiResource GetBlockBest BlockData Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetBlockBestRaw |
Instances
| ApiResource GetBlockBestRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockBestRaw -> StdMethod Source # resourcePath :: Proxy GetBlockBestRaw -> [Text] -> Text Source # queryParams :: GetBlockBestRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockBestRaw -> [ProxyBox] Source # | |
newtype GetBlockLatest Source #
Constructors
| GetBlockLatest NoTx |
Instances
| ApiResource GetBlockLatest (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockLatest -> StdMethod Source # resourcePath :: Proxy GetBlockLatest -> [Text] -> Text Source # queryParams :: GetBlockLatest -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockLatest -> [ProxyBox] Source # | |
data GetBlockHeight Source #
Constructors
| GetBlockHeight !HeightParam !NoTx |
Instances
| ApiResource GetBlockHeight (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockHeight -> StdMethod Source # resourcePath :: Proxy GetBlockHeight -> [Text] -> Text Source # queryParams :: GetBlockHeight -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeight -> [ProxyBox] Source # | |
data GetBlockHeights Source #
Constructors
| GetBlockHeights !HeightsParam !NoTx |
Instances
| ApiResource GetBlockHeights (SerialList BlockData) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockHeights -> StdMethod Source # resourcePath :: Proxy GetBlockHeights -> [Text] -> Text Source # queryParams :: GetBlockHeights -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeights -> [ProxyBox] Source # | |
newtype GetBlockHeightRaw Source #
Constructors
| GetBlockHeightRaw HeightParam |
Instances
| ApiResource GetBlockHeightRaw (RawResultList Block) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockHeightRaw -> StdMethod Source # resourcePath :: Proxy GetBlockHeightRaw -> [Text] -> Text Source # queryParams :: GetBlockHeightRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockHeightRaw -> [ProxyBox] Source # | |
data GetBlockTime Source #
Constructors
| GetBlockTime !TimeParam !NoTx |
Instances
| ApiResource GetBlockTime BlockData Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetBlockTimeRaw TimeParam |
Instances
| ApiResource GetBlockTimeRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockTimeRaw -> StdMethod Source # resourcePath :: Proxy GetBlockTimeRaw -> [Text] -> Text Source # queryParams :: GetBlockTimeRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockTimeRaw -> [ProxyBox] Source # | |
data GetBlockMTP Source #
Constructors
| GetBlockMTP !TimeParam !NoTx |
Instances
| ApiResource GetBlockMTP BlockData Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetBlockMTPRaw TimeParam |
Instances
| ApiResource GetBlockMTPRaw (RawResult Block) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetBlockMTPRaw -> StdMethod Source # resourcePath :: Proxy GetBlockMTPRaw -> [Text] -> Text Source # queryParams :: GetBlockMTPRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetBlockMTPRaw -> [ProxyBox] Source # | |
Instances
| ApiResource GetTx Transaction Source # | |
Defined in Haskoin.Store.WebCommon | |
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 #
Constructors
| GetTxsBlock BlockHash |
Instances
| ApiResource GetTxsBlock (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetTxsBlockRaw BlockHash |
Instances
| ApiResource GetTxsBlockRaw (RawResultList Tx) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetTxsBlockRaw -> StdMethod Source # resourcePath :: Proxy GetTxsBlockRaw -> [Text] -> Text Source # queryParams :: GetTxsBlockRaw -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetTxsBlockRaw -> [ProxyBox] Source # | |
data GetTxAfter Source #
Constructors
| GetTxAfter !TxHash !HeightParam |
Instances
| ApiResource GetTxAfter (GenericResult (Maybe Bool)) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetMempool !(Maybe LimitParam) !OffsetParam |
Instances
| ApiResource GetMempool (SerialList TxHash) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 # | |
Constructors
| GetEvents |
Instances
| ApiResource GetEvents (SerialList Event) Source # | |
Defined in Haskoin.Store.WebCommon | |
data GetAddrTxs Source #
Constructors
| GetAddrTxs !Address !LimitsParam |
Instances
| ApiResource GetAddrTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetAddrsTxs ![Address] !LimitsParam |
Instances
| ApiResource GetAddrsTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetAddrTxsFull !Address !LimitsParam |
Instances
| ApiResource GetAddrTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrTxsFull -> [Text] -> Text Source # queryParams :: GetAddrTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrTxsFull -> [ProxyBox] Source # | |
data GetAddrsTxsFull Source #
Constructors
| GetAddrsTxsFull ![Address] !LimitsParam |
Instances
| ApiResource GetAddrsTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrsTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrsTxsFull -> [Text] -> Text Source # queryParams :: GetAddrsTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsTxsFull -> [ProxyBox] Source # | |
newtype GetAddrBalance Source #
Constructors
| GetAddrBalance Address |
Instances
| ApiResource GetAddrBalance Balance Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrBalance -> StdMethod Source # resourcePath :: Proxy GetAddrBalance -> [Text] -> Text Source # queryParams :: GetAddrBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrBalance -> [ProxyBox] Source # | |
newtype GetAddrsBalance Source #
Constructors
| GetAddrsBalance [Address] |
Instances
| ApiResource GetAddrsBalance (SerialList Balance) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrsBalance -> StdMethod Source # resourcePath :: Proxy GetAddrsBalance -> [Text] -> Text Source # queryParams :: GetAddrsBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsBalance -> [ProxyBox] Source # | |
data GetAddrUnspent Source #
Constructors
| GetAddrUnspent !Address !LimitsParam |
Instances
| ApiResource GetAddrUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrUnspent -> [Text] -> Text Source # queryParams :: GetAddrUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrUnspent -> [ProxyBox] Source # | |
data GetAddrsUnspent Source #
Constructors
| GetAddrsUnspent ![Address] !LimitsParam |
Instances
| ApiResource GetAddrsUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrsUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrsUnspent -> [Text] -> Text Source # queryParams :: GetAddrsUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsUnspent -> [ProxyBox] Source # | |
Constructors
| GetXPub !XPubKey !DeriveType !NoCache |
Instances
| ApiResource GetXPub XPubSummary Source # | |
Defined in Haskoin.Store.WebCommon | |
data GetXPubTxs Source #
Constructors
| GetXPubTxs !XPubKey !DeriveType !LimitsParam !NoCache |
Instances
| ApiResource GetXPubTxs (SerialList TxRef) Source # | |
Defined in Haskoin.Store.WebCommon Methods 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 #
Constructors
| GetXPubTxsFull !XPubKey !DeriveType !LimitsParam !NoCache |
Instances
| ApiResource GetXPubTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetXPubTxsFull -> StdMethod Source # resourcePath :: Proxy GetXPubTxsFull -> [Text] -> Text Source # queryParams :: GetXPubTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubTxsFull -> [ProxyBox] Source # | |
data GetXPubBalances Source #
Constructors
| GetXPubBalances !XPubKey !DeriveType !NoCache |
Instances
| ApiResource GetXPubBalances (SerialList XPubBal) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetXPubBalances -> StdMethod Source # resourcePath :: Proxy GetXPubBalances -> [Text] -> Text Source # queryParams :: GetXPubBalances -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubBalances -> [ProxyBox] Source # | |
data GetXPubUnspent Source #
Constructors
| GetXPubUnspent !XPubKey !DeriveType !LimitsParam !NoCache |
Instances
| ApiResource GetXPubUnspent (SerialList XPubUnspent) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetXPubUnspent -> StdMethod Source # resourcePath :: Proxy GetXPubUnspent -> [Text] -> Text Source # queryParams :: GetXPubUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubUnspent -> [ProxyBox] Source # | |
Constructors
| GetPeers |
Instances
| ApiResource GetPeers (SerialList PeerInformation) Source # | |
Defined in Haskoin.Store.WebCommon | |
Constructors
| GetHealth |
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 #
Constructors
| StartParamHash | |
Fields | |
| StartParamHeight | |
Fields | |
| StartParamTime | |
Fields | |
Instances
| Eq StartParam Source # | |
Defined in Haskoin.Store.WebCommon | |
| Show StartParam Source # | |
Defined in Haskoin.Store.WebCommon Methods showsPrec :: Int -> StartParam -> ShowS # show :: StartParam -> String # showList :: [StartParam] -> ShowS # | |
| Param StartParam Source # | |
Defined in Haskoin.Store.WebCommon Methods proxyLabel :: Proxy StartParam -> Text Source # encodeParam :: Network -> StartParam -> Maybe [Text] Source # parseParam :: Network -> [Text] -> Maybe StartParam Source # | |
newtype OffsetParam Source #
Constructors
| OffsetParam | |
Fields | |
Instances
newtype LimitParam Source #
Constructors
| LimitParam | |
Fields | |
Instances
data LimitsParam Source #
Constructors
| LimitsParam | |
Fields | |
Instances
| Eq LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon | |
| Show LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon Methods showsPrec :: Int -> LimitsParam -> ShowS # show :: LimitsParam -> String # showList :: [LimitsParam] -> ShowS # | |
| Default LimitsParam Source # | |
Defined in Haskoin.Store.WebCommon Methods def :: LimitsParam # | |
newtype HeightParam Source #
Constructors
| HeightParam | |
Fields | |
Instances
newtype HeightsParam Source #
Constructors
| HeightsParam | |
Fields
| |
Instances
| Eq HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon | |
| Read HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon Methods readsPrec :: Int -> ReadS HeightsParam # readList :: ReadS [HeightsParam] # | |
| Show HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon Methods showsPrec :: Int -> HeightsParam -> ShowS # show :: HeightsParam -> String # showList :: [HeightsParam] -> ShowS # | |
| Param HeightsParam Source # | |
Defined in Haskoin.Store.WebCommon Methods proxyLabel :: Proxy HeightsParam -> Text Source # encodeParam :: Network -> HeightsParam -> Maybe [Text] Source # parseParam :: Network -> [Text] -> Maybe HeightsParam Source # | |
Constructors
| TimeParam | |
Fields | |
Instances
Constructors
| NoCache | |
Fields
| |