👉 Visit react-terra.dev for full docs
[Hooks only at the moment. Component library coming soon]
yarn add @react-terra/hooks @terra-money/terra.js
@terra-money/wallet-provider rxjs
Follow the instructions from https://github.com/terra-money/wallet-provider to wrap your app in the wallet provider:
import {
NetworkInfo,
WalletProvider,
WalletStatus,
getChainOptions,
} from '@terra-money/wallet-provider';
import React from 'react';
import ReactDOM from 'react-dom';
// getChainOptions(): Promise<{ defaultNetwork, walletConnectChainIds }>
getChainOptions().then((chainOptions) => {
ReactDOM.render(
<WalletProvider {...chainOptions}>
<YOUR_APP />
</WalletProvider>,
document.getElementById('root'),
);
});