I find this all very stressful. I've now downloaded BitcoinCore and the blockchain, and created a raw transaction that looks something like this:
{
"txid": "FirstLongNumber",
"hash": "FirstLongNumberagain",
"version": 2,
"size": 158,
"vsize": 158,
"locktime": 509839,
"vin": [
{
"txid": "PublicKeyForMyMinedBitcoins",
"vout": 0,
"scriptSig": {
"asm": "SecondLongNumber[ALL]",
"hex": "ThirdLongNumber"
},
"sequence": 4294967294
}
],
"vout": [
{
"value": 49.99943486,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 FourthLongNumber OP_EQUALVERIFY OP_CHECKSIG",
"hex": "FifthLongNumber",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"MyLedgerAddress"
]
}
}
]
}
I've redacted all the long numbers just in case there's anything sensitive there. The big 'gotcha' it seems is that if you're not careful and don't either spend the lot in one transaction or create a second output going back to yourself, then any change will go to the miners. The intuitively sensible thing to do is to send one bitcoin just to test and see whether it works, with the intention of sending the rest later. This would be a very bad idea as you would be donating a mining fee of 49 bitcoins!
So there ends the limits of my understanding of raw transactions. I'd be very grateful if anybody knowledgeable could look over the redacted transaction and tell me whether there's anything else I might have gotten wrong?