blockfrost-api-0.11.0.0: API definitions for blockfrost.io
Safe HaskellSafe-Inferred
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
FromJSON AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetInfo Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAsset AssetInfo Text Source # 
Instance details

Defined in Blockfrost.Lens

HasQuantity AssetInfo Quantity 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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
FromJSON AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetDetails Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAsset AssetDetails Text Source # 
Instance details

Defined in Blockfrost.Lens

HasFingerprint AssetDetails Text Source # 
Instance details

Defined in Blockfrost.Lens

HasInitialMintTxHash AssetDetails TxHash Source # 
Instance details

Defined in Blockfrost.Lens

HasMintOrBurnCount AssetDetails Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasPolicyId AssetDetails PolicyId Source # 
Instance details

Defined in Blockfrost.Lens

HasQuantity AssetDetails Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasAssetName AssetDetails (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasMetadata AssetDetails (Maybe AssetMetadata) Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainMetadataExtra AssetDetails (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainMetadataValue AssetDetails (Maybe Value) Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainStandardMetadata AssetDetails (Maybe AssetOnChainMetadata) 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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 "_assetDetailsOnchainMetadataValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)))) :*: (S1 ('MetaSel ('Just "_assetDetailsOnchainStandardMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AssetOnChainMetadata)) :*: (S1 ('MetaSel ('Just "_assetDetailsMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AssetMetadata)) :*: S1 ('MetaSel ('Just "_assetDetailsOnchainMetadataExtra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))))

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
FromJSON AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetOnChainMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasDescription AssetOnChainMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasFiles AssetOnChainMetadata (Maybe [MetadataMediaFile]) Source # 
Instance details

Defined in Blockfrost.Lens

HasImage AssetOnChainMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasMediaType AssetOnChainMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasName AssetOnChainMetadata (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasOnchainStandardMetadata 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" 'False) (C1 ('MetaCons "AssetOnChainMetadata" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_assetOnChainMetadataName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_assetOnChainMetadataDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "_assetOnChainMetadataImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "_assetOnChainMetadataMediaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_assetOnChainMetadataFiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MetadataMediaFile]))))))

data MetadataMediaFile Source #

Additional media files (accordingly to CIP25 and CIP68)

Constructors

MetadataMediaFile 

Fields

Instances

Instances details
FromJSON MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Generic MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Associated Types

type Rep MetadataMediaFile :: Type -> Type #

Show MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasFiles AssetOnChainMetadata (Maybe [MetadataMediaFile]) Source # 
Instance details

Defined in Blockfrost.Lens

HasMediaType MetadataMediaFile (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasName MetadataMediaFile (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasSrc MetadataMediaFile (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

type Rep MetadataMediaFile Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

type Rep MetadataMediaFile = D1 ('MetaData "MetadataMediaFile" "Blockfrost.Types.Cardano.Assets" "blockfrost-api-0.11.0.0-2jNq3H6sEubDGpTeuodF8r" 'False) (C1 ('MetaCons "MetadataMediaFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "_metadataMediaFileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "_metadataMediaFileMediaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_metadataMediaFileSrc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe 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
FromJSON AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetMetadata Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasDescription AssetMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasName AssetMetadata Text Source # 
Instance details

Defined in Blockfrost.Lens

HasDecimals AssetMetadata (Maybe Int) Source # 
Instance details

Defined in Blockfrost.Lens

HasLogo 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

HasUrl AssetMetadata (Maybe Text) 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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
FromJSON AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetHistory Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasAction AssetHistory AssetAction Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount AssetHistory Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasTxHash AssetHistory TxHash 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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
FromJSON AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetAction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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
FromJSON AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToSample AssetTransaction Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

HasBlockHeight AssetTransaction Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasBlockTime AssetTransaction POSIXTime Source # 
Instance details

Defined in Blockfrost.Lens

HasTxHash AssetTransaction TxHash Source # 
Instance details

Defined in Blockfrost.Lens

HasTxIndex 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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) :*: S1 ('MetaSel ('Just "_assetTransactionBlockTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime))))

data AssetAddress Source #

An address containing specific asset

Constructors

AssetAddress 

Fields

Instances

Instances details
FromJSON AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

ToJSON 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 #

Show AssetAddress Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Assets

Eq 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.11.0.0-2jNq3H6sEubDGpTeuodF8r" 'False) (C1 ('MetaCons "AssetAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "_assetAddressAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address) :*: S1 ('MetaSel ('Just "_assetAddressQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity)))