Avail Explorer allows users to interact seamlessly with the Avail Network. Users can view on-chain actions (extrinsics
), submit data, and perform balance transfers with ease.
Live version of the app can be accessed here: https://availexplorer.vercel.app/.
- Wallet Connection:
- Supports Polkadot wallet with status checks and automatic reconnection if the wallet is already connected.
- Perform Actions:
- Allows users to perform actions like balance transfers and data submissions.
- Includes form validation, fee estimation, transaction status updates.
- Real-time Action Tracking:
- Leverages a WebSocket connection to the Avail RPC for live updates.
- Action History Page:
- Displays a userโs past actions with infinite scroll for smooth navigation.
- Action Data Lookup Page:
- Fetches details of an action using a transaction hash.
- Lists out call parameters with their decoded values, presented alongside relevant action data.
- Optimized Fetch Queries:
- Optimized data fetching by using appropriate values for
gcTime
,staleTime
, andrefetchInterval
in queries.
- Optimized data fetching by using appropriate values for
- Framework:
Next.js with TypeScript
- Styling:
TailwindCSS
- Components:
Shadcn
- State Management:
Zustand
- API Calls:
React Query
,graphql-request
- Blockchain:
avail-js-sdk
,@polkadot/api
,@polkadot/extension-dapp
Follow these steps to set up the project locally:
Ensure you have yarn
installed. Then run:
yarn
The application requires specific environment variables. Use the .env.example
file as a reference to create a .env.local
file with the necessary values.
NEXT_PUBLIC_AVAIL_INDEXER_URL
:- Avail's GraphQL-based Indexer API Endpoint
- For development environment use:
https://turing-indexer.avail.so/
NEXT_PUBLIC_AVAIL_RPC_WS_URL
:- Avail's RPC WebSocket Endpoint
- For development environment use:
wss://turing-rpc.avail.so/ws
Start the application in development mode:
yarn dev




