plutus-pab-1.2.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-hash" :> Get '[JSON] PaymentPubKeyHash)) :<|> ((Capture "walletId" walletId :> ("own-addresses" :> Get '[JSON] (NonEmpty CardanoAddress))) :<|> ((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 #