Routes

Endpoints

Chain
Endpoint

Berachain Mainnet & Berachain bArtio B2

https://beravote.com/api/


Chain

Chains Definition

GET /api/chains/definition

Retrieve metadata for all supported chains.

Headers

Name
Value

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Response


Home

GET /api/home/hottest

Find most active proposals along all spaces

Headers

Name
Value

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

spaceName

string

space ID

Response


Space Stats

GET /api/space/:spaceName/stats

Get space most active voters and and richest voters

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

space

string

space id

Response


Closed Proposals

GET /api/:space/proposals/closed

List Closed space proposals

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Name
Type
Description

space

string

space id

Response


Account

Joined Spaces

GET /api/account/:address/spaces

Find joined spaces

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Body

Name
Type
Description

address

string

Wallet address to check

Response


Find space members

GET /api/account/spaces/:space/members

Find space members

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Name
Type
Description

space

string

space id

Response


Spaces

All Spaces for the specific network

GET /api/spaces-by-network/:network

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Response


All Spaces (without hidden)

GET /api/spaces-without-filter

Get all spaces (no filter applied)

Headers

Name
Value

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

Name
Value

Content-Type

application/json

Authorization

Bearer xxxx

Name
Type
Description

address

string

Wallet address to check

Response


Space Information

GET /api/spaces/:space

Certain Space details

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Name
Type
Description

space

string

space id

Response

Last updated