So I already went through this query, but I still couldn't get my doubt solved. Be it any Blockchain Dapp, the same error is coming for me. I used the marriage certificate and kickstart examples.
Can anyone please help me with this?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communitySo I already went through this query, but I still couldn't get my doubt solved. Be it any Blockchain Dapp, the same error is coming for me. I used the marriage certificate and kickstart examples.
Can anyone please help me with this?
In your DApp you are probably calling some of those Web3 API functions that do publish transactions to blockchain (e.g. web3.eth.sendTransaction), or some non read-only functions of some smart contracts. And you probably didn't provide value for from
parameter, i.e. you didn't tell what private key to use to sign the transaction.
As long as every transaction has to be signed by some private key before being published into blockchain, you transactions cannot be published, and thus you get error message.
Regarding your code, your probably just don't have any accounts.
It seems you are providing a from
parameter when executing the send
function. In that case, make sure the node you are using has accounts already created, and those accounts have funds.
If you are using ganache it all should be ready out of the box. Otherwise you're probably using geth in a testnet. In that case you must create an account there and send some ether through a faucet (or real ether if on mainnet).