Create a guest player
Last updated
Last updated
Guest players are a pattern common in mobile games that allow your players to open up the game, play, and even spend without having to first create an account.
Guest players receive an on-chain wallet, and can own items on-chain, but have limited functionality compared to registered players, as shown in the following diagram. At a later point in the player’s journey, the guest player can be linked to their registered player, gaining full privileges.
Guest player | Registered player | |
---|---|---|
When the game is initialized, create a guest player. The playerId should be persisted with the device.
Now, the playerId can be used to make other calls to the platform API, such as granting items.
Play games
✅
✅
In-game marketplace
✅
✅
Web marketplace
❌
✅
Account management
❌
✅
Withdraw MYTH
❌
✅