When I request getblocktemplate, coinbaseaux flags is empty. Also coinbasetx is not included which I understand need to be calculated. Where is complete example of how to create that one ? Wiki example just assums conbasetx in included in response which is not. I want to create coinbase with all rewards going to single wallet address.
{
"capabilities": ["proposal"],
"version": 536870912,
"rules": ["csv",
"segwit"],
"vbavailable": {
},
"vbrequired": 0,
"previousblockhash": "00000000000000000011f84134ea90036cf16260ef1e2532af2ad4c4128833fa",
"transactions": [],
"coinbaseaux": {
"flags": ""
},
"coinbasevalue": 1390108740,
"longpollid": "00000000000000000011f84134ea90036cf16260ef1e2532af2ad4c4128833fa6254",
"target": "0000000000000000006c21460000000000000000000000000000000000000000",
"mintime": 1517434058,
"mutable": ["time",
"transactions",
"prevblock"],
"noncerange": "00000000ffffffff",
"sigoplimit": 80000,
"sizelimit": 4000000,
"weightlimit": 4000000,
"curtime": 1517440540,
"bits": "176c2146",
"height": 507012,
"default_witness_commitment": "6a24aa21a9ed63d9ce8e02cbe0c044825f7448ebd2819c3af1390057183bee668219e159be2a"
}