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.
- Route:
/
- Description: Displays the main page with links to different data endpoints.
- Method: GET
- Response: HTML
- 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.
- 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.
- 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.
- Clone the repository:
git clone https://github.com/sscodez/Aptos_Node_Indexing
- Install the required dependencies:
npm install
- Start the server:
npm start
- Access the API endpoints using the provided routes.
Contributions are welcome! If you find any issues or would like to enhance the project, feel free to open a pull request.
This project is licensed under the MIT License.
- 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.