Skip to content

Im-Madhur-Gupta/avail-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Avail Explorer

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/.

Features

  • 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, and refetchInterval in queries.

Tech Stack

  • 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

Getting Started

Follow these steps to set up the project locally:

1. Install Dependencies

Ensure you have yarn installed. Then run:

yarn

2. Set Up Environment Variables

The application requires specific environment variables. Use the .env.example file as a reference to create a .env.local file with the necessary values.

Required Environment Variables:

  • 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

3. Run the Application

Start the application in development mode:

yarn dev

UI Screenshots

Balance Transfer Form

1

Data Submission Form

3

Real-time Action Tracking

4

Action History Page

6

Action Data Lookup Page

5

About

Explorer for Avail Network. ๐Ÿ“Š

Resources

License

Stars

Watchers

Forks

Languages