@@ -333,3 +333,131 @@ def governance_proposal_metadata(self, tx_hash: str, cert_index: int, **kwargs):
333333 url = f"{ self .url } /governance/proposals/{ tx_hash } /{ cert_index } /metadata" ,
334334 headers = self .default_headers
335335 )
336+
337+
338+ @request_wrapper
339+ def governance_proposal_by_gov_action_id (self , gov_action_id : str , ** kwargs ):
340+ """
341+ Return information about a specific governance proposal by GovActionID.
342+
343+ https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{gov_action_id}
344+
345+ :param gov_action_id: Governance Action Identifier (CIP-0129).
346+ :type gov_action_id: str
347+ :param return_type: Optional. "object", "json" or "pandas". Default: "object".
348+ :type return_type: str
349+ :returns object.
350+ :rtype: Namespace
351+ :raises ApiError: If API fails
352+ :raises Exception: If the API response is somehow malformed.
353+ """
354+ return requests .get (
355+ url = f"{ self .url } /governance/proposals/{ gov_action_id } " ,
356+ headers = self .default_headers
357+ )
358+
359+
360+ @request_wrapper
361+ def governance_proposal_parameters_by_gov_action_id (self , gov_action_id : str , ** kwargs ):
362+ """
363+ Return the parameters of a specific governance proposal by GovActionID.
364+
365+ https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{gov_action_id}/parameters
366+
367+ :param gov_action_id: Governance Action Identifier (CIP-0129).
368+ :type gov_action_id: str
369+ :param return_type: Optional. "object", "json" or "pandas". Default: "object".
370+ :type return_type: str
371+ :returns object.
372+ :rtype: Namespace
373+ :raises ApiError: If API fails
374+ :raises Exception: If the API response is somehow malformed.
375+ """
376+ return requests .get (
377+ url = f"{ self .url } /governance/proposals/{ gov_action_id } /parameters" ,
378+ headers = self .default_headers
379+ )
380+
381+
382+ @list_request_wrapper
383+ def governance_proposal_withdrawals_by_gov_action_id (self , gov_action_id : str , ** kwargs ):
384+ """
385+ Return the withdrawals of a specific governance proposal by GovActionID.
386+
387+ https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{gov_action_id}/withdrawals
388+
389+ :param gov_action_id: Governance Action Identifier (CIP-0129).
390+ :type gov_action_id: str
391+ :param return_type: Optional. "object", "json" or "pandas". Default: "object".
392+ :type return_type: str
393+ :param gather_pages: Optional. Default: false. Will collect all pages into one return
394+ :type gather_pages: bool
395+ :param count: Optional. Default: 100. The number of results displayed on one page.
396+ :type count: int
397+ :param page: Optional. The page number for listing the results.
398+ :type page: int
399+ :param order: Optional. "asc" or "desc". Default: "asc".
400+ :type order: str
401+ :returns A list of objects.
402+ :rtype [Namespace]
403+ :raises ApiError: If API fails
404+ :raises Exception: If the API response is somehow malformed.
405+ """
406+ return requests .get (
407+ url = f"{ self .url } /governance/proposals/{ gov_action_id } /withdrawals" ,
408+ params = self .query_parameters (kwargs ),
409+ headers = self .default_headers
410+ )
411+
412+
413+ @list_request_wrapper
414+ def governance_proposal_votes_by_gov_action_id (self , gov_action_id : str , ** kwargs ):
415+ """
416+ Return the votes of a specific governance proposal by GovActionID.
417+
418+ https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{gov_action_id}/votes
419+
420+ :param gov_action_id: Governance Action Identifier (CIP-0129).
421+ :type gov_action_id: str
422+ :param return_type: Optional. "object", "json" or "pandas". Default: "object".
423+ :type return_type: str
424+ :param gather_pages: Optional. Default: false. Will collect all pages into one return
425+ :type gather_pages: bool
426+ :param count: Optional. Default: 100. The number of results displayed on one page.
427+ :type count: int
428+ :param page: Optional. The page number for listing the results.
429+ :type page: int
430+ :param order: Optional. "asc" or "desc". Default: "asc".
431+ :type order: str
432+ :returns A list of objects.
433+ :rtype [Namespace]
434+ :raises ApiError: If API fails
435+ :raises Exception: If the API response is somehow malformed.
436+ """
437+ return requests .get (
438+ url = f"{ self .url } /governance/proposals/{ gov_action_id } /votes" ,
439+ params = self .query_parameters (kwargs ),
440+ headers = self .default_headers
441+ )
442+
443+
444+ @request_wrapper
445+ def governance_proposal_metadata_by_gov_action_id (self , gov_action_id : str , ** kwargs ):
446+ """
447+ Return the metadata of a specific governance proposal by GovActionID.
448+
449+ https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{gov_action_id}/metadata
450+
451+ :param gov_action_id: Governance Action Identifier (CIP-0129).
452+ :type gov_action_id: str
453+ :param return_type: Optional. "object", "json" or "pandas". Default: "object".
454+ :type return_type: str
455+ :returns object.
456+ :rtype: Namespace
457+ :raises ApiError: If API fails
458+ :raises Exception: If the API response is somehow malformed.
459+ """
460+ return requests .get (
461+ url = f"{ self .url } /governance/proposals/{ gov_action_id } /metadata" ,
462+ headers = self .default_headers
463+ )
0 commit comments