EDIT: I am using android platform
I think I'm a bit confused conceptually. I would appreciate it if someone could answer these few questions for me as I'm trying to make an app so that I can be clear on exactly what's going on here. I'm trying to read and decipher the documentation at the same time.
-I have generated my address and private key using web3j ECKeyPair class
Now I need to be able to send that ether to an address using that data and I'm not sure how I'm supposed to go about doing it
-
I think I'm supposed to use something called a rawtransaction but again my understanding is hazy
-
I would also like to be able to encrypt my private key however I saw that it encrypts the data into a keystore file. Is there any way to clear out the unneccesary data here as I'm only trying to encrypt the private key using a password.
If a more knowledgeable member than myself could clear up the steps involved in "signing a transaction" so that ether can be sent from one address to another, you'd be a huge help to my design project.
I also don't understand how transactions can be signed offline as I thought the point in signing a transaction was so it could be verified by the network
Thank you.
Best Answer
You basically need to to three steps:
For step 1 you do something like this:
For step 2 you do:
For step 3 you do:
See Web3js documentation for more info.
Sorry, my answer is about Web3js, not Web3j. But, for Web3j steps are basically the same:
See official documentation for details.