Hello, everybody.
I want to delegate but I can’t do it well
This is the delegate command I did. What is the problem?
[Delegate your stake]
ACCOUNT_SK=$(cat receiver_secret.key)
STAKE_POOL_ID=ce8459551f4d67da94245e6e48c135e41c94e1e51be141c10a188863a0908e13
(My stake_pool_id or someone else’s id does not seem to work.)
ACCOUNT_PK=(echo {ACCOUNT_SK} | jcli key to-public)
ACCOUNT_ADDR=$(jcli address account --testing $ACCOUNT_PK)
SK_TMP=stake_key.sk.${ACCOUNT_ADDR}
echo {ACCOUNT_SK} > {SK_TMP}
jcli certificate new stake-delegation {STAKE_POOL_ID} {ACCOUNT_PK} | jcli certificate sign ${SK_TMP}
rm ${SK_TMP}
[Check that your stake is delegated]
jcli rest v0 account get $(cat receiver_account.txt) -h http://127.0.0.1:3101/api