github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/make_tx_internal.sh (about)

     1  #!/bin/bash
     2  metapath=$1
     3  wallet_addr=$2
     4  tx_cnt=$3
     5  chainid=$4
     6  
     7  echo "$0"
     8  
     9  touch $metapath/$wallet_addr".tmp"
    10  
    11  echo "============== make send txs for $metapath/$wallet_addr =============="
    12  
    13  echo "[" >> $metapath/$wallet_addr.tmp
    14  	for ((j = 1; j <= $tx_cnt; j++))
    15  	do
    16  aergocli signtx --path $metapath --jsontx \
    17  	"{\"account\":\"$wallet_addr\", \
    18         	\"nonce\": $j , \
    19  		\"chainidhash\": ${chainid}, \
    20         	\"recipient\":\"AmPAUu1LCtKCntGG714dzmRpdcFAWWMjedTTqHR32W63Dd5GauKq\", \
    21  	\"amount\": \"1\" }"  --address $wallet_addr --password 1234 >> $metapath/$wallet_addr.tmp
    22  echo "," >>  $metapath/$wallet_addr.tmp
    23  	 done
    24  
    25  		 truncate -s -2 $metapath/$wallet_addr.tmp
    26  echo "]" >> $metapath/$wallet_addr.tmp