I have a address- n3xYQtxvVwpBPSbgGsGRdMWz1YTUjakiMV
, amount that i want to send-1 BTC
and i have a private key
. How can i create a raw transaction using it and broadcast it to blockchain using bitcoin core.
I have tried this command:
bitcoin-cli createrawtransaction '[{"txid":"dbdc2e2c7f143af70c5e7e8725f55d226b3c058d7bf34a303091b3c6a514848c","vout":1}]' '{"n3xYQtxvVwpBPSbgGsGRdMWz1YTUjakiMV":1}'
and this: bitcoin-cli sendrawtransaction XXX