Spaces:
Runtime error
Runtime error
Commit
·
2998659
1
Parent(s):
30bd486
output private key
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def wallet(private_key):
|
|
27 |
eth_balance = from_wei(ocean.web3.eth.get_balance(address))
|
28 |
ocean_balance = from_wei(OCEAN_token.balanceOf(address))
|
29 |
|
30 |
-
return address, mnemonic, eth_balance, ocean_balance
|
31 |
|
32 |
# def wallet(private_key, did):
|
33 |
# wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|
@@ -80,6 +80,7 @@ interface = gr.Interface(
|
|
80 |
#gr.outputs.Textbox(label="Public Key"),
|
81 |
#gr.outputs.Textbox(label="Algorithm token balance"),
|
82 |
gr.outputs.Textbox(label="Public Address"),
|
|
|
83 |
gr.outputs.Textbox(label="Recovery Passphrase"),
|
84 |
gr.outputs.Textbox(label="ETH balance"),
|
85 |
gr.outputs.Textbox(label="OCEAN balance"),
|
|
|
27 |
eth_balance = from_wei(ocean.web3.eth.get_balance(address))
|
28 |
ocean_balance = from_wei(OCEAN_token.balanceOf(address))
|
29 |
|
30 |
+
return address, private_key, mnemonic, eth_balance, ocean_balance
|
31 |
|
32 |
# def wallet(private_key, did):
|
33 |
# wallet = Wallet(ocean.web3, private_key, transaction_timeout=20, block_confirmations=config.block_confirmations)
|
|
|
80 |
#gr.outputs.Textbox(label="Public Key"),
|
81 |
#gr.outputs.Textbox(label="Algorithm token balance"),
|
82 |
gr.outputs.Textbox(label="Public Address"),
|
83 |
+
gr.outputs.Textbox(label="Private Key"),
|
84 |
gr.outputs.Textbox(label="Recovery Passphrase"),
|
85 |
gr.outputs.Textbox(label="ETH balance"),
|
86 |
gr.outputs.Textbox(label="OCEAN balance"),
|