get_citizen

@mount("citizens.get_citizen") query get_citizen(    account_id: byte_array): (account_id: byte_array, type: citizen_types, created_at: integer, wallet_address: byte_array, (total_proposals: big_integer, total_votes: big_integer))?

Retrieves a citizen's details based on the provided account ID.

Return

A mapped citizen object if the citizen exists, or null if no citizen is found.

Parameters

account_id
  • The account ID used to identify the citizen.