Unity Marketplace Reference
Information includes method descriptions, parameters and return types.
GenerateOnRampLink​
Generates a URL for the on-ramp flow.
Method parameters
Specifies the environment (Sandbox or Production).
The user's email address, pre-filled in the on-ramp flow.
The user's wallet address, where tokens will be sent.
The query parameters for the on-ramp flow. Uses default values if not specified.
See OnRampQueryParams for more information.
Optional additional query parameters. See Transak docs for possible fields.
If extraQueryParams
includes any fields that are already defined in queryParams
will take precedence. For example, if extraQueryParams
contains "defaultFiatAmount", it will be ignored and the value from queryParams.DefaultFiatAmount
will be used instead.
Returns
The generated on-ramp URL.
GenerateSwapLink​
Generates a link for the swap flow.
Method parameters
Specifies the environment (Sandbox or Production).
The publishable key obtained from Immutable Hub. See API keys for more details.
The query parameters for the swap flow. Uses default values if not specified.
See SwapQueryParams for more information.
Returns
The generated swap URL.
GenerateBridgeLink​
Generates a link for the bridge flow.
Method parameters
Specifies the environment (Sandbox or Production).
The query parameters for the bridge flow. Uses default values if not specified.
See BridgeQueryParams for more information.
Returns
The generated bridge URL.