CROSS Mini Hub
CROSS Mini Hub lets players exchange game items, coins, and CROSS. Integration is one call:
server.getCrossRampShopUrl(lang) is built into the client SDK — no server code needed — and
returns the hub URL to open in a popup. (getCrossRampForgeUrl(lang) takes the same argument and
currently returns the same URL.)
Quick Start
const openShop = async () => {
// Open the window synchronously, inside the click — a window opened after the
// await runs in a later task and popup blockers swallow it.
const popup = window.open("", "CrossRampShop", "width=1024,height=768");
try {
popup.location = await server.getCrossRampShopUrl("en");
} catch (e) {
popup?.close(); // don't leave a blank window behind
showError(e.message); // a guest gets "You must be logged in to Verse8"
}
};The call requires a Verse8-logged-in session; a guest is rejected with
You must be logged in to Verse8.
Balances changed in the hub reach the game as ordinary $asset
updates, so useAsset() re-renders on its own — there is nothing to refresh when the popup closes.
Supported Languages
"en"- English"ko"- Korean"zh"- Chinese (Simplified)"zh-Hant"- Chinese (Traditional)"ja"- Japanese
Last updated on