Skip to content

sscodez/Aptos_Node_Indexing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aptos Blockchain Indexing

Description

This project provides an API to retrieve data from the Aptos Blockchain. It allows users to access coin activities, token activities, and user transactions. The API utilizes the Aptos Labs Indexer to fetch the data and returns it in a JSON format.

API Routes

Root

  • Route: /
  • Description: Displays the main page with links to different data endpoints.
  • Method: GET
  • Response: HTML

User Transactions

  • Route: /user-transactions
  • Description: Retrieves user transactions based on the specified contract address.
  • Method: GET
  • Response: JSON
  • Query Parameters:
    • contractAddress: The contract address used for filtering the transactions.

Coin Activities

  • Route: /coin-activities
  • Description: Retrieves coin activities based on the specified contract address.
  • Method: GET
  • Response: JSON
  • Query Parameters:
    • contractAddress: The contract address used for filtering the activities.

Token Activities

  • Route: /token-activities
  • Description: Retrieves token activities based on the specified contract address.
  • Method: GET
  • Response: JSON
  • Query Parameters:
    • contractAddress: The contract address used for filtering the activities.

Setup and Running

  1. Clone the repository:
git clone https://github.com/sscodez/Aptos_Node_Indexing
  1. Install the required dependencies:
npm install
  1. Start the server:
npm start
  1. Access the API endpoints using the provided routes.

Contributing

Contributions are welcome! If you find any issues or would like to enhance the project, feel free to open a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

  • Aptos Labs for providing the blockchain indexing service.
  • Express for the web application framework.
  • Apollo Client for interacting with the GraphQL API.
  • GraphQL for querying the Aptos Blockchain data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published