Skip to main content
Version: v2

Unity Marketplace Reference

This page guides you through integrating the Marketplace package into your Unity game using the Immutable Unity SDK.

Information includes method descriptions, parameters and return types.
sdk referencesdk reference
đź’ˇWHO IS THIS FOR?
Developers building a game in Unity.

Generates a URL for the on-ramp flow.

Method parameters


EnvironmentenvironmentREQUIRED

Specifies the environment (Sandbox or Production).

stringemailREQUIRED

The user's email address, pre-filled in the on-ramp flow.

stringwalletAddressREQUIRED

The user's wallet address, where tokens will be sent.

OnRampQueryParamsqueryParams

The query parameters for the on-ramp flow. Uses default values if not specified.

See OnRampQueryParams for more information.

Dictionary<string, string>extraQueryParams

Optional additional query parameters. See Transak docs for possible fields.

If extraQueryParams includes any fields that are already defined in , the values 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


string

The generated on-ramp URL.


Generates a link for the swap flow.

Method parameters


EnvironmentenvironmentREQUIRED

Specifies the environment (Sandbox or Production).

stringpublishableKeyREQUIRED

The publishable key obtained from Immutable Hub. See API keys for more details.

SwapQueryParamsqueryParams

The query parameters for the swap flow. Uses default values if not specified.

See SwapQueryParams for more information.

Returns


string

The generated swap URL.


Generates a link for the bridge flow.

Method parameters


EnvironmentenvironmentREQUIRED

Specifies the environment (Sandbox or Production).

BridgeQueryParamsqueryParams

The query parameters for the bridge flow. Uses default values if not specified.

See BridgeQueryParams for more information.

Returns


string

The generated bridge URL.