@doc_metadata(categories=['<STR_LIT>'])<EOL><INDENT>def representatives(self, count=None, sorting=False):<DEDENT>
payload = {}<EOL>if count is not None:<EOL><INDENT>payload['<STR_LIT:count>'] = self._process_value(count, '<STR_LIT:int>')<EOL><DEDENT>if sorting:<EOL><INDENT>payload['<STR_LIT>'] = self._process_value(sorting, '<STR_LIT>')<EOL><DEDENT>resp = self.call('<STR_LIT>', payload)<EOL>representatives = resp.get('<STR_LIT>') or {}<EOL>for k, v in representatives.items():<EOL><INDENT>representatives[k] = int(v)<EOL><DEDENT>return representatives<EOL>
Returns a list of pairs of representative and its voting weight

:param count: Max amount of representatives to return
:type count: int

:param sorting: If true, sorts by weight
:type sorting: bool

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

>>> rpc.representatives()
{
    "xrb_1111111111111111111111111111111111111111111111111117353trpda":
        3822372327060170000000000000000000000,
    "xrb_1111111111111111111111111111111111111111111111111awsq94gtecn":
        30999999999999999999999999000000,
    "xrb_114nk4rwjctu6n6tr6g6ps61g1w3hdpjxfas4xj1tq6i8jyomc5d858xr1xi":
        0
}