Basically you run full node for every currency like bitcoin core for bitcoin. Full node download entire blockchain and keep you up to date with transactions, they also allow you to do all sort of operation like get new address, send money and etc using json-rpc api. You can read more about full node api here https://bitcoin.org/en/developer-reference#bitcoin-core-apis