Items
Last updated
Last updated
Mints an item of a given item type to the specified player. If name, description, image, or attributes are not provided, the item will be granted with the default metadata configured on the item type. On-chain, granting an item means an NFT is minted from the collection associated with the item type to the wallet of the given player.
/v1/items
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with
Unique identifier of the item
The id of the player who owns the item
The on-chain unique identifier of the item within its given collection. The token id of the item is displayed in the Mythical Marketplace.
1
Retrieve a list of items. Supports filtering, sorting, and pagination.
/v1/items/search
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with
An array of items ids to search for.
An array of item type ids to find matching item instances for
An array of player ids who own the items you are interested in searching for
The current blockchain state of the items you are searching for
The maximum number of items you would like returned in this search
10
How many records should be skipped in the result set before returning results?
10
Retrieve a single item by id.
/v1/items/{itemId}
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with
Update an item
/v1/items/{itemId}
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with
On-chain, this will transfer the item between the wallets of the provided players.
/v1/items/{itemId}/transfer
The id of the item to transfer
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with
Player from which the item will be transferred
Player to which the item will be transferred
On-chain, this will irreversably transfer the item to the zero address (0x000...), effectively destroying the item.
/v1/items/{itemId}/burn
Bearer token to be passed for Authorization. Can be retrieved from v1/auth/token
Identifier for the environment that this request should interact with