The goal of this assessment is to evaluate your ability to:
Work with Web3 technologies and integrate blockchain functionality into a decentralized application (dApp).
-
Create a New API Endpoint
-
Add a new API endpoint in
index.jsnamed:[Name]ApiTest
-
-
Smart Contract Interaction
-
Select any pre-deployed or public smart contract (mainnet or testnet).
-
Fetch some data (any useful information such as balance, contract state, or public variables).
-
The logic should fetch data through your new API endpoint.
-
-
Output
- The result should be printed to the console.
- No need for complex UI or data persistence
- just demonstrate that the data was fetched successfully.
Once completed, submit one of the following:
- short video recording your work.
- screenshots showing the API call and console result.
- Github Link where your assessment result were pushed.
- Estimated time to complete: 30–60 minutes.
You may use any blockchain provider such as:
- ethers.js
- web3.js
- Any public RPC provider (Infura, Alchemy, QuickNode, etc.)
Keep your code clean, simple, and easy to review.
Handle errors gracefully where possible.
To run the project locally:
# Clone the repository (if provided)
git clone [repo-url]
# Move into the project directory
cd [project-folder]
# Install dependencies
npm install
# Start the server
npm startcurl localhost:4015/api/efoutput
{"address":"0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe","label":"Ethereum Foundation","balanceWei":"10774450567588229957307","balanceEth":"10774.450568","block":"latest","rpc":"https://eth.llamarpc.com"}/ef Fetches the ETH balance of the Ethereum Foundation address via JSON-RPC