Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing transaction before broadcasting #9054

Closed
cleo1552 opened this issue May 16, 2024 · 2 comments
Closed

testing transaction before broadcasting #9054

cleo1552 opened this issue May 16, 2024 · 2 comments

Comments

@cleo1552
Copy link

Transaction Hash
48fb3d15e828a31aab6ae17b6f5b14333d0701a9358f9d2ea57655c32cb53b90
Summary
Height
175
Confirmations
843,477
Timestamp
2009-01-11 20:17:56
Size (134
)
134 Bytes
Virtual Size
134 Bytes
Weight
536
Status
Confirmed
Input
50.00000000 BTC
Output
48.00000000 BTC
Sigops
2
Fees
02.00000000BTC
Fees Rate(BTC/kVB)
0 BTC

Transaction
Input (1)50.00000000 BTC

1917k1LUodPbbjJenczkVaGyJpSj8CqYTC
50.00000000

Output (1)48.00000000 BTC

bc1qdqzxtw5vxfw6dz0a9ud2frkx74vv5tcr7vwcc6
48.00000000

Input Scripts
P2PKH_PUBKEY
042d5b363ff00d911478e80cd101f7b0fca09126b9a6c98979fa15b251f3accebfd390ffe1132b97d73f37f79da7fdb747b2942d6f7f78c5da9401fd19120f00ce OP_CHECKSIG

OUTPUT SCRIPTS
P2PKH_PUBKEY
IHEP78PNqFOD9ZA9HIhtWlZdZpg+6ebxD3xH4Xr7zJZRNUQtuDi8xZIy7gdwG78CB4x5sWcx5D8LK1fORBzRnyE=

@cleo1552
Copy link
Author

is this format correct to broadcast if not can someone please help me to correct it im trying to spend a utxo of coin base

@SomberNight
Copy link
Member

To broadcast a transaction, you need it to be in raw hex format.

  • How are you trying to create this tx?
  • In what format do you have the private key for that old coinbase? If you have it as a WIF key, it is easiest to use the "sweep" functionality in Electrum.

However, sweeping like that requires entering the private key on an online PC. Electrum currently does not support creating a watch-only wallet for a P2PK script, which would be necessary to offline sign a tx.
Considering it is a lot of money, if you have the WIF key, you should probably just use Bitcoin Core. Create a wallet there using the WIF key on an offline PC. Export output script descriptors and use those to create a watch-only wallet on an online PC, then create an unsigned tx on the online PC, export that and sign it on the offline PC, then broadcast the signed tx on the online PC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants