I am using web3j library (and have a smart contract named Contract) and was wondering whether the node supplied to the
Contract.deploy() method should match the
msg.sender? I understand that the msg.sender resembles the caller of the contract but in web3j, I deploy the contract by passing the node and then load the contract by passing the same node. So, I assumed the
msg.sender should be the same as the node that I passed. But it doesn’t look like it. Can anyone pl tell me what I am missing here?
Also, how do you get the address of the node using web3j? Is the
getAddress() method in
Credentials the right way?