You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`from binance_chain.wallet import Wallet
from binance_chain.environment import BinanceEnvironment
if name == 'main':
# initialise with Testnet environment
env = BinanceEnvironment.get_testnet_env()
wallet = Wallet.create_random_wallet(env=env)
print(wallet.address)
print(wallet.private_key)
print(wallet.public_key_hex)`
And I get the following error:
`Traceback (most recent call last):
File "/Users/ken/Documents/GitHub/BSC/main.py", line 9, in
wallet = Wallet.create_random_wallet(env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/binance_chain/wallet.py", line 137, in create_random_wallet
return cls.create_wallet_from_mnemonic(phrase, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/binance_chain/wallet.py", line 153, in create_wallet_from_mnemonic
child_wallet = new_wallet.subkey_for_path(Wallet.HD_PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/ENV/lib/python3.12/site-packages/pycoin/key/BIP32Node.py", line 208, in subkey_for_path
v = int(v)
^^^^^^
ValueError: invalid literal for int() with base 10: '{id}'
Process finished with exit code 1`
Any idea of what the problem is?
The text was updated successfully, but these errors were encountered:
Hi,
I am using latest source from: https://github.com/sammchardy/python-binance-chain.git
`from binance_chain.wallet import Wallet
from binance_chain.environment import BinanceEnvironment
if name == 'main':
# initialise with Testnet environment
env = BinanceEnvironment.get_testnet_env()
wallet = Wallet.create_random_wallet(env=env)
print(wallet.address)
print(wallet.private_key)
print(wallet.public_key_hex)`
And I get the following error:
`Traceback (most recent call last):
File "/Users/ken/Documents/GitHub/BSC/main.py", line 9, in
wallet = Wallet.create_random_wallet(env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/binance_chain/wallet.py", line 137, in create_random_wallet
return cls.create_wallet_from_mnemonic(phrase, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/binance_chain/wallet.py", line 153, in create_wallet_from_mnemonic
child_wallet = new_wallet.subkey_for_path(Wallet.HD_PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ken/Documents/GitHub/BSC/ENV/lib/python3.12/site-packages/pycoin/key/BIP32Node.py", line 208, in subkey_for_path
v = int(v)
^^^^^^
ValueError: invalid literal for int() with base 10: '{id}'
Process finished with exit code 1`
Any idea of what the problem is?
The text was updated successfully, but these errors were encountered: