An example React app using Venly's ConnectSDK.
-
Register an account by following Venly's quickstart guide
-
Follow the authentication guide to obtain your Client ID and setup your redirect URLs
-
Setup your environment variables in
.env
VITE_CLIENT_ID
- your Widget Client IDVITE_ENV
- environment can be eitherproduction
orsandbox
(defaults toproduction
).
- Run
npm install
andnpm run dev
to start local development
- Initialize
VenlyConnect
instance - venlyConnect.ts
- Get wallets - useWallets.ts
- Connect/add wallets - WalletsTable.tsx
- Import wallets between EVM chains - ImportWalletModal.tsx
- Transfer native tokens - SendTransactionModal.tsx
- Sign message - SignMessageModal.tsx
- Sign EIP712 message - SignEip712Modal.tsx
- Execute contract call - ExecuteContractModal.tsx
- Get tokens - useTokens.ts
- Transfer tokens - TransferTokenModal.tsx
- Get NFTs - useNfts.ts
- Transfer NFTs - TransferNftModal.tsx