Can I send BTC from other node or wallet with my address?

0

I'm trying to send bitcoins from node2 with my address using private key noted that my address is created in node1.I followed this link: "https://en.bitcoin.it/wiki/How_to_import_private_keys" I dump private key in node1 using this command:

bitcoin-cli -testnet -rpcuser=test -rpcpassword=test123 dumpprivkey "2N7YvA6ZBjFvXE3wuNQH4csev1QUWtrzYgA"

Then I imported private key in node2 through this command:

bitcoin-cli -testnet -rpcuser=test -rpcpassword=test123 importprivkey cNKbGVQvQgJsJuRy25ggZ71BRA9UZyEPCMekdntnZDWjYTg9TpRu

now I want to send bitcoin from node2 with my address to different address

can anyone please give me solution to make transaction using my address private key thanking you in advance

Chandu candy

Posted 2019-01-31T07:17:36.503

Reputation: 1

Does this help: https://bitcoin.stackexchange.com/a/58755 ?

MCCCS 2019-01-31T07:40:34.077

Answers

0

You can use createrawtransaction to create a raw transaction, in which you can specify your custom inputs and outputs. In this case you would specify the input to be the address from node2, and output/outputs to be addresses you are sending bitcoins to. Use signrawtransaction to sign raw transaction it using your imported private key and sendrawtransaction to send it to the network.

zabbir

Posted 2019-01-31T07:17:36.503

Reputation: 61