get_proposal_by_id

@mount("proposals.external.get_proposal_by_id") query get_proposal_by_id(    prop_id: rowid): (id: rowid, author_id: byte_array, author_type: citizen_types, category: text, title: text, description: text, state: proposal_state, duration: integer, start_timestamp: integer, end_timestamp: integer, options: list<(option_id: rowid, proposal_id: rowid, option: text, total_vote: big_integer, (command_id: rowid, name: text, description: text, is_executed: boolean)?)>, winner_option: text, approvals_response?)?

Retrieves a proposal by its ID.

Return

proposal - The mapped proposal data if found, or null if the proposal does not exist.

Parameters

prop_id
  • The unique ID (rowid) of the proposal to retrieve.