ONE WALLET SYSTEM / EVERY GAME
Describe your wallet features.
In Add your game, give each optional feature a name, benefit, requirement and activation instructions. You can describe appearances, equipment, access or another effect. Players see the same Wallet features panel on every game.
Choose a supported SOUL, KCAL, stake, CROWN or community requirement for automatic public holding checks. TAZ tiers at 1 and 2 TAZ are also supported. Protocol 4 adds positive liquid RA, positive liquid MAGIC and at least 1 TD. Only requirements used by the approved build are checked. A custom condition is displayed as creator-defined; writing it does not create an automatic check. A checked holding is separate from proof that your game implements its described effect.
Keep login and compatibility in the portal.
The shared Wallet login action opens the central sign-in page and returns players to the game. Your game does not need browser-specific wallet messages. Let guests play while the portal handles wallet setup, support and public holding checks.
Use checked unlocks inside your game.
To use the standard bridge, download the protocol 4 client, bundle it as a local module, select the bridge option in your submission, and enter a build tag. A moderator tests that exact build before the bridge is enabled. Until then, the public feature descriptions remain informational.
import {createEntitlementClient} from './phantasma-entitlements-client-v4.js';
const registration = new URLSearchParams(location.search);
const wallet = registration.has('pg_game') && registration.has('pg_build')
? createEntitlementClient({
game: registration.get('pg_game'),
build: registration.get('pg_build'),
onState: state => {
// True only while a fresh, trusted requirement check grants it.
const canUseSoulFeature = state.state === 'verified'
&& state.entitlements['soul-style'] === true;
// Apply or revoke your optional feature here.
}
}) : null; // Direct/private previews keep guest mode.
// A game button can call wallet?.connect() to focus the portal login/check control.The eleven exact keys are soul-style, kcal-style, stake-style, crown-style, master-style, community-style, taz-style, taz-plus-style, ra-core, magic-core and td-core. Unselected or unavailable checks are false; master-style remains unavailable. The game receives decisions, not a wallet address or balances. Handle expiry, hidden tabs and revocation, and never treat these client-side flags as authority for payouts or transactions.