haskoin-store-data-0.51.0: Data for Haskoin Store
Safe HaskellNone
LanguageHaskell2010

Haskoin.Store.WebClient

Synopsis

Documentation

data ApiConfig Source #

Configuration specifying the Network and the Host for API calls. Default instance:

ApiConfig
{ configNetwork = bch
, configHost = "https://api.haskoin.com/"
}

Constructors

ApiConfig 

Instances

Instances details
Eq ApiConfig Source # 
Instance details

Defined in Haskoin.Store.WebClient

Show ApiConfig Source # 
Instance details

Defined in Haskoin.Store.WebClient

Default ApiConfig Source # 
Instance details

Defined in Haskoin.Store.WebClient

Methods

def :: ApiConfig #

apiCall :: (ApiResource a b, MonadIO m, MonadError Except m) => ApiConfig -> a -> m b Source #

Make a call to the haskoin-store API.

Usage (default options):

apiCall def $ GetAddrsTxs addrs def

With options:

apiCall def $ GetAddrsUnspent addrs def{ paramLimit = Just 10 }

apiBatch :: (Batchable a b, MonadIO m, MonadError Except m) => Natural -> ApiConfig -> a -> m b Source #

Batch commands that have a large list of arguments:

apiBatch 20 def (GetAddrsTxs addrs def)

newtype OffsetParam Source #

Constructors

OffsetParam 

Instances

Instances details
Enum OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Eq OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Integral OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Num OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Ord OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Read OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Real OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Default OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

def :: OffsetParam #

Param OffsetParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

newtype LimitParam Source #

Constructors

LimitParam 

Instances

Instances details
Enum LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Eq LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Integral LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Num LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Ord LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Read LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Real LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Param LimitParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

data LimitsParam Source #

Instances

Instances details
Eq LimitsParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show LimitsParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Default LimitsParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

def :: LimitsParam #

newtype HeightParam Source #

Constructors

HeightParam 

Instances

Instances details
Enum HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Eq HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Integral HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Num HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Ord HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Read HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Real HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Param HeightParam Source # 
Instance details

Defined in Haskoin.Store.WebCommon

data DeriveType Source #

Instances

Instances details
Eq DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Show DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Generic DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Associated Types

type Rep DeriveType :: Type -> Type #

Binary DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Serial DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Methods

serialize :: MonadPut m => DeriveType -> m () #

deserialize :: MonadGet m => m DeriveType #

Serialize DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

NFData DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Methods

rnf :: DeriveType -> () #

Default DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

Methods

def :: DeriveType #

Param DeriveType Source # 
Instance details

Defined in Haskoin.Store.WebCommon

type Rep DeriveType Source # 
Instance details

Defined in Haskoin.Store.Data

type Rep DeriveType = D1 ('MetaData "DeriveType" "Haskoin.Store.Data" "haskoin-store-data-0.51.0-inplace" 'False) (C1 ('MetaCons "DeriveNormal" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DeriveP2SH" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeriveP2WPKH" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype NoCache Source #

Constructors

NoCache 

Fields

Instances

Instances details
Eq NoCache Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

(==) :: NoCache -> NoCache -> Bool #

(/=) :: NoCache -> NoCache -> Bool #

Read NoCache Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show NoCache Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Default NoCache Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

def :: NoCache #

Param NoCache Source # 
Instance details

Defined in Haskoin.Store.WebCommon

newtype NoTx Source #

Constructors

NoTx 

Fields

Instances

Instances details
Eq NoTx Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

(==) :: NoTx -> NoTx -> Bool #

(/=) :: NoTx -> NoTx -> Bool #

Read NoTx Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Show NoTx Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

showsPrec :: Int -> NoTx -> ShowS #

show :: NoTx -> String #

showList :: [NoTx] -> ShowS #

Default NoTx Source # 
Instance details

Defined in Haskoin.Store.WebCommon

Methods

def :: NoTx #

Param NoTx Source # 
Instance details

Defined in Haskoin.Store.WebCommon