@doc_metadata(categories=['<STR_LIT>', '<STR_LIT>'])<EOL><INDENT>def account_representative_set(self, wallet, account, representative, work=None):<DEDENT>
wallet = self._process_value(wallet, '<STR_LIT>')<EOL>account = self._process_value(account, '<STR_LIT>')<EOL>representative = self._process_value(representative, '<STR_LIT>')<EOL>payload = {<EOL>"<STR_LIT>": wallet,<EOL>"<STR_LIT>": account,<EOL>"<STR_LIT>": representative,<EOL>}<EOL>if work is not None:<EOL><INDENT>payload['<STR_LIT>'] = self._process_value(work, '<STR_LIT>')<EOL><DEDENT>resp = self.call('<STR_LIT>', payload)<EOL>return resp['<STR_LIT>']<EOL>
Sets the representative for **account** in **wallet**

.. enable_control required

:param wallet: Wallet to use for account
:type wallet: str

:param account: Account to set representative for
:type account: str

:param representative: Representative to set to
:type representative: str

:param work: If set, is used as the work for the block
:type work: str

:raises: :py:exc:`nano.rpc.RPCException`

>>> rpc.account_representative_set(
...     wallet="000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
...     account="xrb_39a73oy5ungrhxy5z5oao1xso4zo7dmgpjd4u74xcrx3r1w6rtazuouw6qfi",
...     representative="xrb_16u1uufyoig8777y6r8iqjtrw8sg8maqrm36zzcm95jmbd9i9aj5i8abr8u5"
... )
"000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"