@doc_metadata(categories=['<STR_LIT>'])<EOL><INDENT>def wallet_add(self, wallet, key, work=True):<DEDENT>
wallet = self._process_value(wallet, '<STR_LIT>')<EOL>key = self._process_value(key, '<STR_LIT>')<EOL>payload = {"<STR_LIT>": wallet, "<STR_LIT:key>": key}<EOL>if not work:<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>
Add an adhoc private key **key** to **wallet**

.. enable_control required

:param wallet: Wallet to add private key to
:type wallet: str

:param key: Private key to add
:type key: str

:param work: If false, disables work generation
:type work: bool

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

>>> rpc.wallet_add(
...     wallet="000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
...     key="34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB039CE4"
... )
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"