Sending transactions
We can stand out two kinds of sending transactions from the Terminal. Although from user's point of view, it looks like one wholeness, each functionality is backed by different, complex pieces of code. The two kinds are:
Sending SOL
Sending SPL tokens
To perform the transfer user is obligated to make some necessary choices:
Enter recipient's public key
Enter amount he/she would like to send
Select token from menu

Using default, public Solana endpoint ("https://api.mainnet-beta.solana.com") isn't recommended. This endpoint doesn't allow the program to get the execute confirmation (among others disadvantages), so always make sure before you repeat a transfer. Read more in "Endpoints" section.
Part of code responsible for sending Solana:
Part of code necessary to sending SPL tokens:
Universal function:
Last updated