Sure you need to use this structure, supplied that the bitcoin node you do not management does not know your personal keys for any handle you utilize.
What you wish to do is use a good library, as an example electrum consumer, however there are numerous libraries in lots of languages accessible to do staple items.
From electrum consumer as an example, you may:
- create handle (pockets, maintain personal)
- create uncooked transaction (unsigned, and simply assortment of utxos mainly)
- signal transactions (maintain personal keys personal), output hex of signed tx is secure to then broadcast
- broadcast transactions
Electrum consumer is usually referred to as SPV mode (easy cost verification). That is the protocol used for lite shoppers, cell wallets and so forth.
When you signal your transaction, it may be broadcast through the bitcoin node you do not management, a public electrum server, or an explorer that provides relay through an api. Some mining swimming pools provide transaction broadcasting as properly.
The principle factor to be hyper-vigilant about is that you just maintain your personal keys (wif) secret.
As for getting a “callback” about transactions to your pockets, you need to use an explorer to ballot your addresses for brand spanking new transactions. Additionally utilizing an electrum pockets will provide you with the flexibility to do all of this as properly.

