@metafi/metafi-react-package

1.2.8 • Public • Published

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!

Related Links

Dependencies (22)

Dev Dependencies (17)

Package Sidebar

Install

npm i @metafi/metafi-react-package

Weekly Downloads

13

Version

1.2.8

License

none

Unpacked Size

408 kB

Total Files

4

Last publish

Collaborators

  • arvindbr95
  • metafi-organisation