Skip to main content
Version: v1

Bridging Tokens

In this step, you'll integrate the bridge flow, enabling players to move tokens to and from Immutable zkEVM. This provides an additional method for players to add tokens to their wallets, complementing the on-ramp and swap flows and ensuring they have enough funds to purchase NFTs in your marketplace.
Bridging Tokens in UnrealBridging Tokens in Unreal
💡Prerequisite step
Before continuing with this step, ensure you have completed the previous Swapping Tokens step of this tutorial series.

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.


Related content