{-# OPTIONS_HADDOCK hide #-}
module Blockfrost.API.Cardano.Transactions
where
import Servant.API
import Servant.API.Generic
import Blockfrost.Types.Cardano.Transactions
import Blockfrost.Types.Shared
data TransactionsAPI route =
TransactionsAPI
{
forall route.
TransactionsAPI route
-> route
:- (Summary "Specific transaction"
:> (Description "Return content of the requested transaction."
:> (Capture "hash" TxHash :> Get '[JSON] Transaction)))
_tx
:: route
:- Summary "Specific transaction"
:> Description "Return content of the requested transaction."
:> Capture "hash" TxHash
:> Get '[JSON] Transaction
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction UTXOs"
:> (Description
"Return the inputs and UTXOs of the specific transaction."
:> (Capture "hash" TxHash
:> ("utxos" :> Get '[JSON] TransactionUtxos))))
_txUtxos
:: route
:- Summary "Transaction UTXOs"
:> Description "Return the inputs and UTXOs of the specific transaction."
:> Capture "hash" TxHash
:> "utxos"
:> Get '[JSON] TransactionUtxos
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction redeemers"
:> (Description "Obtain the transaction redeemers."
:> (Capture "hash" TxHash
:> ("redeemers" :> Get '[JSON] [TransactionRedeemer]))))
_txRedeemers
:: route
:- Summary "Transaction redeemers"
:> Description "Obtain the transaction redeemers."
:> Capture "hash" TxHash
:> "redeemers"
:> Get '[JSON] [TransactionRedeemer]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction stake addresses certificates "
:> (Description
"Obtain information about (de)registration of stake addresses within a transaction."
:> (Capture "hash" TxHash
:> ("stakes" :> Get '[JSON] [TransactionStake]))))
_txStakes
:: route
:- Summary "Transaction stake addresses certificates "
:> Description "Obtain information about (de)registration of stake addresses within a transaction."
:> Capture "hash" TxHash
:> "stakes"
:> Get '[JSON] [TransactionStake]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction delegation certificates"
:> (Description
"Obtain information about delegation certificates of a specific transaction."
:> (Capture "hash" TxHash
:> ("delegations" :> Get '[JSON] [TransactionDelegation]))))
_txDelegations
:: route
:- Summary "Transaction delegation certificates"
:> Description "Obtain information about delegation certificates of a specific transaction."
:> Capture "hash" TxHash
:> "delegations"
:> Get '[JSON] [TransactionDelegation]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction withdrawal"
:> (Description
"Obtain information about withdrawals of a specific transaction."
:> (Capture "hash" TxHash
:> ("withdrawals" :> Get '[JSON] [TransactionWithdrawal]))))
_txWithdrawals
:: route
:- Summary "Transaction withdrawal"
:> Description "Obtain information about withdrawals of a specific transaction."
:> Capture "hash" TxHash
:> "withdrawals"
:> Get '[JSON] [TransactionWithdrawal]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction MIRs"
:> (Description
"Obtain information about Move Instantaneous Rewards (MIRs) of a specific transaction."
:> (Capture "hash" TxHash
:> ("mirs" :> Get '[JSON] [TransactionMir]))))
_txMirs
:: route
:- Summary "Transaction MIRs"
:> Description "Obtain information about Move Instantaneous Rewards (MIRs) of a specific transaction."
:> Capture "hash" TxHash
:> "mirs"
:> Get '[JSON] [TransactionMir]
, forall route.
TransactionsAPI route
-> route
:- (Summary
"Transaction stake pool registration and update certificates"
:> (Description
"Obtain information about stake pool registration and update certificates of a specific transaction."
:> (Capture "hash" TxHash
:> ("pool_updates" :> Get '[JSON] [TransactionPoolUpdate]))))
_txPoolUpdates
:: route
:- Summary "Transaction stake pool registration and update certificates"
:> Description "Obtain information about stake pool registration and update certificates of a specific transaction."
:> Capture "hash" TxHash
:> "pool_updates"
:> Get '[JSON] [TransactionPoolUpdate]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction stake pool retirement certificates"
:> (Description
"Obtain information about stake pool retirements within a specific transaction."
:> (Capture "hash" TxHash
:> ("pool_retires" :> Get '[JSON] [TransactionPoolRetiring]))))
_txPoolRetiring
:: route
:- Summary "Transaction stake pool retirement certificates"
:> Description "Obtain information about stake pool retirements within a specific transaction."
:> Capture "hash" TxHash
:> "pool_retires"
:> Get '[JSON] [TransactionPoolRetiring]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction metadata"
:> (Description "Obtain the transaction metadata."
:> (Capture "hash" TxHash
:> ("metadata" :> Get '[JSON] [TransactionMetaJSON]))))
_txMetadataJSON
:: route
:- Summary "Transaction metadata"
:> Description "Obtain the transaction metadata."
:> Capture "hash" TxHash
:> "metadata"
:> Get '[JSON] [TransactionMetaJSON]
, forall route.
TransactionsAPI route
-> route
:- (Summary "Transaction metadata in CBOR"
:> (Description "Obtain the transaction metadata in CBOR."
:> (Capture "hash" TxHash
:> ("metadata" :> ("cbor" :> Get '[JSON] [TransactionMetaCBOR])))))
_txMetadataCBOR
:: route
:- Summary "Transaction metadata in CBOR"
:> Description "Obtain the transaction metadata in CBOR."
:> Capture "hash" TxHash
:> "metadata"
:> "cbor"
:> Get '[JSON] [TransactionMetaCBOR]
} deriving (forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall route x.
Rep (TransactionsAPI route) x -> TransactionsAPI route
forall route x.
TransactionsAPI route -> Rep (TransactionsAPI route) x
$cto :: forall route x.
Rep (TransactionsAPI route) x -> TransactionsAPI route
$cfrom :: forall route x.
TransactionsAPI route -> Rep (TransactionsAPI route) x
Generic)