Hey guys, I am just beginning to dive into Bitcoin development, but I have an idea that I want to prototype.
It basically is a webpage, where a user fills out a form and for doing that gets some BSV sent to his wallet (ideally paymail for convenience).
So after researching today, I've found this great resource https://gobitcoinsv.com/ which basically gives a lot of Bitcoin related functionality in form of Golang libraries. So far I mostly used Python for backend development, but as I've read Golang is actually really nice and I am eager to learn it.
Now I have very little idea of how the Bitcoin side of things actually work. And this is where I'd like to get some pointers perhaps.
I've seen that I can use the https://github.com/libsv/go-bt library to create a basic transaction to a wallet.
But how would I go on and plug in a paymail address rather than the wallet address?
Also are there any resources on how to create a proper transaction?
For instance, based on the example provided in the go-bt library, why would I put this
tx.From(
"11b476ad8e0a48fcd40807a111a050af51114877e09283bfa7f3505081a1819d",
0,
"76a914eb0bd5edba389198e73f8efabddfc61666969ff788ac6a0568656c6c6f",
1500)
in a transaction, what does the From part mean and why is it in the outgoing transaction?