@metafi/metafi-react-package
v1.2.8
Published
The Metafi Embedded Wallet SDK is a set of methods and components attached to a global `useMetafi` hook that can be used to embed a non-custodial crypto wallet within your app. A full reference can be found [here](https://docs.usemeta.fi/).
Downloads
19
Readme
Metafi Embedded Wallet - React SDK
The Metafi Embedded Wallet SDK is a set of methods and components attached to a global useMetafi
hook that can be used to embed a non-custodial crypto wallet within your app. A full reference can be found here.
Getting Started
First, you will need an API key to get started - sign up for a key here.
Next, install the library via your terminal.
# install via yarn
yarn add @metafi/metafi-react-package
# or
npm i @metafi/metafi-react-package
Next, wrap your top level component as follows with the Metafi provider
import { MetafiProvider, chains } from '@metafi/react-sdk';
function App() {
return (
<MetafiProvider
apiKey={"YOUR_API_KEY"}
secretKey={"YOUR_SECRET_KEY"}
supportedChains={[chains.eth]}
mode={"test"}
options={}
>
<YourComponents>
...
</YourComponents>
</MetafiProvider>
);
};
API Reference
The full API reference can be found in our docs.
Bug Reports
Let us know about any bugs on our Discord. We will respond at the soonest!