Bridging Tokens
Overview
The Squid bridge widget allows players to transfer tokens between various blockchains (including Immutable zkEVM).
You can integrate this widget into your game by:
Direct players to their default browser to open the widget.
Displaying the Widget
The Unreal Marketplace module provides a function to generate the Squid Bridge Widget URL, which you can customise with specific configuration options to tailor the experience.
For more details, refer to the Unreal Bridge Tokens documentation.
Direct players to their default browser to open the widget.
void GenerateAndLaunchBridgeLink()
{
FImmutableBridgeQueryParams QueryParams;
QueryParams.ToChainID = TEXT("13371"); // Immutable zkEVM Mainnet
QueryParams.ToTokenAddress = TEXT("YOUR_GAME_ERC20_TOKEN_ADDRESS");
const FString BridgeLink = UImmutableMarketplaceLinkFactory::GenerateBridgeLink
(
EImmutableEnvironment::Sandbox,
QueryParams
);
FPlatformProcess::LaunchURL(*BridgeLink, nullptr, nullptr);
}
Next steps
Congratulations! You've enabled players to bridge tokens from other blockchains to Immutable zkEVM, providing them with another option to fund their wallet.
If you need help with troubleshooting or additional resources click next below.