SDK Reference - Swap
Structs
FImmutableSwapQueryParams
Represents the query parameters for generating a swap URL.
FStringFromTokenAddressThe address of the token being swapped from (default: "").FStringToTokenAddressThe address of the token being swapped to (default: "").
Static Functions
UImmutableMarketplaceLinkFactory::GenerateSwapLink
Generates a URL for the on-ramp flow.
Method parameters
EImmutableEnvironmentEnvironmentREQUIRED
Specifies the environment (Sandbox or Production).
FStringPublishableKeyREQUIRED
The publishable key obtained from Immutable Hub. See Immutable zkEVM ApiKeys for more details.
FImmutableSwapQueryParamsQueryParamsREQUIRED
The query parameters for the swap flow. Uses default values if not specified.
Returns
FString
The generated swap URL.