βοΈAccount Linking & On-Chain Balance Loading
SolidX Accounts not only manages user aliases, Telegram integration, and balances, but also establishes a secure linking chain that ensures correct on-chain balances are always loaded during gameplay.
This linking chain is: π Wallet β Unique SolidX Account β Unique Telegram Link
This design enforces one-to-one mapping between wallet, SolidX Account, and Telegram account.
π§© Core Linking Rules
One SolidX Account per Wallet
Each SolidX Account is tied to exactly one cryptocurrency wallet.
This wallet is the userβs on-chain identity, holding funds and transaction history.
One Telegram Account per SolidX Account
Each SolidX Account can only link to one Telegram profile.
Prevents multiple wallets or accounts from sharing the same Telegram user.
Resulting Chain
The full chain ensures uniqueness: Wallet β SolidX Account β Telegram Account
Guarantees every Telegram user is mapped to a single wallet via their SolidX Account.
βοΈ How On-Chain Balance Loading Works
User starts in Telegram
User opens an xgame.io game via the XGame Bot mini app.
The bot checks the Telegram β SolidX Account link.
Wallet resolution
The SolidX Account resolves to the exact wallet linked to it.
No confusion even if the user owns multiple wallets.
On-chain balance retrieval
The platform queries the blockchain for the walletβs balance.
This becomes the in-game balance, shared across all xgame.io games.
Deposits/withdrawals managed via the Account Frontend directly update this on-chain balance.
β οΈ Withdrawals require the original wallet connection. They cannot be executed inside Telegram.
Seamless gameplay
The verified balance is loaded.
User can play, chat with their alias, and interact in games.
On-chain actions (deposits/withdrawals) remain wallet-only for security.
π Benefits for Users
Security & Simplicity β Prevents unauthorized access or wallet mix-ups.
Consistency β Alias is the same across affiliates, chats, and games.
Accessibility β After linking once, games launched from Telegram auto-load the correct user state.
π Linking & Unlinking Behavior
On Linking (frontend β backend flow)
Backend verifies ownership of the Telegram account.
Stores the mapping: Telegram Account β SolidX Account β Wallet.
On Unlinking (via frontend)
The database entry is deleted, removing the Telegram β SolidX connection.
Telegram itself may still show as βconnected,β but the link no longer exists on our side.
Result: Mini apps cannot be played until re-linked.
Last updated