Endpoint: /
Method: GET
Description: Renders the documentation page.
Endpoint: /members/<space>
Method: GET
Description: Fetches unique voters for a given space. Optionally fetches on-chain members and delegates if onchain
parameter is provided.
space
(path parameter):
string
offchain_cursor
(query parameter, optional):
integer
onchain_cursor
(query parameter, optional):
integer
onchain
(query parameter, optional):
string
refresh
(query parameter, optional):
boolean
true
, forces a refresh of the cached data.200 OK
Content-Type: application/json
Description: Returns the list of unique voters, and optionally on-chain members and delegates, with pagination cursors.
{
"Members": {
"@context": "http://daostar.org/schemas",
"type": "DAO",
"name": "Example DAO",
"members": {
"offchain": {
"members": [
{"id": "0x123...", "type": "EthereumAddress"},
{"id": "0x456...", "type": "EthereumAddress"}
],
"offchain_cursor_str": 123456789
},
"onchain": {
"members": [
{"id": "0xabc...", "role": "member", "type": "EthereumAddress"},
{"id": "0xdef...", "role": "delegate", "type": "EthereumAddress"}
],
"onchain_cursor_str": 987654321
}
}
}
}
400 Bad Request
Content-Type: application/json
Description: Returns an error message if an invalid cursor is provided.
{
"error": "Invalid offchain cursor format. Cursor must be an integer."
}
Endpoint: /is_member/<space>
Method: GET
Description: Checks if a given address is a member of the specified DAO space.
URL Parameters:
space
(required): The Snapshot space identifier (e.g., arbitrumfoundation.eth
).Query Parameters:
voter
(required): The Ethereum address to check.onchain
(optional): The on-chain slug for the DAO space (e.g., arbitrum
).Example Request:
GET /is_member/arbitrumfoundation.eth?voter=0xDB6A3e437D6D3F5AC5f7C0D21Ba3F44Fe3A4F3a3&onchain=arbitrum
Example Response:
{ "voter": "0xDB6A3e437D6D3F5AC5f7C0D21Ba3F44Fe3A4F3a3", "offchain": true, "onchain": false, "is_member": true }
URL: /members/ens.eth
Description: Fetches unique off-chain voters for the space "example-space"
.
URL: /members/ens.eth?offchain_cursor=12345
Description: Fetches unique off-chain voters with pagination, starting after cursor 12345
.
URL: /members/ens.eth?onchain=example-slug
Description: Fetches unique off-chain voters and on-chain members/delegates for the specified space and on-chain organization.
URL: /members/ens.eth?offchain_cursor=12345&onchain_cursor=67890&onchain=example-slug
Description: Fetches unique off-chain voters with pagination and on-chain members/delegates with pagination.
URL: /members/ens.eth?refresh=true
Description: Forces a refresh of cached data for the specified space.
URL: /is_member/arbitrumfoundation.eth?voter=0xDB6A3e437D6D3F5AC5f7C0D21Ba3F44Fe3A4F3a3&onchain=arbitrum
Description:Checks if a voter is a member both on onchain and offchain DAO.