aptoswarcade
v0.2.3
Published
Aptos Warkade
Downloads
43
Readme
Installation
Usage
import AptosWarkade from 'aptoswarcade/src';
import {useWallet} from '@aptos-labs/wallet-adapter-react';
function App() {
const { account, signAndSubmitTransaction } = useWallet();
useEffect(() => {
setAccountAddress(account);
}, [account]);
const setConnectModalOpen = (isOpen: boolean) => {
// open modal here
};
return (
<>
<AptosWarkade
setConnectModalOpen={setConnectModalOpen}
accountAddress={account?.address?.toString()}
signAndSubmitTransaction={signAndSubmitTransaction}
/>
</>
);
}