Structures

The following structures are available globally.

  • Nft

    General NFT data structure representing any NFT

    See more

    Declaration

    Swift

    public struct Nft : Codable

    Parameters

    id

    NFT Object Id.

    symbol

    NFT symbol.

    options

    NFT options.

    definitions

    List of NFT property definitions.

    transferable

    allow transfer of NFT data instances to other accounts.

    currentSupply

    Current supply of this NFT.

  • Represents data of a NFT

    See more

    Declaration

    Swift

    public struct NftData<T> : Codable where T : NftModel

    Parameters

    id

    Id of the data

    nftId

    Id of the NFT that this data belongs to

    owner

    Id of owner account of the NFT

    data

    Data of the NFT parsed as model specified by generic parameter

  • RawNft data model that only contains values of properties. This model should be converted to a specific NftModel that contains specification for each property

    See more

    Declaration

    Swift

    public struct RawNft : NftModel
  • Property wrapper for properties of structs conforming to NftModel protocol Used to generate NftDataType from marked properties (is property of a NFT modifiable and unique)

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct NftProperty<T> : Codable where T : Decodable, T : Encodable
  • skip, cannot create monitored asset, also only miner account can publish feeds asset_create_op has account_id_type fee_payer()const { return monitored_asset_opts.valid() ? account_id_type() : issuer; } therefore throws Missing Active Authority

    See more

    Declaration

    Swift

    public struct AssetPublishFeedOperation : Operation