@doc_metadata(categories=['<STR_LIT>'])<EOL><INDENT>def pending(self, account, count=None, threshold=None, source=False):<DEDENT>
account = self._process_value(account, '<STR_LIT>')<EOL>payload = {"<STR_LIT>": account}<EOL>if count is not None:<EOL><INDENT>payload['<STR_LIT:count>'] = self._process_value(count, '<STR_LIT:int>')<EOL><DEDENT>if threshold is not None:<EOL><INDENT>payload['<STR_LIT>'] = self._process_value(threshold, '<STR_LIT:int>')<EOL><DEDENT>if source:<EOL><INDENT>payload['<STR_LIT:source>'] = self._process_value(source, '<STR_LIT>')<EOL><DEDENT>resp = self.call('<STR_LIT>', payload)<EOL>blocks = resp.get('<STR_LIT>') or {}<EOL>if isinstance(blocks, list):<EOL><INDENT>return blocks<EOL><DEDENT>for block, value in blocks.items():<EOL><INDENT>if isinstance(value, six.string_types):  <EOL><INDENT>blocks[block] = int(value)<EOL><DEDENT>elif isinstance(value, dict):  <EOL><INDENT>for key in ('<STR_LIT>',):<EOL><INDENT>if key in value:<EOL><INDENT>value[key] = int(value[key])<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return blocks<EOL>
Returns a list of pending block hashes with amount more or equal to
**threshold**

.. version 8.0 required

:param account: Account to get list of pending block hashes for
:type account: str

:param count: Max blocks to return
:type count: int

:param threshold: Minimum amount in raw for blocks
:type threshold: int

:param source: If true, returns source address as well
:type source: bool

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

>>> rpc.pending(
...     account="xrb_1111111111111111111111111111111111111111111111111117353trpda"
... )
[
    "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
]

>>> rpc.pending(
...     account="xrb_1111111111111111111111111111111111111111111111111117353trpda",
...     count=1,
...     threshold=1000000000000000000000000
... )
{
    "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F": "6000000000000000000000000000000"
}