node index.jsYou should see: "Vesting API running on port 3000"
Open your browser or use curl to test:
Browser Test:
http://localhost:3000/api/user/0x1234567890abcdef1234567890abcdef12345678/portfolio
Curl Test:
curl http://localhost:3000/api/user/0x1234567890abcdef1234567890abcdef12345678/portfolio{
"total_locked": 100,
"total_claimable": 20,
"vaults": [
{ "type": "advisor", "locked": 80, "claimable": 15 },
{ "type": "investor", "locked": 20, "claimable": 5 }
],
"address": "0x1234567890abcdef1234567890abcdef12345678"
}✅ total_locked = 100
✅ total_claimable = 20
✅ Endpoint path = /api/user/:address/portfolio
✅ Method = GET
- Server starts successfully
- Endpoint responds with correct data
- Response format matches requirements
- Acceptance criteria met