Accelerator RPC API
embedded.accelerator
- embedded.accelerator.getAll
- embedded.accelerator.getProjectById
- embedded.accelerator.getPhaseById
- embedded.accelerator.getVoteBreakdown
- embedded.accelerator.getPillarVotes
embedded.accelerator.getAll
This API call will return a paginated list of all Accelerator-Z projects, sorted by last update timestamp.
Request
2 parameters:
- first parameter of type
number
that represents the page index - second parameter of type
number
that represents the page size
{
"jsonrpc": "2.0",
"id": 1,
"method": "embedded.accelerator.getAll",
"params": [0, 10]
}
Response
count
- total number of projectslist
- array of project objects containing:id
- project hash identifierowner
- address of project ownername
- project namedescription
- project descriptionurl
- project URLznnFundsNeeded
- ZNN funds requestedqsrFundsNeeded
- QSR funds requestedcreationTimestamp
- creation timestamplastUpdateTimestamp
- last update timestampstatus
- project statusphaseIds
- array of phase hash identifiersvotes
- voting informationphases
- array of phase objects
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"count": 185,
"list": [
{
"id": "50ef67972bf4d3c33a5a8964d864be7fae198145aa92b4a6145697b1159d277a",
"owner": "z1qrjvurstsasg45m7meuzdnngj3utrlczk2drru",
"name": "HYPERQUBE_Z LAUNCH GENESIS",
"description": "Download the genesis file and run the hyperqube_z node.",
"url": "https://forum.hypercore.one/t/how-to-deploy-a-hqz-pillar/586",
"znnFundsNeeded": "1000000000",
"qsrFundsNeeded": "10000000000",
"creationTimestamp": 1739467650,
"lastUpdateTimestamp": 1739467650,
"status": 3,
"phaseIds": [],
"votes": {
"id": "50ef67972bf4d3c33a5a8964d864be7fae198145aa92b4a6145697b1159d277a",
"total": 8,
"yes": 8,
"no": 0
},
"phases": []
}
]
}
}
embedded.accelerator.getProjectById
This API call will return details about a specific Accelerator-Z project by its hash identifier.
Request
One parameter of type string
that represents the project hash.
{
"jsonrpc": "2.0",
"id": 2,
"method": "embedded.accelerator.getProjectById",
"params": ["50ef67972bf4d3c33a5a8964d864be7fae198145aa92b4a6145697b1159d277a"]
}
Response
Same project object structure as in getAll
response.
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"id": "50ef67972bf4d3c33a5a8964d864be7fae198145aa92b4a6145697b1159d277a",
"owner": "z1qrjvurstsasg45m7meuzdnngj3utrlczk2drru",
"name": "HYPERQUBE_Z LAUNCH GENESIS",
"description": "Download the genesis file and run the hyperqube_z node.",
"url": "https://forum.hypercore.one/t/how-to-deploy-a-hqz-pillar/586",
"znnFundsNeeded": "1000000000",
"qsrFundsNeeded": "10000000000",
"creationTimestamp": 1739467650,
"lastUpdateTimestamp": 1739467650,
"status": 3,
"phaseIds": [],
"votes": {
"id": "50ef67972bf4d3c33a5a8964d864be7fae198145aa92b4a6145697b1159d277a",
"total": 8,
"yes": 8,
"no": 0
},
"phases": []
}
}
embedded.accelerator.getPhaseById
This API call will return details about a specific project phase by its hash identifier.
Request
One parameter of type string
that represents the phase hash.
{
"jsonrpc": "2.0",
"id": 3,
"method": "embedded.accelerator.getPhaseById",
"params": ["d24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5"]
}
Response
- Phase object containing:
id
- phase hash identifierprojectId
- parent project hashname
- phase namedescription
- phase descriptionurl
- phase URLznnFundsNeeded
- ZNN funds requested for phaseqsrFundsNeeded
- QSR funds requested for phasecreationTimestamp
- creation timestampacceptedTimestamp
- acceptance timestampstatus
- phase status
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"id": "d24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5",
"projectId": "c24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5",
"name": "Phase 1",
"description": "First phase of the project",
"url": "https://example.com/phase1",
"znnFundsNeeded": 5000000000,
"qsrFundsNeeded": 50000000000,
"creationTimestamp": 1640200000,
"acceptedTimestamp": 0,
"status": 0
}
}
embedded.accelerator.getVoteBreakdown
This API call will return the voting breakdown for a given project or phase.
Request
One parameter of type string
that represents the project or phase hash.
{
"jsonrpc": "2.0",
"id": 4,
"method": "embedded.accelerator.getVoteBreakdown",
"params": ["c24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5"]
}
Response
id
- hash identifiertotal
- total number of votesyes
- number of yes votesno
- number of no votesvoteDetails
- array of individual pillar votes
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"id": "c24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5",
"total": 10,
"yes": 8,
"no": 2,
"voteDetails": [
{
"pillarName": "Pillar1",
"vote": 0
},
{
"pillarName": "Pillar2",
"vote": 1
}
]
}
}
embedded.accelerator.getPillarVotes
This API call will return the votes of a specific pillar for given project/phase hashes.
Request
2 parameters:
- first parameter of type
string
that represents the pillar name - second parameter of type
array
that contains hash identifiers
{
"jsonrpc": "2.0",
"id": 5,
"method": "embedded.accelerator.getPillarVotes",
"params": ["Pillar1", ["c24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5"]]
}
Response
Array of pillar vote objects:
id
- hash identifierpillarName
- name of the pillarvote
- vote value (0 = yes, 1 = no, 2 = abstain)
{
"jsonrpc": "2.0",
"id": 5,
"result": [
{
"id": "c24a5a6166c8948aba3e8a573e7173faf3d88e48c9798b1b67b7e61ae8552ed5",
"pillarName": "Pillar1",
"vote": 0
}
]
}