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
Was this helpful?