Download OpenAPI specification:Download
Voting Implementation Testnet Rest API v0
{- "id": 0,
- "fund_name": "string",
- "fund_goal": "string",
- "voting_power_info": "string",
- "voting_power_threshold": 0,
- "rewards_info": "string",
- "fund_start_time": "2019-08-24T14:15:22Z",
- "fund_end_time": "2019-08-24T14:15:22Z",
- "next_fund_start_time": "2019-08-24T14:15:22Z",
- "registration_snapshot_time": "2019-08-24T14:15:22Z",
- "next_registration_snapshot_time": "2019-08-24T14:15:22Z",
- "chain_vote_plans": [
- {
- "id": 0,
- "chain_voteplan_id": "string",
- "chain_vote_start_time": "2019-08-24T14:15:22Z",
- "chain_vote_end_time": "2019-08-24T14:15:22Z",
- "chain_committee_end_time": "2019-08-24T14:15:22Z",
- "chain_voteplan_payload": "string",
- "fund_id": 0,
- "voting_token": "string"
}
], - "groups": [
- {
- "id": "string",
- "voting_token": "string"
}
], - "challenges": [
- {
- "id": 0,
- "challenge_type": "simple",
- "title": "string",
- "description": "string",
- "rewards_total": 0,
- "fund_id": 0,
- "challenge_url": "string",
- "highlights": {
- "sponsor": "string"
}
}
], - "goals": [
- {
- "id": 0,
- "goal_name": "string",
- "fund_id": 0
}
], - "insight_sharing_start": "2019-08-24T14:15:22Z",
- "proposal_submission_start": "2019-08-24T14:15:22Z",
- "refine_proposals_start": "2019-08-24T14:15:22Z",
- "finalize_proposals_start": "2019-08-24T14:15:22Z",
- "proposal_assessment_start": "2019-08-24T14:15:22Z",
- "assessment_qa_start": "2019-08-24T14:15:22Z",
- "snapshot_start": "2019-08-24T14:15:22Z",
- "voting_start": "2019-08-24T14:15:22Z",
- "voting_end": "2019-08-24T14:15:22Z",
- "tallying_end": "2019-08-24T14:15:22Z",
- "next": {
- "id": 0,
- "fund_name": "string",
- "insight_sharing_start": "2019-08-24T14:15:22Z",
- "proposal_submission_start": "2019-08-24T14:15:22Z",
- "refine_proposals_start": "2019-08-24T14:15:22Z",
- "finalize_proposals_start": "2019-08-24T14:15:22Z",
- "proposal_assessment_start": "2019-08-24T14:15:22Z",
- "assessment_qa_start": "2019-08-24T14:15:22Z",
- "snapshot_start": "2019-08-24T14:15:22Z",
- "voting_start": "2019-08-24T14:15:22Z",
- "voting_end": "2019-08-24T14:15:22Z",
- "tallying_end": "2019-08-24T14:15:22Z"
}
}
Retrieves information on the identified treasury fund campaign.
id required | integer |
{- "id": 0,
- "fund_name": "string",
- "fund_goal": "string",
- "voting_power_info": "string",
- "voting_power_threshold": 0,
- "rewards_info": "string",
- "fund_start_time": "2019-08-24T14:15:22Z",
- "fund_end_time": "2019-08-24T14:15:22Z",
- "next_fund_start_time": "2019-08-24T14:15:22Z",
- "registration_snapshot_time": "2019-08-24T14:15:22Z",
- "next_registration_snapshot_time": "2019-08-24T14:15:22Z",
- "chain_vote_plans": [
- {
- "id": 0,
- "chain_voteplan_id": "string",
- "chain_vote_start_time": "2019-08-24T14:15:22Z",
- "chain_vote_end_time": "2019-08-24T14:15:22Z",
- "chain_committee_end_time": "2019-08-24T14:15:22Z",
- "chain_voteplan_payload": "string",
- "fund_id": 0,
- "voting_token": "string"
}
], - "groups": [
- {
- "id": "string",
- "voting_token": "string"
}
], - "challenges": [
- {
- "id": 0,
- "challenge_type": "simple",
- "title": "string",
- "description": "string",
- "rewards_total": 0,
- "fund_id": 0,
- "challenge_url": "string",
- "highlights": {
- "sponsor": "string"
}
}
], - "goals": [
- {
- "id": 0,
- "goal_name": "string",
- "fund_id": 0
}
], - "insight_sharing_start": "2019-08-24T14:15:22Z",
- "proposal_submission_start": "2019-08-24T14:15:22Z",
- "refine_proposals_start": "2019-08-24T14:15:22Z",
- "finalize_proposals_start": "2019-08-24T14:15:22Z",
- "proposal_assessment_start": "2019-08-24T14:15:22Z",
- "assessment_qa_start": "2019-08-24T14:15:22Z",
- "snapshot_start": "2019-08-24T14:15:22Z",
- "voting_start": "2019-08-24T14:15:22Z",
- "voting_end": "2019-08-24T14:15:22Z",
- "tallying_end": "2019-08-24T14:15:22Z"
}
[- {
- "id": 0,
- "challenge_type": "simple",
- "title": "string",
- "description": "string",
- "rewards_total": 0,
- "fund_id": 0,
- "challenge_url": "string",
- "highlights": {
- "sponsor": "string"
}
}
]
Retrieves information on the identified challenge, including the proposals submitted for it.
id required | integer |
{- "id": 0,
- "challenge_type": "simple",
- "title": "string",
- "description": "string",
- "rewards_total": 0,
- "fund_id": 0,
- "challenge_url": "string",
- "highlights": {
- "sponsor": "string"
}, - "proposals": [
- {
- "internal_id": 0,
- "proposal_id": "string",
- "proposal_category": {
- "category_id": "string",
- "category_name": "string",
- "category_description": "string"
}, - "proposal_title": "string",
- "proposal_summary": "string",
- "proposal_public_key": "string",
- "proposal_funds": 0,
- "proposal_url": "string",
- "proposal_files": "string",
- "proposer": {
- "proposer_name": "string",
- "proposer_email": "string",
- "proposer_url": "string"
}, - "chain_proposal_id": "string",
- "chain_vote_options": { },
- "chain_vote_start_time": "2019-08-24T14:15:22Z",
- "chain_vote_end_time": "2019-08-24T14:15:22Z",
- "chain_committee_end_time": "2019-08-24T14:15:22Z",
- "chain_voteplan_payload": "string",
- "chain_voteplan_id": "string",
- "chain_proposal_index": 0
}
]
}
Retrieves queried proposals.
List of voteplan id and indexes query
voteplan_id | string |
indexes | Array of integers <i64> |
[- {
- "voteplan_id": "string",
- "indexes": [
- 0
]
}
]
{- "internal_id": 22,
- "proposal_id": "4af0e6b3452cd4ee822b2ec1859fd57b5512f85c14875f408081aa9b796dfc6e",
- "proposal_title": "Authentication for DeepFake Defense",
- "proposal_summary": "Deepfake videos are dangerous.",
- "proposal_solution": "We will create a cryptographic proof on Cardano that verifies videos are real by connecting their blockchain ID.",
- "proposal_public_key": "Fvd8zI3DH85qnaChQE6Aymt1diMJP32LB0AdpheZh/Q=",
- "proposal_funds": 12000,
- "proposal_files_url": "",
- "proposal_impact_score": 0,
- "proposer": {
- "proposer_name": "Community Member",
- "proposer_email": "example@vit.iohk.io",
- "proposer_url": "",
- "proposer_relevant_experience": "Cryptography student, website development, blockchain technologist."
}, - "chain_proposal_id": "4af0e6b3452cd4ee822b2ec1859fd57b5512f85c14875f408081aa9b796dfc6e",
- "chain_vote_options": {
- "blank": 0,
- "yes": 1,
- "no": 2
}, - "chain_vote_start_time": "2021-02-10T14:40:27+00:00",
- "chain_vote_end_time": "2021-02-11T10:10:27+00:00",
- "chain_committee_end_time": "2021-02-11T11:40:27+00:00",
- "chain_voteplan_payload": "public",
- "chain_vote_encryption_key": "",
- "fund_id": 20,
- "challenge_id": 2,
- "challenge_type": "simple"
}
Lists all available proposals.
voter_group_id required | string Get proposals only for the specified vote group. |
[- {
- "internal_id": 0,
- "proposal_id": "string",
- "proposal_category": {
- "category_id": "string",
- "category_name": "string",
- "category_description": "string"
}, - "proposal_title": "string",
- "proposal_summary": "string",
- "proposal_public_key": "string",
- "proposal_funds": 0,
- "proposal_url": "string",
- "proposal_files": "string",
- "proposer": {
- "proposer_name": "string",
- "proposer_email": "string",
- "proposer_url": "string"
}, - "chain_proposal_id": "string",
- "chain_vote_options": { },
- "chain_vote_start_time": "2019-08-24T14:15:22Z",
- "chain_vote_end_time": "2019-08-24T14:15:22Z",
- "chain_committee_end_time": "2019-08-24T14:15:22Z",
- "chain_voteplan_payload": "string",
- "chain_voteplan_id": "string",
- "chain_proposal_index": 0,
- "fund_id": 0,
- "challenge_id": 0,
- "reviews_count": 0,
- "challenge_type": "simple"
}
]
Retrieves information on the identified proposal if it belongs to the provided group.
id required | integer |
voter_group_id required | string |
{- "internal_id": 22,
- "proposal_id": "4af0e6b3452cd4ee822b2ec1859fd57b5512f85c14875f408081aa9b796dfc6e",
- "proposal_title": "Authentication for DeepFake Defense",
- "proposal_summary": "Deepfake videos are dangerous.",
- "proposal_solution": "We will create a cryptographic proof on Cardano that verifies videos are real by connecting their blockchain ID.",
- "proposal_public_key": "Fvd8zI3DH85qnaChQE6Aymt1diMJP32LB0AdpheZh/Q=",
- "proposal_funds": 12000,
- "proposal_files_url": "",
- "proposal_impact_score": 0,
- "proposer": {
- "proposer_name": "Community Member",
- "proposer_email": "example@vit.iohk.io",
- "proposer_url": "",
- "proposer_relevant_experience": "Cryptography student, website development, blockchain technologist."
}, - "chain_proposal_id": "4af0e6b3452cd4ee822b2ec1859fd57b5512f85c14875f408081aa9b796dfc6e",
- "chain_vote_options": {
- "blank": 0,
- "yes": 1,
- "no": 2
}, - "chain_vote_start_time": "2021-02-10T14:40:27+00:00",
- "chain_vote_end_time": "2021-02-11T10:10:27+00:00",
- "chain_committee_end_time": "2021-02-11T11:40:27+00:00",
- "chain_voteplan_payload": "public",
- "chain_vote_encryption_key": "",
- "fund_id": 20,
- "challenge_id": 2,
- "challenge_type": "simple"
}
Retrieves queried proposals.
List of votes by voteplan id and caster (wallet)
vote_plan_id | string <hash> Blockchain ID of the vote plan transaction. |
caster | string <hash> public key of caster wallet |
{- "vote_plan_id": "string",
- "caster": "string"
}
{- "fragment_id": "string",
- "caster": "string",
- "proposal": 0,
- "voteplan_id": "string",
- "time": 0,
- "choice": "string",
- "raw_fragment": "string"
}
Retrieves advisor reviews information for the provided proposal id.
proposal_id required | integer |
[- {
- "id": 1,
- "proposal_id": 1234,
- "rating_given": 0,
- "assessor": "za_assessor_432",
- "note": "foo bar",
- "tag": "Alignment"
}
]
Get voter's info by voting key
tag required | string |
voting_key required | string |
{- "voter_info": [
- {
- "voting_power": 1000,
- "voting_group": "representative",
- "delegations_power": 400,
- "delegations_count": 200,
- "voting_power_saturation": 0.5
}
], - "last_updated": "2019-08-24T14:15:22Z"
}
Get delegator's info by stake public key
tag required | string |
stake_public_key required | string |
{- "voter_info": [
- {
- "voting_power": 1000,
- "voting_group": "representative",
- "delegations_power": 400,
- "delegations_count": 200,
- "voting_power_saturation": 0.5
}
], - "last_updated": "2019-08-24T14:15:22Z"
}
Replace the snapshot data for the given tag
tag required | string |
snapshot | array list of SnapshotInfo entries in json format |
update_timestamp | string <date-time> Date and time for the latest update to this snapshot information. |
{- "snapshot": [ ],
- "update_timestamp": "2019-08-24T14:15:22Z"
}
Replace the snapshot data for the given tag
tag required | string |
snapshot | object RawSnapshot in json format |
min_stake_threshold | integer Registrations voting power threshold for eligibility |
voting_power_cap | string Voting power cap for each account |
direct_voters_group | string Voter group to assign direct voters to. If empty, defaults to "voter" |
representatives_group | string Voter group to assign representatives to. If empty, defaults to "rep" |
update_timestamp | string <date-time> Date and time for the latest update to this snapshot information. |
{- "snapshot": { },
- "min_stake_threshold": 0,
- "voting_power_cap": "string",
- "direct_voters_group": "string",
- "representatives_group": "string",
- "update_timestamp": "2019-08-24T14:15:22Z"
}
Search various resources especially challenges and proposals with various constraints like contains some string etc.
required | object (SearchConstraint) |
Array of objects (SearchConstraint) | |
Array of objects (SearchOrderBy) | |
limit | integer <i32> Sets the limit clause of the search query. |
offset | integer <i32> Sets the offset clause of the search query. |
{- "table": {
- "column": "title",
- "search": "string"
}, - "filter": [
- {
- "column": "title",
- "search": "string"
}
], - "order-by": [
- {
- "column": "title",
- "descending": false
}
], - "limit": 0,
- "offset": 0
}
[ ]
Search various resources with various constraints and returns count of the result set
required | object (SearchConstraint) |
Array of objects (SearchConstraint) | |
Array of objects (SearchOrderBy) |
{- "table": {
- "column": "title",
- "search": "string"
}, - "filter": [
- {
- "column": "title",
- "search": "string"
}
], - "order-by": [
- {
- "column": "title",
- "descending": false
}
]
}
0