cardano-api-1.35.4
Safe Haskell None
Language Haskell2010

Cardano.Api.Byron

Description

This module provides a library interface that is intended to be the complete API for Byron covering everything, including exposing constructors for the lower level types.

Synopsis

Documentation

Cryptographic key interface

Hashes

data family Hash keyrole :: Type Source #

Instances

Instances details
Eq ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Eq ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Eq ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Eq ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Eq ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Eq ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Eq ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

Ord ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Ord ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Ord ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Ord ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Ord ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Ord ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

Show ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

Show ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

Show ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Show ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

Show ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

Show ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Show ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

IsString ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

IsString ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

IsString ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

IsString ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

IsString ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

IsString ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

ToJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSON ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

ToJSON ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

ToJSONKey ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToJSONKey ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

FromJSON ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromJSON ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

FromJSON ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

FromJSONKey ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

ToCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

ToCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

ToCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

ToCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

ToCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

FromCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

FromCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

FromCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

FromCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

HasTypeProxy a => HasTypeProxy ( Hash a) Source #
Instance details

Defined in Cardano.Api.Hash

Associated Types

data AsType ( Hash a) Source #

SerialiseAsCBOR ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsCBOR ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsCBOR ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsCBOR ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsCBOR ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisUTxOKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisDelegateExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisDelegateKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash GenesisKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash StakeExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash StakeKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash PaymentExtendedKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash PaymentKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

SerialiseAsRawBytes ( Hash ScriptData ) Source #
Instance details

Defined in Cardano.Api.ScriptData

SerialiseAsRawBytes ( Hash ByronKeyLegacy ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsRawBytes ( Hash ByronKey ) Source #
Instance details

Defined in Cardano.Api.KeysByron

SerialiseAsRawBytes ( Hash VrfKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash KesKey ) Source #
Instance details

Defined in Cardano.Api.KeysPraos

SerialiseAsRawBytes ( Hash StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

SerialiseAsRawBytes ( Hash BlockHeader ) Source #
Instance details

Defined in Cardano.Api.Block

SerialiseAsBech32 ( Hash StakePoolKey ) Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakePoolKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisUTxOKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisDelegateExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisDelegateKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash GenesisKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakeExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash StakeKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash PaymentExtendedKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash PaymentKey Source #
Instance details

Defined in Cardano.Api.KeysShelley

newtype Hash ScriptData Source #
Instance details

Defined in Cardano.Api.ScriptData

newtype Hash ByronKeyLegacy Source #
Instance details

Defined in Cardano.Api.KeysByron

newtype Hash ByronKey Source #
Instance details

Defined in Cardano.Api.KeysByron

newtype Hash VrfKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash KesKey Source #
Instance details

Defined in Cardano.Api.KeysPraos

newtype Hash StakePoolMetadata Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

newtype Hash BlockHeader Source #

For now at least we use a fixed concrete hash type for all modes and era. The different eras do use different types, but it's all the same underlying representation.

Instance details

Defined in Cardano.Api.Block

data AsType ( Hash a) Source #
Instance details

Defined in Cardano.Api.Hash

Payment addresses

Constructing and inspecting Byron payment addresses

data Address addrtype where Source #

Addresses are used as locations where assets live. The address determines the rights needed to spend assets at the address: in particular holding some signing key or being able to satisfy the conditions of a script.

There are currently two types of address:

  • Byron addresses, which use the type tag ByronAddr ; and
  • Shelley addresses, which use the type tag ShelleyAddr . Notably, Shelley addresses support scripts and stake delegation.

The address type is subtly from the ledger era in which each address type is valid: while Byron addresses are the only choice in the Byron era, the Shelley era and all subsequent eras support both Byron and Shelley addresses. The Address type param only says the type of the address (either Byron or Shelley). The AddressInEra type connects the address type with the era in which it is supported.

Constructors

ByronAddress :: Address -> Address ByronAddr

Byron addresses were the only supported address type in the original Byron era.

Instances

Instances details
Eq ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Ord ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Show ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

HasTypeProxy addrtype => HasTypeProxy ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType ( Address addrtype) Source #

SerialiseAsRawBytes ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsRawBytes ( Address ByronAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAsBech32 ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAddress ( Address ShelleyAddr ) Source #
Instance details

Defined in Cardano.Api.Address

SerialiseAddress ( Address ByronAddr ) Source #
Instance details

Defined in Cardano.Api.Address

data AsType ( Address addrtype) Source #
Instance details

Defined in Cardano.Api.Address

data AsType ( Address addrtype) = AsAddress ( AsType addrtype)

Building transactions

Constructing and inspecting transactions

newtype TxId Source #

Instances

Instances details
Eq TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Ord TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Show TxId Source #
Instance details

Defined in Cardano.Api.TxIn

IsString TxId Source #
Instance details

Defined in Cardano.Api.TxIn

ToJSON TxId Source #
Instance details

Defined in Cardano.Api.TxIn

ToJSONKey TxId Source #
Instance details

Defined in Cardano.Api.TxIn

FromJSON TxId Source #
Instance details

Defined in Cardano.Api.TxIn

FromJSONKey TxId Source #
Instance details

Defined in Cardano.Api.TxIn

HasTypeProxy TxId Source #
Instance details

Defined in Cardano.Api.TxIn

Associated Types

data AsType TxId Source #

SerialiseAsRawBytes TxId Source #
Instance details

Defined in Cardano.Api.TxIn

data AsType TxId Source #
Instance details

Defined in Cardano.Api.TxIn

data TxIn Source #

data TxOut ctx era Source #

Instances

Instances details
EraCast ( TxOut ctx) Source #
Instance details

Defined in Cardano.Api.TxBody

Eq ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

Show ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

IsCardanoEra era => ToJSON ( TxOut ctx era) Source #
Instance details

Defined in Cardano.Api.TxBody

( IsShelleyBasedEra era, IsCardanoEra era) => FromJSON ( TxOut CtxUTxO era) Source #
Instance details

Defined in Cardano.Api.TxBody

( IsShelleyBasedEra era, IsCardanoEra era) => FromJSON ( TxOut CtxTx era) Source #
Instance details

Defined in Cardano.Api.TxBody

newtype TxIx Source #

Constructors

TxIx Word

newtype Lovelace Source #

Instances

Instances details
Enum Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Eq Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Integral Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Num Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Ord Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Real Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Show Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Semigroup Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Monoid Lovelace Source #
Instance details

Defined in Cardano.Api.Value

ToJSON Lovelace Source #
Instance details

Defined in Cardano.Api.Value

FromJSON Lovelace Source #
Instance details

Defined in Cardano.Api.Value

ToCBOR Lovelace Source #
Instance details

Defined in Cardano.Api.Value

FromCBOR Lovelace Source #
Instance details

Defined in Cardano.Api.Value

Signing transactions

Creating transaction witnesses one by one, or all in one go.

data Tx era where Source #

Instances

Instances details
Eq ( InAnyCardanoEra Tx ) Source #
Instance details

Defined in Cardano.Api.Tx

Eq ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

Show ( InAnyCardanoEra Tx ) Source #
Instance details

Defined in Cardano.Api.Tx

Show ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

HasTypeProxy era => HasTypeProxy ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

Associated Types

data AsType ( Tx era) Source #

IsCardanoEra era => SerialiseAsCBOR ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

IsCardanoEra era => HasTextEnvelope ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

data AsType ( Tx era) Source #
Instance details

Defined in Cardano.Api.Tx

data AsType ( Tx era) = AsTx ( AsType era)

Incremental signing and separate witnesses

data WitnessNetworkIdOrByronAddress Source #

Either a network ID or a Byron address to be used in constructing a Shelley bootstrap witness.

Constructors

WitnessNetworkId ! NetworkId

Network ID.

If this value is used in the construction of a Shelley bootstrap witness, the result will not consist of a derivation path. If that is required, specify a WitnessByronAddress value instead.

WitnessByronAddress !( Address ByronAddr )

Byron address.

If this value is used in the construction of a Shelley bootstrap witness, both the network ID and derivation path will be extracted from the address and used in the construction of the witness.

Errors

class Show e => Error e where Source #

Instances

Instances details
Error () Source #
Instance details

Defined in Cardano.Api.Error

Error IOException Source #
Instance details

Defined in Cardano.Api.Error

Error JsonDecodeError Source #
Instance details

Defined in Cardano.Api.SerialiseJSON

Error TxMetadataJsonSchemaError Source #
Instance details

Defined in Cardano.Api.TxMetadata

Error TxMetadataJsonError Source #
Instance details

Defined in Cardano.Api.TxMetadata

Error TxMetadataRangeError Source #
Instance details

Defined in Cardano.Api.TxMetadata

Error TextEnvelopeError Source #
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Error Bech32DecodeError Source #
Instance details

Defined in Cardano.Api.SerialiseBech32

Error ScriptDataJsonSchemaError Source #
Instance details

Defined in Cardano.Api.ScriptData

Error ScriptDataJsonError Source #
Instance details

Defined in Cardano.Api.ScriptData

Error ScriptDataRangeError Source #
Instance details

Defined in Cardano.Api.ScriptData

Error StakePoolMetadataValidationError Source #
Instance details

Defined in Cardano.Api.StakePoolMetadata

Error ProtocolParametersError Source #
Instance details

Defined in Cardano.Api.ProtocolParameters

Error TxBodyError Source #
Instance details

Defined in Cardano.Api.TxBody

Error TextEnvelopeCddlError Source #
Instance details

Defined in Cardano.Api.SerialiseLedgerCddl

Error OperationalCertIssueError Source #
Instance details

Defined in Cardano.Api.OperationalCertificate

Error LeadershipError Source #
Instance details

Defined in Cardano.Api.LedgerState

Error MinimumUTxOError Source #
Instance details

Defined in Cardano.Api.Fees

Error TxBodyErrorAutoBalance Source #
Instance details

Defined in Cardano.Api.Fees

Error TransactionValidityError Source #
Instance details

Defined in Cardano.Api.Fees

Error ScriptExecutionError Source #
Instance details

Defined in Cardano.Api.Fees

Error e => Error ( FileError e) Source #
Instance details

Defined in Cardano.Api.Error

Low level protocol interaction with a Cardano node

data ByronMode Source #

The Byron-only consensus mode consists of only the Byron era.

This was used on the mainnet before the deployment of the multi-era CardanoMode . It is now of little practical use, though it illustrates how a single-era consensus mode works. It may be sensible to remove this at some stage.

data ConsensusMode mode where Source #

This GADT provides a value-level representation of all the consensus modes. This enables pattern matching on the era to allow them to be treated in a non-uniform way.

data LocalNodeClientProtocols block point tip slot tx txid txerr query m Source #

The protocols we can use with a local node. Use in conjunction with connectToLocalNode .

These protocols use the types from the rest of this API. The conversion to/from the types used by the underlying wire formats is handled by connectToLocalNode .

Constructors

LocalNodeClientProtocols ( LocalChainSyncClient block point tip m) ( Maybe ( LocalTxSubmissionClient tx txerr m ())) ( Maybe ( LocalStateQueryClient block point query m ())) ( Maybe ( LocalTxMonitorClient txid tx slot m ()))

Chain sync protocol

newtype ChainSyncClient header point tip (m :: Type -> Type ) a Source #

A chain sync protocol client, on top of some effect m . The first choice of request is within that m .

Constructors

ChainSyncClient

Fields

Local tx submission

Local state query

newtype LocalStateQueryClient block point (query :: Type -> Type ) (m :: Type -> Type ) a Source #

Constructors

LocalStateQueryClient

Fields

Address

newtype NetworkMagic Source #

NetworkMagic is used to differentiate between different networks during the initial handshake.

Update Proposal

data ByronProtocolParametersUpdate Source #

Constructors

ByronProtocolParametersUpdate

Fields

Vote

Conversions