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 props.
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. |
| Array | An array of chains supported by your application. Please refer to the section on Chains for more information on what chains we support. |
| Array | An array of custom tokens that you want supported in your users wallet. Please refer to the section on registering a custom token for more information. |
| Object | 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. |
| Object | Specify options related to metafiSSO. Sample object: |
Return Value
N/A
Example
Last updated