plutus-pab-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Wallet.Mock.API

Documentation

type API walletId = ("create" :> (QueryParam "funds" Integer :> Post '[JSON] WalletInfo)) :<|> ((Capture "walletId" walletId :> ("submit-txn" :> (ReqBody '[JSON] CardanoTx :> Post '[JSON] NoContent))) :<|> ((Capture "walletId" walletId :> ("own-payment-public-key" :> Get '[JSON] WalletInfo)) :<|> ((Capture "walletId" walletId :> ("balance-tx" :> (ReqBody '[JSON] UnbalancedTx :> Post '[JSON] (Either WalletAPIError CardanoTx)))) :<|> ((Capture "walletId" walletId :> ("total-funds" :> Get '[JSON] Value)) :<|> (Capture "walletId" walletId :> ("sign" :> (ReqBody '[JSON] CardanoTx :> Post '[JSON] CardanoTx))))))) Source #