import { Callout, Button } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/react-helpers'; import { useEffect } from 'react'; import { rest } from '../lib/connectors'; import { LocalStorage } from '@vegaprotocol/storage'; export function Index() { // Get keys from vega wallet immediately useEagerConnect(); const { publicKey, publicKeys, selectPublicKey } = useVegaWallet(); return (
Current: {publicKey.pub}
} {publicKeys?.length && ( )}{JSON.stringify(publicKeys, null, 2)}