Module

Cardano.Wallet.Cip30.TypeSafe

#APIError

type APIError = { code :: APIErrorTag, info :: String }

#DataSignError

type DataSignError = { code :: DataSignErrorTag, info :: String }

#TxSendError

type TxSendError = { code :: TxSendErrorTag, info :: String }

#TxSignError

type TxSignError = { code :: TxSignErrorTag, info :: String }

#enable

enable :: WalletName -> Array Extension -> Aff (Variant (apiError :: APIError, success :: Api))

#isEnabled

isEnabled :: WalletName -> Aff (Variant (apiError :: APIError, success :: Boolean))

#getExtensions

getExtensions :: Api -> Aff (Variant (apiError :: APIError, success :: Array Extension))

#getNetworkId

getNetworkId :: Api -> Aff (Variant (apiError :: APIError, success :: NetworkId))

#getUtxos

getUtxos :: Api -> Maybe Cbor -> Maybe Paginate -> Aff (Variant (apiError :: APIError, paginateError :: PaginateError, success :: Maybe (Array Cbor)))

#getCollateral

getCollateral :: Api -> Cbor -> Aff (Variant (apiError :: APIError, success :: Maybe (Array Cbor)))

#getBalance

getBalance :: Api -> Aff (Variant (apiError :: APIError, success :: Cbor))

#getUsedAddresses

getUsedAddresses :: Api -> Maybe Paginate -> Aff (Variant (apiError :: APIError, paginateError :: PaginateError, success :: Array Cbor))

#getUnusedAddresses

getUnusedAddresses :: Api -> Aff (Variant (apiError :: APIError, success :: Array Cbor))

#getChangeAddress

getChangeAddress :: Api -> Aff (Variant (apiError :: APIError, success :: Cbor))

#getRewardAddresses

getRewardAddresses :: Api -> Aff (Variant (apiError :: APIError, success :: Array Cbor))

#signTx

signTx :: Api -> Cbor -> Boolean -> Aff (Variant (apiError :: APIError, success :: Cbor, txSignError :: TxSignError))

#signData

signData :: Api -> Cbor -> Bytes -> Aff (Variant (apiError :: APIError, dataSignError :: DataSignError, success :: DataSignature))

#submitTx

submitTx :: Api -> Cbor -> Aff (Variant (apiError :: APIError, success :: String, txSendError :: TxSendError))

#_apiError

_apiError :: Proxy "apiError"

#_txSignError

_txSignError :: Proxy "txSignError"

#_dataSignError

_dataSignError :: Proxy "dataSignError"

#_txSendError

_txSendError :: Proxy "txSendError"

#_paginateError

_paginateError :: Proxy "paginateError"

#_success

_success :: Proxy "success"

Modules