The concept of bitcoin mining (hash functions & the goal) are well elaborated on many sites. There are also lots of examples.
However, when going into real production I guess you need data like the latest hash, info about the block and transactions and so forth.
In addition, once you make your guess, you have to submit the work somewhere.
I can however not find any resources that explain where to do this? Is there an API to which you submit your work, to which you attach also your bitcoin address of your wallet, and once you make the right guess the btc is transferred to this account?
What are the bitcoin endpoints in my case?