Pay transaction

Make Alice send money to Bob.

You should now have money in the previously created account: Alice's account.

You can now run the Unix example program to send money to Bob with the -p flag:

$ ./examples/unix/unix_example -p
๐ŸŸข [examples/unix/main.c:217] ๐Ÿ˜Ž Vertices SDK running on Unix-based OS
๐ŸŸข [examples/unix/main.c:137] ๐Ÿ”‘ Loading private key from: /Users/cyril/Documents/work/vertices/c-vertices-sdk/examples/unix/config/private_key.bin
๐ŸŸข [examples/unix/main.c:194] ๐Ÿ’ณ Alice's account IZV2H3YRLCPOTUL5ATG5T3TRMUEXKLOGFWYO34NVKRMTXKZO2OOAJ34IWI
๐ŸŸข [examples/unix/main.c:250] ๐ŸŽ Running on testnet-v1.0 v.2.5.0
๐ŸŸข [src/account.c:42] ๐Ÿ‘› Added account to wallet: #0
๐ŸŸข [src/account.c:42] ๐Ÿ‘› Added account to wallet: #1
๐ŸŸข [examples/unix/main.c:263] ๐Ÿค‘ 10.000000 Algos on Alice's account (IZV2H3YRLCPOTUL5ATG5T3TRMUEXKLOGFWYO34NVKRMTXKZO2OOAJ34IWI)
๐ŸŸข [src/algorand/algorand_transaction.c:307] ๐Ÿงพ Transaction executed, ID: I5CG4PC7V6XKEGHZUUZF25I3JXBQKLU4AUV4HANQYAHH4TCPVWWQ
๐ŸŸข [examples/unix/main.c:290] ๐Ÿ’ธ Alice sent 1 algo to Bob
๐ŸŸข [src/account.c:89] ๐Ÿ‘› Deleted account from wallet: #0
๐ŸŸข [src/account.c:89] ๐Ÿ‘› Deleted account from wallet: #1

Now you can check the transaction status on AlgoExplorer for Testnet, using the transaction ID printed I5CG4PC7V6XKEGHZUUZF25I3JXBQKLU4AUV4HANQYAHH4TCPVWWQ.

Below we can see the Sender and Receiver along with the Note added to the transaction: Alice sent 1 Algo to Bob.

Last updated