mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Return Seed object from the wallet
This commit is contained in:
parent
94656dc771
commit
a91b975e4d
2 changed files with 19 additions and 1 deletions
|
@ -10,6 +10,7 @@ from .. import exceptions
|
|||
from ..account import Account
|
||||
from ..address import address, Address, SubAddress
|
||||
from ..numbers import from_atomic, to_atomic, PaymentID
|
||||
from ..seed import Seed
|
||||
from ..transaction import Transaction, IncomingPayment, OutgoingPayment
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
|
@ -133,7 +134,7 @@ class JSONRPCWallet(object):
|
|||
return self.raw_request('query_key', {'key_type': 'view_key'})['key']
|
||||
|
||||
def seed(self):
|
||||
return self.raw_request('query_key', {'key_type': 'mnemonic'})['key']
|
||||
return Seed(self.raw_request('query_key', {'key_type': 'mnemonic'})['key'])
|
||||
|
||||
def accounts(self):
|
||||
accounts = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue