Skip to content

Bkmakwana2002/Alchemy-API

Repository files navigation

Alchemy-API

Backend APIs for accessing an address's transactions, tokens, and NFTs details.

Technologies Used

  • Backend: The server is constructed using Node.js and the Express framework, ensuring robust and efficient functionality. MongoDB is employed as the database, and user authentication is handled via JSON Web Tokens (JWT) and signature verification using metamask and ethers. Also using express-rate-limit for protecting all APIs from DDOS attacks.

Getting Started

To run this project locally and experience its capabilities, follow these simple steps:

  1. Clone this repository to your local machine.

  2. Install the necessary dependencies using pnpm install.

  3. Create a .env file in the root folders. Copy the contents from .env-sample to these files, and fill in the essential API keys and URLs with your credentials.

  4. Start the backend server with the command node index.js.

Feel free to customize, extend, and improve this project according to your needs. Happy searching!

URLs

Base URL

  • Local Development: http://localhost:PORT (Replace PORT with the port number configured in your .env file)

Endpoints

Transactions

  • Fetch User Transactions:
    • GET /api/fetch-transaction/:address

Tokens

  • Fetch Token Details:
    • GET /api/fetch-token/:address
  • Fetch Token Metadata:
    • GET /api/fetch-tokenMetaData/:address

NFTs

  • Fetch User NFTs:
    • GET /api/fetch-nft/:address
  • Fetch NFT Metadata:
    • GET /api/fetch-nftMetaData/:address/:tokenId

User

  • User Registration:
    • POST /api/register
  • User Login:
    • POST /api/login
  • Metamask Login:
    • POST /api/login-metamask
  • Fetch Nonce:
    • GET /api/nonce

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published