-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbitensor.py
More file actions
87 lines (48 loc) · 3.44 KB
/
Copy pathbitensor.py
File metadata and controls
87 lines (48 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import bittensor as bt
# wallet = bt.wallet(name='gola', hotkey='golaHotKey')
# wallet.create_if_non_existent()
# gola can be considered as coldkey
# Connect to the main Bittensor network (Finney).
finney_subtensor = bt.subtensor(network='test')
finney_subtensor.close()
finney_subtensor.connect_websocket()
wallet = bt.wallet(...)
print(wallet)
# success = finney_subtensor.set_weights(wallet=wallet, netuid=netuid, uids=[...], weights=[...])
# success = finney_subtensor.delegate(wallet=wallet, delegate_ss58=other_neuron_ss58, amount=bond_amount)
# metagraph = bt.subtensor.metagraph(netuid=netuid)
# 5DUPd9nwxoQWKpSbhu5mVxkAxXTqmQyMFrfEXQT1JMCnXxqU
# firsttensor - 5DvTpiniW9s3APmHRYn8FroUWyfnLtrsid5Mtn5EwMXHN2ed
# IMPORTANT: Store this mnemonic in a secure (preferable offline place), as anyone who has possession of this mnemonic can use it to regenerate the key and access your tokens.
# The mnemonic to the new coldkey is:
# retire clip utility liar manual skull faith parade because jeans exclude black
# You can use the mnemonic to recreate the key in case it gets lost. The command to use to regenerate the key using this mnemonic is:
# btcli w regen_coldkey --mnemonic retire clip utility liar manual skull faith parade because jeans exclude black
# Specify password for key encryption:
# Retype your password:
# IMPORTANT: Store this mnemonic in a secure (preferable offline place), as anyone who has possession of this mnemonic can use it to regenerate the key and access your tokens.
# The mnemonic to the new hotkey is:
# edge awesome vessel plug special economy siren what any emotion skill shiver
# You can use the mnemonic to recreate the key in case it gets lost. The command to use to regenerate the key using this mnemonic is:
# btcli w regen_hotkey --mnemonic edge awesome vessel plug special economy siren what any emotion skill shiver
# import bittensor
# wallet = bittensor.wallet()
# wallet.create_new_coldkey()
# wallet.create_new_hotkey()
# print (wallet)
# "Wallet (default, default, ~/.bittensor/wallets/)"
# # mnemonic cold wallet: museum scare adjust over wrestle weekend swallow scene fame creek april retire
# # mnemonic hot wallet: thrive decline twelve autumn hover donkey witness cancel absent aerobic side quarter
# # You can use the mnemonic to recreate the key in case it gets lost. The command to use to regenerate the key using this mnemonic is:
# # btcli w regen_hotkey --mnemonic thrive decline twelve autumn hover donkey witness cancel absent aerobic side quarter
# The mnemonic to the new coldkey is:
# retire clip utility liar manual skull faith parade because jeans exclude black
# You can use the mnemonic to recreate the key in case it gets lost. The command to use to regenerate the key using this mnemonic is:
# btcli w regen_coldkey --mnemonic retire clip utility liar manual skull faith parade because jeans exclude black
# Specify password for key encryption:
# Retype your password:
# IMPORTANT: Store this mnemonic in a secure (preferable offline place), as anyone who has possession of this mnemonic can use it to regenerate the key and access your tokens.
# The mnemonic to the new hotkey is:
# edge awesome vessel plug special economy siren what any emotion skill shiver
# You can use the mnemonic to recreate the key in case it gets lost. The command to use to regenerate the key using this mnemonic is:
# btcli w regen_hotkey --mnemonic edge awesome vessel plug special economy siren what any emotion skill shiver