In this section you'll use a keyring to sign an extrinsic.
How to send tokens using Polkadot API
// Sign and send a transfer from Alice to Bob
const txHash = await api.tx.balances
.transfer(BOB, 12345)
.signAndSend(alice);
// Show the hash
console.log(`Submitted with hash ${txHash}`);