Provider Initialisation
This function does not trigger any UI elements
Description
The base component for the Metafi SDK which takes in your API Key, unique user ID, and other options as Arguments. Call this function as soon as your initial scene is loaded, before any other functions are invoked.
Details
Signature
Arguments
Parameter | Type | Definition |
---|---|---|
| String | Your API Key. This can be displayed publicly |
| String | Your Secret Key. Keep this securely and do not expose. |
| dynamic | A list of options to customise the look and feel of how the Metafi wallet looks. Here you can pass in a custom logo, as well as theme styling options. More information can be found in the UI customisation section. |
| List<Metafi.Unity.Chain> | An array of chains supported by your application. Please refer to the section on Chains for more information on what chains we support. |
| List<Metafi.Unity.Token> | An array of custom tokens that you want supported in your users wallet. To pass a custom token, you will need to use the You can refer to the example below to understand how to register Wrapped Ethereum in the wallet. |
| bool | Specify whether to use MetafiSSO or not. Set to |
Return Value
N/A
Example
Last updated