-
Notifications
You must be signed in to change notification settings - Fork 0
/
Restore_Crypto_Token.txt
69 lines (55 loc) · 2.59 KB
/
Restore_Crypto_Token.txt
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
### In the case of moving Linux machines (in my case I moved OFF linode to a local ubuntu desktop instance)
## THIS CAN ONLY BE DONE IF YOU HAVE THE PASSPHRASE 3B. From Create_Crypt_Token.txt
** Note **
Any command to enter into linux will be prefixed with "CMD:", execute the line of the command AFTER that, do not include "CMD:"
1. Set up Linux Machine (Desktop Ubuntu 20.0.4)
2. Create Crypto Currency Wallet to hold SOLANA (SOL)
- CMD:sudo apt-get update
- CMD:sudo apt-get dist-upgrade
- CMD:sudo apt install libudev-dev
- CMD:sudo apt install libssl-dev pkg-config -y
- CMD:sudo apt install build-essential -y
- CMD:curl https://sh.rustup.rs -sSf | sh
- 1 for default installation
- Reboot
3. Install solana tools
## If errors in 3. run this: CMD:sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang make
- CMD:sh -c "$(curl -sSfL https://release.solana.com/v1.8.5/install)"
- Reboot
- CMD:cargo install spl-token-cli
- This takes a while!
4. Restore Wallet
- CMD:solana-keygen recover
- enter saved passphrase (from Create_Crypto_Token.txt 3b.)
5. Check Wallet
- CMD:solana balance
- should NOT be 0
6. Check minted tokens
- CMD:spl-token accounts
7. Send Token to another Accounts (Myself to Myself)
- EXAMPLE COMMAND: spl-token transfer --fund-recipient --allow-unfunded-recipient token-address 1000 deposit-address
- ** HINT to get token address:
- CMD: spl-token accounts
- ** Note --fund-recipient (pay to create account wallet if empty)
- ** Note --allow0unfunded-recipient (Allow the above)
- CMD: spl-token transfer --fund-recipient --allow-unfunded-recipient vAdedkjsaksyi78yiu3haskejhiuhAkljn 1000 8jsdljsdkfhwek8soduhfsiuhf
- Check wallet to make sure deposit was successful
8. Send to someone elses wallet
- Use the above command 11.7 but use the recipients address as deposit-address. This will send to them
- IT HAS TO BE A SOLANA WALLET ADDRESS - On the SOL blockchain
9. Mint more tokens?
- Execute this again:
- CMD:spl-token mint vAdedkjsaksyi78yiu3haskejhiuhAkljn 1000000000 3psjk58dhi7fyw4ih8w7ehfsdkjhsdfsd
- ** Note spl-token mint token-address 1000000000 token-account
- ** HINT to get token accounts:
- CMD: spl-token accounts
- ** HINT to get token address:
- CMD: spl-token address
- Check the new tokens minted:
- CMD:solana balance
- Should see X more but minus the amount sent to recipient in 11.
10. Check Token on solscan
- GO to https://solscan.io/
- paste in the token-address account
- you should see how many tokens are minted
- You should see your LOGO and Token Name etc (can take 30 mins to update)