As of now whenever I try to perform any operation by invoking any of the methods of a contract it expects to unlock the account. Now the account which is used to perform the transaction, has to pay the price to perform the transaction.
So in a live environment want to understand how it works.
Lets say have a Book Lending DApp where one user can lend books by invoking a method of DApp. Hoping that the web interface of the DApp will be hosted on a server and the contracts are deployed on the block chain. The contract instances are initialized and the addresses are used internally in the DApp.
We know that the host name and port of the blockchain node is configured in the web app.
Questions:
1. So want to understand how will that single instance of the DApp will be used to be invoked by each node in the blockchain network?
2. In the web interface how to determine current user's address dynamically?
3. Is the user expected to keep his/her account unlocked while performing activities on the DApp otherwise every time when performing any transaction unlock it manually?
Am sure missing something pretty obvious.