Skip to main content

Getting Started

Let's face it, most of the UMA DApps out there are just simply forks of the EMP tools project. It is not easy to create a DApp from scratch and the UMA protocol is complex.

The UMA React SDK helps you to build decentralized synthetic applications in React very quickly and without the tears of the EMP tools.

The UMA React SDK gives you:

  • Read only data hooks, used to get any EMP and LSP (WIP) information.

  • EMP UI controls, used to create and manage EMP positions.

  • LSP UI controls(WIP), used to create and manage LSP positions.

  • Prices for collaterals and synthetics, thanks to the UMA API integration.

Install#

You can install using NPM

npm install uma-react

or with Yarn

yarn add uma-react

And install peer dependencies

npm install bnc-onboard ethers @material-ui/core @material-ui/icons web3-utils

or

yarn add bnc-onboard ethers @material-ui/core @material-ui/icons web3-utils

Usage#

import { useEMPProvider } from 'uma-react';

See Hooks section for more details.