Strike Docs


Makes a request to the GovernanceService API. The Governance Service includes three endpoints to retrieve information about STRK accounts. For more details, see the Strike API documentation.
  • options (object) A JavaScript object of API request parameters.
  • endpoint (string) A string of the name of the corresponding governance service endpoint. Valid values are proposals, voteReceipts, or accounts.
  • RETURN (object) Returns the HTTP response body or error.
(async function() {
const proposal = await Strike.api.governance(
{ "proposal_ids": [ 20 ] }, 'proposals'
console.log('proposal', proposal); // JavaScript Object