Asset

Assets are the main building block of Parcel. The in-game collectible (or NFT) itself.

type Asset {
  id: Int!
  ex_asset_id: String!
  type_id: Int!
  type: AssetType!
  owner_id: Int!
  owner: Wallet!
  name: String
  contract_address_id: Int!
  contract_address: ContractAddress!
  media_id: Int
  media: Media
  latest_listing: Listing
  latest_sale: Sale
  game: Game!
  collection: Collection!
  traits: [Trait!]
}

Fields

Asset.collection Collection!

The Collection object of the collection with which the asset is associated.

Asset.contract_address ContractAddress!

The ContractAddress object of the collection to which the asset belongs.

Asset.contract_address_id Int!

The contract address identifier of the collection to which the asset belongs.

Asset.ex_asset_id String!

The external identifier of the asset. Usually this is the token id.

Asset.game Game!

The Game object of the game with which the asset is associated.

Asset.id Int!

A unique identifier.

Asset.latest_listing Listing

The Listing object of the most recent, active listing of the asset, if one exists.

Asset.latest_sale Sale

The Sale object of the most recent sale of the asset, if one exists.

Asset.media Media

The Media object of the asset.

Asset.media_id Int

The media identifier of the asset.

Asset.name String

The name given to the asset in the asset's metadata.

Asset.owner Wallet!

The Wallet object of the wallet in which the asset is stored (based on Asset.owner_id).

Asset.owner_id Int!

The owner identifier of the wallet in which the asset is stored.

Asset.traits [Trait!]

A list of traits from the asset's on-chain metadata.

Asset.type AssetType!

The AssetType object of the asset (based on Asset.type_id).

Asset.type_id Int!

The type identifier of the asset. See Asset Types - Queries to retrieve a list of possible values.