Documents
api-metadata
api-metadata
Type
External
Status
Published
Created
Feb 24, 2026
Updated
Feb 24, 2026
Source
View

Metadata#

Getting metadata#

WA.metadata: unknown | undefined

The metadata is an object generated from the administration. The play service and the front must be agnostic of the data on this object.

In the SAAS case we send the list of NFTS own by the user:

{
    "player" {
        "nfts" [
            {
                "contractAddress": string,
                "nfts": [
                    {
                        "tokenId": string,
                        "spriteUrl": string|undefined
                    },
                    ...
                ]
            },
            ...
        ]
    }
}

Example:

WA.onInit().then(() => {
    console.log('Current metadata: ', WA.metadata);
});