This is a simple application built with PAPI to quickly get started.
It features:
- Loading chain information
- Integrating with wallets with PolkaHub
- Sending a transfer
- Multi-chain (Polkadot and Paseo)
It's not meant as "the official" template, but rather as a quick example to get something running.
Fork the repository, then run it with:
pnpm i
pnpm devIt's based on a simple Vite + React + React Query + Shadcn/ui project:
-
App.tsxHolds the general layout of the application
-
client.tsSets up the connection to the chain with the PAPI client
-
account.tsSets up wallet integration with polkahub
-
connectionSets up the connection configuration for the two possible providers: smoldot and websocket.
-
componentsHolds each of the different components used throughout the app: Balances, Transfer, Chain information, Block number, etc.
-
libGeneral-use utilities
-
queriesReact queries shared between multiple components