plutus-chain-index-core-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.ChainIndex.Client

Synopsis

HTTP Client handler

handleChainIndexClient :: forall m effs. (LastMember m effs, Member (Reader ClientEnv) effs, MonadIO m, Member (Error ClientError) effs) => ChainIndexQueryEffect ~> Eff effs Source #

Handle ChainIndexQueryEffect by making HTTP calls to a remote server.

Servant client functions

healthCheck :: ClientM NoContent Source #

collectGarbage :: ClientM NoContent Source #

getDatum :: DatumHash -> ClientM Datum Source #

getValidator :: ValidatorHash -> ClientM (Versioned Validator) Source #

getMintingPolicy :: MintingPolicyHash -> ClientM (Versioned MintingPolicy) Source #

getStakeValidator :: StakeValidatorHash -> ClientM (Versioned StakeValidator) Source #

getRedeemer :: RedeemerHash -> ClientM Redeemer Source #

getTxOut :: TxOutRef -> ClientM DecoratedTxOut Source #

getTx :: TxId -> ClientM ChainIndexTx Source #

getUnspentTxOut :: TxOutRef -> ClientM DecoratedTxOut Source #

getIsUtxo :: TxOutRef -> ClientM IsUtxoResponse Source #

getUnspentTxOutsAtAddress :: QueryAtAddressRequest -> ClientM (QueryResponse [(TxOutRef, DecoratedTxOut)]) Source #

getTxs :: [TxId] -> ClientM [ChainIndexTx] Source #

getTip :: ClientM Tip Source #