yarn add aptos @fewcha/web3 @fewcha/web3-react
import Web3Provider from "@fewcha/web3-react";
root.render(
<React.StrictMode>
<Web3Provider>
<App />
</Web3Provider>
</React.StrictMode>,
);
import { ConnectWallet, useWeb3 } from "@fewcha/web3-react";
const { account, balance, isConnected, network, fewcha, martian, currentWallet } = useWeb3();
!isConnected && <ConnectWallet type="list" />
fewcha...
fewcha.aptos...
fewcha.sui...
fewcha.token...