double spend 1o1
take the raw TX ->
https://blockchain.info/tx/f128aab7a68e803f84fd7d94b2de8873745d21ce709063e3b964fcaca7273a0f?format=hexdecode it (e.g. using bitcoin core):
{
"txid": "f128aab7a68e803f84fd7d94b2de8873745d21ce709063e3b964fcaca7273a0f",
"hash": "f128aab7a68e803f84fd7d94b2de8873745d21ce709063e3b964fcaca7273a0f",
"size": 192,
"vsize": 192,
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "b6c57e3ac43691343e47753ee2d7ce894ec6889cc48cd8b2888bb4b28f01e9e0",
"vout": 1,
"scriptSig": {
"asm": "3045022100feaf323ba4eb8ea1a00ba5c1d67e4ec04fc4ab469f5484fdf5a94c44fb6b731002204df83d8358c6626f8f7fc0aaed81032ab83b03e5188255169db05fc98153f651[ALL] 02d3eec7636c06f76aa70693705c8e5eaaad156076d1050fe4984b2c2ed370ec50",
"hex": "483045022100feaf323ba4eb8ea1a00ba5c1d67e4ec04fc4ab469f5484fdf5a94c44fb6b731002204df83d8358c6626f8f7fc0aaed81032ab83b03e5188255169db05fc98153f651012102d3eec7636c06f76aa70693705c8e5eaaad156076d1050fe4984b2c2ed370ec50"
},
"sequence": 4294967295
}
],
"vout": [
{
"value": 1.12254704,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 7f04594f277ea3c930f31a3acc819872c8426f84 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9147f04594f277ea3c930f31a3acc819872c8426f8488ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1Cac2XZGmUv3NNxuaqTm81iDMfyDG5kLmH"
]
}
}
]
}
Take you favorite boiler:
"[
{\"txid\":\"1\",\"vout\":23},
{\"txid\":\"2\",\"vout\":4},
{\"txid\":\"3\",\"vout\":1},
{\"txid\":\"4\",\"vout\":0}
]"
"{\"1addr\":0.00001234}"
and replace as needed with the data from the decoded tx:
"[
{\"txid\":\"b6c57e3ac43691343e47753ee2d7ce894ec6889cc48cd8b2888bb4b28f01e9e0\",\"vout\":1}
]"
"{\"1Cac2XZGmUv3NNxuaqTm81iDMfyDG5kLmH\":1.12264304}"
estimate the size (192 byte) and take a current fee prediction, e.g. from ->
https://bitcoinfees.21.co/ (100 satoshi per byte) and substract from the amount to send.
1.12264304 - (100*192)/10
8 = 1.12240000, make it round to add a little extra
"[
{\"txid\":\"b6c57e3ac43691343e47753ee2d7ce894ec6889cc48cd8b2888bb4b28f01e9e0\",\"vout\":1}
]"
"{\"1Cac2XZGmUv3NNxuaqTm81iDMfyDG5kLmH\":1.1224}"
make it a raw transaction (e.g. using bitcoin core)
0100000001e0e9018fb2b48b88b2d88cc49c88c64e89ced7e23e75473e349136c43a7ec5b60100000000ffffffff0180a5b006000000001976a9147f04594f277ea3c930f31a3acc819872c8426f8488ac00000000
Decode it to double check you didnt fuck it up somewhere.
{
"txid": "ebfe9c81f5703412c599397e765327af5158dd594853c9b6a9cb84d11e7cef73",
"hash": "ebfe9c81f5703412c599397e765327af5158dd594853c9b6a9cb84d11e7cef73",
"size": 85,
"vsize": 85,
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "b6c57e3ac43691343e47753ee2d7ce894ec6889cc48cd8b2888bb4b28f01e9e0",
"vout": 1,
"scriptSig": {
"asm": "",
"hex": ""
},
"sequence": 4294967295
}
],
"vout": [
{
"value": 1.12240000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 7f04594f277ea3c930f31a3acc819872c8426f84 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9147f04594f277ea3c930f31a3acc819872c8426f8488ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1Cac2XZGmUv3NNxuaqTm81iDMfyDG5kLmH"
]
}
}
]
}
sign it
- cant, dont have the priv. key -
broadcast it after enough time has passed (usually 72 hours) so the network has forgotten about the first transaction or contact a miner directly.
Not sure what exact format you need for electrums .txn files.