getAssets

Call this function to get the current NFTs for the user across all blockchains.

Example Usage

/**
 * Gets the player's NFTs.
 *
 */
const getAssetsResponse = await hallidayClient.getAssets(userInGameId)

Inputs

NameTypeDescription
userInGameIdstringUser's id in your application (must be unique)

Outputs

Promise to a GetAssetsResponse object.

NameTypeDescription
num_assetsnumberNumber of different ERC 721 tokens in user's wallet
assetsArray of ERC-721 Token DataDetails of ERC 721 tokens owned by user

ERC-721 Token Data Format

NameTypeDescription
blockchain_typestringBlockchain this NFT exists on
collection_addressstringContract address of this NFT
token_idstringToken Id of this NFT