The aim is to track crypto positions on dex and cex
- Connect to MetaMask and other wallets.
- Retrieve tokens and balances for the connected chain.
- Display all tokens in connected chain
- Testnet: Need to define contract address for each token
- Convert bigInt to formatted number (formatUnits)
- Have Token List : https://tokenlists.org/
- Displays all tokens of a wallet from its address
- Display all tokens in connected chain
- Extend functionality to fetch tokens from multiple chains.
- Retrieve the moment they put the token on the wallet and get the price at that moment.
- Calculate ROI based on historical and current prices.
- A way to keep track of all connected wallets (Create an account)
- Establish connection with CEX APIs. (Binance)
- Retrieve and list available tokens from CEX on our front-end.
- Fetch historical purchase prices for tokens.
- Calculate ROI based on historical and current prices.
- Design and implement the dashboard interface.
- Display tokens and balances from CEX and wallets.
- Implement charts and graphs for price trends.
- Create ROI visualizations per token.
- Develop a consolidated view of investment performance.
- npm init wagmi
- Framework : Next.js
- Template : RainbowKit (For connection button)
- Provider : Infura
- Create an WalletConnect ID: https://cloud.walletconnect.com/sign-in
- Create a Project and give the Project ID
- cd next-rainbowkit
- npm run dev
- Add an alchemyProvider, infuraProvider, or alike to src/wagmi.ts before deploying your project to production to prevent being rate-limited.
- Tailwind: (https://tailwindcss.com/docs/guides/nextjs)
- npm install -D tailwindcss postcss autoprefixer
- npx tailwindcss init -p
- Update Globals.css
- Update tailwind.config.js
- npx create-next-app@latest myproject
- And import the rest:
- npm i wagmi viem
- npm init wagmi
To learn more about Next.js or wagmi, check out the following resources:
- wagmi Documentation – learn about wagmi Hooks and API.
- wagmi Examples – a suite of simple examples using wagmi.
- Next.js Documentation learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.