hi, I'm interesting with mining using bitcoin core. First I'm getting required mining data using getblokctemplate.
If I found correct nonce how can I submit block to network. I know that there is submitblock command in bitcoin core but I don't know how to build block hex data.
Thanks for advice.