Routes
Endpoints
Berachain Mainnet & Berachain bArtio B2
https://beravote.com/api/
Chain
Chains Definition
GET /api/chains/definition
Retrieve metadata for all supported chains.
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Response
[
{
"network": "ethereum",
"decimals": 18,
"name": "Ethereum",
"supportAssetTypes": [
"evm_erc20"
],
"symbol": "ETH"
},
{
"network": "solana",
"decimals": 18,
"name": "Solana",
"supportAssetTypes": [
"svm_token_extension"
],
"symbol": "SOL"
}
...
]Supported networks
GET /api/networks
Get the list of the supported and active networks
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Response
Home
Popular Proposals
GET /api/home/hottest
Find most active proposals along all spaces
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Response
Proposal
Proposal information by cid
GET /api/proposal/:proposalId
Get proposal information by its IPFS cid
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalId
string
Proposal ID
Response
Proposal's comments
GET /api/proposal/:proposalCid/comments
Get proposal comments by its IPFS cid
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalCid
string
Proposal ID
Response
Proposal's Votes
GET /api/proposal/:proposalCid/votes
Get proposal votes by its IPFS cid
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalCid
string
Proposal ID
Response
Space Votes
GET /api/space/:spaceName/votes
Get space votes
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
spaceName
string
space ID
Response
Space Stats
GET /api/space/:spaceName/stats
Get space most active voters and and richest voters
Headers
Content-Type
application/json
Authorization
Bearer <token>
spaceName
string
space ID
Response
Vote of the address for the proposal
GET /api/proposal/:proposalCid/votes/:address
Find vote of the address for the proposal
Headers
Content-Type
application/json
Authorization
Bearer <token>
proposalCid
string
Proposal ID
address
string
wallet address
Response
Vote of the address for the proposal filtered by network
GET /api/proposal/:proposalCid/votes/network/:network/address/:address
Find vote of the address for the proposal (filtered by network)
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalCid
string
Proposal ID
network
string
supported network id
address
string
wallet address
Response
Proposal Stats
POST /api/proposal/:proposalCid/stats
Find proposal stats
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalCid
string
Proposal ID
network
string
supported network id
address
string
wallet address
Response
Voter balance for certain proposal
GET /api/proposal/:proposalCid/voterbalance/:network/:address
Find voter balance for certain proposal
Headers
Content-Type
application/json
Authorization
Bearer xxxx
proposalCid
string
Proposal ID
network
string
supported network id
address
string
wallet address
Response
List proposals
GET /api/:space/proposals
List space proposals
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
space
string
space id
Response
Pending Proposals
GET /api/:space/proposals/pending
List Pending space proposals
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
name
string
Name of the user
age
number
Age of the user
Response
Active Proposals
GET /api/:space/proposals/active
List Active space proposals
Route support page_size (default is 10, max is 1000) and page eg ?page=1&page_size=1000
Headers
Content-Type
application/json
Authorization
Bearer xxxx
space
string
space id
Response
Closed Proposals
GET /api/:space/proposals/closed
List Closed space proposals
Headers
Content-Type
application/json
Authorization
Bearer <token>
space
string
space id
Response
Account
Joined Spaces
GET /api/account/:address/spaces
Find joined spaces
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Body
address
string
Wallet address to check
Response
Find space members
GET /api/account/spaces/:space/members
Find space members
Headers
Content-Type
application/json
Authorization
Bearer <token>
space
string
space id
Response
Spaces
All Spaces for the specific network
GET /api/spaces-by-network/:network
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer xxxx
network
string
supported network id
Response
All Spaces
GET /api/spaces
Get all spaces (route is used for frontend, some spaces are hidden by moderator)
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Response
All Spaces (without hidden)
GET /api/spaces-without-filter
Get all spaces (no filter applied)
Headers
Content-Type
application/json
Authorization
Bearer xxxx
Response
Find spaces created by certain owner
GET /api/spaces/space/:address
Find all spaces created by certain owner address
Headers
Content-Type
application/json
Authorization
Bearer xxxx
address
string
Wallet address to check
Response
Space Information
GET /api/spaces/:space
Certain Space details
Headers
Content-Type
application/json
Authorization
Bearer <token>
space
string
space id
Response
Last updated