Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type TxSubmitApi = "api" :> ToServantApi TxSubmitApiRecord
- newtype TxSubmitApiRecord route = TxSubmitApiRecord {
- _txSubmitPost :: route :- ("submit" :> ("tx" :> (ReqBody '[CBORStream] ByteString :> PostAccepted '[JSON] TxId)))
- data TxSubmitWebApiError
- newtype TxSubmitPort = TxSubmitPort Int
- newtype EnvSocketError = CliEnvVarLookup Text
- data TxCmdError
- newtype RawCborDecodeError = RawCborDecodeError [DecoderError]
- renderTxCmdError :: TxCmdError -> Text
Documentation
type TxSubmitApi = "api" :> ToServantApi TxSubmitApiRecord Source #
Servant API which provides access to tx submission webapi
newtype TxSubmitApiRecord route Source #
A servant-generic record with all the methods of the API
TxSubmitApiRecord | |
|
Instances
Generic (TxSubmitApiRecord route) Source # | |
Defined in Cardano.TxSubmit.Types from :: TxSubmitApiRecord route -> Rep (TxSubmitApiRecord route) x Source # to :: Rep (TxSubmitApiRecord route) x -> TxSubmitApiRecord route Source # | |
type Rep (TxSubmitApiRecord route) Source # | |
Defined in Cardano.TxSubmit.Types |
data TxSubmitWebApiError Source #
An error that can occur in the transaction submission web API.
TxSubmitDecodeHex | |
TxSubmitEmpty | |
TxSubmitDecodeFail !DecoderError | |
TxSubmitBadTx !Text | |
TxSubmitFail TxCmdError |
Instances
newtype TxSubmitPort Source #
newtype EnvSocketError Source #
Instances
data TxCmdError Source #
TxCmdSocketEnvError EnvSocketError | |
TxCmdTxReadError !RawCborDecodeError | |
TxCmdTxSubmitValidationError !TxValidationErrorInCardanoMode |
Instances
newtype RawCborDecodeError Source #
The errors that the raw CBOR transaction parsing/decoding functions can return.
Instances
renderTxCmdError :: TxCmdError -> Text Source #