If you like using Python, try the Cardano-Tools library that I put together. Its basically a smart wrapper around the CLI that takes care of extra steps for you (likesuch as selecting athe UTxO(s) so you. You need the cardano-cli
installed and a synced cardano-node
running. Below is some example code.
from cardano_tools import ShelleyTools
# Test Inputs (example paths)
path_to_cli = "/home/user/.cabal/bin/cardano-cli"
path_to_socket = "/home/user/relay-node/db/node.socket"
working_dir = "/home/user/.cardano-tools/"
# Create a ShelleyTools object
shelley = ShelleyTools(
path_to_cli,
path_to_socket,
working_dir,
network="--mainnet" # Can also use testnet magic here
)
amt = 10 # Ada to send
to_addr = "addr1..." # Address to send the ADA to
from_addr = "addr1..." # Address to send the ADA from
key_file = "/path/to/addr.skey" # path to the signing key file
shelley.send_payment(amt, to_addr, from_addr, key_file)
Note that you need the signing key file that belongs to the specific address that you are sending the ADA from.