Generating the bridge URL
💡Reminder
The following variables are using placeholder values.
Don't forget to replace them with values that are relevant to your application.
ToTokenAddress
is currently set toYOUR_GAME_ERC20_TOKEN_ADDRESS
in the example.
Please refer to the Bridge SDK Reference for more details.
C++
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);
}
Blueprint
- BlueprintUE
- Image
