blockfrost-api-0.4.0.0: API definitions for blockfrost.io
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Types.Cardano.Assets

Description

Responses for Cardano asset queries

Synopsis

Documentation

data AssetInfo Source #

Asset information, result of listing assets

Instances

Instances details
Eq AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetInfo :: Type -> Type #

ToJSON AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasQuantity AssetInfo Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasAsset AssetInfo Text Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetInfo = D1 ('MetaData "AssetInfo" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetInfoAsset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_assetInfoQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity)))

data AssetDetails Source #

Details of an asset

Constructors

AssetDetails 

Fields

Instances

Instances details
Eq AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetDetails :: Type -> Type #

ToJSON AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasQuantity AssetDetails Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasAsset AssetDetails Text Source # 
Instance details

Defined in Blockfrost.Lens

HasPolicyId AssetDetails PolicyId Source # 
Instance details

Defined in Blockfrost.Lens

HasMintOrBurnCount AssetDetails Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasInitialMintTxHash AssetDetails TxHash Source # 
Instance details

Defined in Blockfrost.Lens

HasFingerprint AssetDetails Text Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainMetadata AssetDetails (Maybe AssetOnChainMetadata) Source # 
Instance details

Defined in Blockfrost.Lens

HasMetadata AssetDetails (Maybe AssetMetadata) Source # 
Instance details

Defined in Blockfrost.Lens

HasAssetName AssetDetails (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetDetails = D1 ('MetaData "AssetDetails" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetDetails" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_assetDetailsAsset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_assetDetailsPolicyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PolicyId)) :*: (S1 ('MetaSel ('Just "_assetDetailsAssetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_assetDetailsFingerprint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "_assetDetailsQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity) :*: S1 ('MetaSel ('Just "_assetDetailsInitialMintTxHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxHash)) :*: (S1 ('MetaSel ('Just "_assetDetailsMintOrBurnCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "_assetDetailsOnchainMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AssetOnChainMetadata)) :*: S1 ('MetaSel ('Just "_assetDetailsMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AssetMetadata)))))))

data AssetOnChainMetadata Source #

On-chain metadata stored in the minting transaction under label 721, community discussion around the standard ongoing at https://github.com/cardano-foundation/CIPs/pull/85

Constructors

AssetOnChainMetadata 

Fields

Instances

Instances details
Eq AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetOnChainMetadata :: Type -> Type #

ToJSON AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasName AssetOnChainMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasImage AssetOnChainMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainMetadata AssetDetails (Maybe AssetOnChainMetadata) Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetOnChainMetadata = D1 ('MetaData "AssetOnChainMetadata" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetOnChainMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetOnChainMetadataName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_assetOnChainMetadataImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data AssetMetadata Source #

Asset metadata obtained from Cardano token registry https://github.com/cardano-foundation/cardano-token-registry

Constructors

AssetMetadata 

Fields

Instances

Instances details
Eq AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetMetadata :: Type -> Type #

ToJSON AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasName AssetMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasDescription AssetMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasUrl AssetMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasMetadata AssetDetails (Maybe AssetMetadata) Source # 
Instance details

Defined in Blockfrost.Lens

HasTicker AssetMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasLogo AssetMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasDecimals AssetMetadata (Maybe Int) Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetMetadata = D1 ('MetaData "AssetMetadata" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetMetadata" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_assetMetadataName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_assetMetadataDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_assetMetadataTicker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "_assetMetadataUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "_assetMetadataLogo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_assetMetadataDecimals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

data AssetHistory Source #

History of an asset

Constructors

AssetHistory 

Fields

Instances

Instances details
Eq AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetHistory :: Type -> Type #

ToJSON AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAmount AssetHistory Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasTxHash AssetHistory TxHash Source # 
Instance details

Defined in Blockfrost.Lens

HasAction AssetHistory AssetAction Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetHistory = D1 ('MetaData "AssetHistory" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetHistory" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetHistoryTxHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxHash) :*: (S1 ('MetaSel ('Just "_assetHistoryAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity) :*: S1 ('MetaSel ('Just "_assetHistoryAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AssetAction))))

data AssetAction Source #

Action of the asset. Created (Minted) or destroyed (Burned).

Constructors

Minted 
Burned 

Instances

Instances details
Eq AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetAction :: Type -> Type #

ToJSON AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAction AssetHistory AssetAction Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetAction = D1 ('MetaData "AssetAction" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "Minted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Burned" 'PrefixI 'False) (U1 :: Type -> Type))

data AssetTransaction Source #

Transaction of an asset

Constructors

AssetTransaction 

Fields

Instances

Instances details
Eq AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetTransaction :: Type -> Type #

ToJSON AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasTxHash AssetTransaction TxHash Source # 
Instance details

Defined in Blockfrost.Lens

HasTxIndex AssetTransaction Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasBlockHeight AssetTransaction Integer Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetTransaction = D1 ('MetaData "AssetTransaction" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetTransaction" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetTransactionTxHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxHash) :*: (S1 ('MetaSel ('Just "_assetTransactionTxIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "_assetTransactionBlockHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))))

data AssetAddress Source #

An address containing specific asset

Constructors

AssetAddress 

Fields

Instances

Instances details
Eq AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Show AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep AssetAddress :: Type -> Type #

ToJSON AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

FromJSON AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAddress AssetAddress Address Source # 
Instance details

Defined in Blockfrost.Lens

HasQuantity AssetAddress Quantity Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep AssetAddress = D1 ('MetaData "AssetAddress" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.4.0.0-TZ5v4gSpgE2fj56w8NQGB" 'False) (C1 ('MetaCons "AssetAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetAddressAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address) :*: S1 ('MetaSel ('Just "_assetAddressQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity)))