· 5 years ago · Nov 17, 2019, 12:22 AM
1So confused. Did this delegation work? Where is the
2V070BETA
3
4griff1@jormungandr:~/v070beta$ ./delegate-account.sh $(cat stake_pool.id) 3101 $(cat secret.key)
5================DELEGATE ACCOUNT=================
6REST_PORT: 3101
7ACCOUNT_SK: ed25519e_xxx
8BLOCK0_HASH: 27668e95121566df0bb2e2c11c5fd95dfe59efd570f8f592235ecff167ca3f29
9FEE_CONSTANT: 1000
10FEE_COEFFICIENT: 50
11FEE_CERTIFICATE: 10000
12==================================================
13 ##1. Create the delegation certificate for the Account address
14 ##2. Create the offline delegation transaction for the Account address
15 ##3. Add input account to the transaction
16 ##4. Add the certificate to the transaction
17 ##5. Finalize the transaction
18DEPRECATED: use 'data-for-witness' instead
19 ##6. Create the withness
20 ##7. Add the witness to the transaction
21 ##8. Show the transaction info
22Transaction db21bdd6be4f659ad06d2f91f9f48459ed39e425279d4aa3f2b128e4c3c247a8 (finalizing)
23 Input: 11050
24 Output: 0
25 Fees: 11050
26 Balance: 0
27 - cb4883957f7f88b2b0fc91d3309e52196b6cebae7a7e285e6ff0240181c86232 11050
28 ##9. Finalize the transaction and send it to the blockchain
29df3c8b6b52c2e33622ff26ab58e78cfdd7a959fba59af1e429b58eb3201bda7e
30 ##Waiting for new block to be created (timeout = 200 blocks = 400s)
31New block was created - e92d39ee1368532770f71d4a556b6de5eea214c254403e52cc482c44435dbb82
32 ##10. Check the account's delegation status
33---
34counter: 3
35delegation:
36 pools:
37 - - d41d12e7cb146083ebfb78a85141f0f942174eae39c53c4c6143be4785b70474
38 - 1
39value: 10000066850
40
41#LOOKS OK RIGHT? SO WHERE IS IT?
42
43griff1@jormungandr:~/v070beta$ jcli rest v0 leaders logs get -h http://127.0.0.1:3101/api
44---
45[]
46
47griff1@jormungandr:~/v070beta$ jcli rest v0 stake get --host http://127.0.0.1:3101/api | grep $(cat stake_pool.id) -A 1
487cb146083ebfb78a85141f0f942174eae39c53c4c6143be4785b70474
49 - 77900
50 - - d41d12e7cb146083ebfb78a85141f0f942174eae39c53c4c6143be4785b70474
51 - 77900
52
53griff1@jormungandr:~/v070beta$ jcli rest v0 stake get --host http://127.0.0.1:3101/api | grep $(cat stake_pool.id) -A 1
54 - - d41d12e7cb146083ebfb78a85141f0f942174eae39c53c4c6143be4785b70474
55 - 77900
56
57griff1@jormungandr:~/v070beta$ jcli rest v0 account get ca1sh953qu40alc3v4sljgaxvy72gvkkm8t4ea8u2z7dlczgqvpep3ryepzre0 -h http://127.0.0.1:3101/api
58---
59counter: 3
60delegation:
61 pools:
62 - - d41d12e7cb146083ebfb78a85141f0f942174eae39c53c4c6143be4785b70474
63 - 1
64value: 10000066850