I am trying to build a small app that would rely on a private Ethereum Blockchain. I am relatively new to this and am still having a few questions about the whole process. I will try to be as clear as I can explaining the difficulties I am facing.
What I have
- A running private blockchain, installed on a specific server (that I manage)
- A working synchronisation between multiple nodes
- A smart contract that I have written
What I want to do
- I want to add the smart contract to my private blockchain
What I am trying now
- I am using
Browser-Solidity
and selected theWeb3 Provider
, where I wrote down the IP address of my server and the port8545
.
I then see the Create
button... but am told that the account is locked.
Here are my current thoughts:
How do I know which account is to be unlocked? When I type
web3.eth.accounts
, 4 accounts are returned...I tried unlocking an account but I am running into the following error :
Failed to unlock account (no key for given address or file)
. I do not remember setting up a key for any account. Am I doing something wrong? How can I get past this step?I am guessing that once the smart contract will be added to my private blockchain, it would have to be mined. How would I go on and do this? Would it be by simply executing
miner.start()
from one of my nodes? Every time I mine, it never stops until I make it stop, and to be honest, I haven't really understood what is being mined.
Looking forward to your input, I appreciate any kind of help!