Skip to Content

GET /api/v1/votes/:ensName

Get vote statistics for a specific ENS name. If authenticated, also returns the current user’s vote.

Authentication: Optional (includes userVote when authenticated)

Cache: None

Path Parameters

ParameterTypeRequiredDescription
ensNamestringYesENS name (e.g. example.eth)

Sample Request

curl https://api.grails.app/api/v1/votes/example.eth

Response

// 200 OK { "success": true, "data": { "ensName": "example.eth", "upvotes": 15, "downvotes": 3, "netScore": 12, "userVote": 1 }, "meta": { "timestamp": "2026-04-08T00:00:00.000Z", "version": "1.0.0" } }
FieldTypeDescription
userVotenumber | null1, -1, or null if not authenticated or no vote cast

Error Responses

StatusCodeDescription
404ENS_NAME_NOT_FOUNDENS name not found
500INTERNAL_ERRORFailed to fetch vote statistics
Last updated on