@doc_metadata(categories=['<STR_LIT>'])<EOL><INDENT>def wallet_pending(self, wallet, count=None, threshold=None, source=False):<DEDENT>
wallet = self._process_value(wallet, '<STR_LIT>')<EOL>payload = {"<STR_LIT>": wallet}<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>for account, data in blocks.items():<EOL><INDENT>if isinstance(data, list):  <EOL><INDENT>continue<EOL><DEDENT>if not data:<EOL><INDENT>blocks[account] = []  <EOL>continue<EOL><DEDENT>for key, value in data.items():<EOL><INDENT>if isinstance(value, six.string_types):  <EOL><INDENT>data[key] = 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><DEDENT>return blocks or {}<EOL>
Returns a list of block hashes which have not yet been received by
accounts in this **wallet**

.. enable_control required
.. version 8.0 required

:param wallet: Wallet to get list of pending block hashes for
:type wallet: str

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

:param threshold: Minimum amount in raw per block
:type threshold: int

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

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

>>> rpc.wallet_pending(
...     wallet="000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
...     count=1
... )
{
    "xrb_1111111111111111111111111111111111111111111111111117353trpda": [
        "142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D"
    ],
    "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": [
        "4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74"
    ]
}