code: def wallet_add(self, wallet, key, work=True):
          
  
          wallet = self._process_value(wallet, 'wallet')
          key = self._process_value(key, 'privatekey')
  
          payload = {"wallet": wallet, "key": key}
  
          if not work:
              payload['work'] = self._process_value(work, 'strbool')
  
          resp = self.call('wallet_add', payload)
  
          return resp['account']
docs: 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"