Should Ethereum wallet need to be imported to a node to send eth from it using CURL JSON rpc?

by vasanthi   Last Updated March 14, 2019 19:28 PM - source

I created 2 wallets using MyEtherWallet. Noted down the private key, public key pairs. If I then use one of the wallet's public key as the from address and the public key of the other wallet as the to address and do the following on a testnet node,

curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"","to":"","value":"0x1c6bf52634000"}],"id":1}' ,

I get this: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"unknown account"}}

Why? Should I import the wallets to this node? If so, please let me know how.

Thanks



Related Questions




How does coinbase.com manage multiple addresses?

Updated December 19, 2017 16:28 PM


how to automatically transfer funds in geth

Updated July 18, 2018 11:28 AM