Jump to content
Sign in to follow this  
Daniel Keller

Send coins between account a and b (snippet)

Recommended Posts

This was requested on discord, I will put it here so people can easily find it:

This snippet sends coins between account 1 and 2 and back every 5 seconds:

 

#!/bin/bash
while [ : ]
do
  casinocoind --conf=/etc/casinocoind/casinocoind.cfg submit sACCOUNT1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX '{"TransactionType":"Payment","Account":"cACOUNT1XXXXXXXXXXXXXXXXXXXXXXXX","Amount":"20000000000","Destination":"cACOUNT2XXXXXXXXXXXXXXXXXXXXXXXXX"}'
  sleep 5
  casinocoind --conf=/etc/casinocoind/casinocoind.cfg submit sACCOUNT2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX '{"TransactionType":"Payment","Account":"cACOUNT2XXXXXXXXXXXXXXXXXXXXXXXXX","Amount":"20000000000","Destination":"cACOUNT1XXXXXXXXXXXXXXXXXXXXXXXX"}'
  sleep 5
done

 

  • Thanks 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×