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
apiKey
String
Your API Key. This can be displayed publicly
secretKey
String
Your Secret Key. Keep this securely and do not expose.
options
dynamic
supportedChains
List<Metafi.Unity.Chain>
customTokens
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 Metafi.Unity.Token
constructor to generate a new token. The format of the inputs are as follows:
metafiSSO
bool
Specify whether to use MetafiSSO or not. Set to false
if you are using your own custom login mechanism.
Return Value
N/A
Example
Last updated