Closed tuncatunc closed 3 years ago
Hi, it depends on the format that bitcoin-cli requires for the private key, you can try using the WIF format with Bitcoin
Regards
Thanks a lot for this library and great documentation. Successfully created and signed and sent a raw bitcoin transaction on bitcoin test network. Used address's WIF private key.
It deserves 100 times more stars, for supporting a lot of network addresses out of box.
Hi 👋 all,
I want to sign a raw hex transaction with a private key generated with
py_crypto_hd_wallet
the private key is"raw_priv": "5e45c52f98729252619ac4e06036b54106020d10abf96165f278aebd32d5b9aa",
I've already a raw transaction
020000000144ccf76290ab6ff42fd4aa469cb4508125b531f67d670438631c5dcfc1e535fd0100000000ffffffff01409c0000000000001976a914270def551d3adba114b27fb25958689599a92ddc88ac00000000
then to sign the raw transaction, errs. Is my private key wrong?
./bitcoin-cli signrawtransactionwithkey $rawtxhex "[\"$raw_priv\"]"
bitcoin testnet wallet data is
Thx