2024-12-16 18:53:52 +00:00
|
|
|
printf "%s" "Public key of the sender address: "
|
2024-12-24 00:02:30 +00:00
|
|
|
read -r from_address
|
2024-12-16 18:53:52 +00:00
|
|
|
|
|
|
|
printf "%s" "Public key of the recipient address: "
|
2024-12-24 00:02:30 +00:00
|
|
|
read -r to_address
|
2024-12-16 18:53:52 +00:00
|
|
|
|
2025-01-01 08:00:20 +00:00
|
|
|
printf "%s" "Publick ey of the nonce account: "
|
|
|
|
read -r nonce_address
|
|
|
|
|
2024-12-16 18:53:52 +00:00
|
|
|
printf "%s" "Name of the token to transfer: "
|
2024-12-24 00:02:30 +00:00
|
|
|
read -r token_name
|
2024-12-16 18:53:52 +00:00
|
|
|
|
|
|
|
printf "%s" "Amount of token to transfer: "
|
2024-12-24 00:02:30 +00:00
|
|
|
read -r token_amount
|
2024-12-16 18:53:52 +00:00
|
|
|
|
2024-12-24 00:02:30 +00:00
|
|
|
echo "Saving inputs to file"
|
2024-12-16 18:53:52 +00:00
|
|
|
|
|
|
|
cat <<EOF > /data/input.json
|
|
|
|
{
|
|
|
|
"from_address": "$from_address",
|
|
|
|
"to_address": "$to_address",
|
|
|
|
"token_name": "$token_name",
|
2024-12-24 00:02:30 +00:00
|
|
|
"token_amount": "$token_amount"
|
2024-12-16 18:53:52 +00:00
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
2025-01-01 08:00:20 +00:00
|
|
|
icepick workflow sol broadcast --cluster devnet --nonce-address "$nonce_address"
|