Backend APIs for accessing an address's transactions, tokens, and NFTs details.
- 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.
To run this project locally and experience its capabilities, follow these simple steps:
-
Clone this repository to your local machine.
-
Install the necessary dependencies using
pnpm install
. -
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. -
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!
- Local Development:
http://localhost:PORT
(ReplacePORT
with the port number configured in your.env
file)
- Fetch User Transactions:
GET /api/fetch-transaction/:address
- Fetch Token Details:
GET /api/fetch-token/:address
- Fetch Token Metadata:
GET /api/fetch-tokenMetaData/:address
- Fetch User NFTs:
GET /api/fetch-nft/:address
- Fetch NFT Metadata:
GET /api/fetch-nftMetaData/:address/:tokenId
- User Registration:
POST /api/register
- User Login:
POST /api/login
- Metamask Login:
POST /api/login-metamask
- Fetch Nonce:
GET /api/nonce