Skip to main content
Version: v1

SDK Reference - Swap

Structs


FImmutableSwapQueryParams

Represents the query parameters for generating a swap URL.

  • FString FromTokenAddress The address of the token being swapped from (default: "").
  • FString ToTokenAddress The address of the token being swapped to (default: "").

Static Functions


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.