No "from" address specified in neither the specified in neither the given options nor the default options

No "from" address specified in neither the specified in neither the given options nor the default options

Manage alerts

Loading saved threads...

Dipti Belurgikar · External communityPost link
External question — Ethereum Stack Exchange Author: Dipti Belurgikar Original post: https://ethereum.stackexchange.com/questions/69032 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. 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?
Quote
Report
Mikhail Vladimirov · External communityPost link
External answer — Ethereum Stack Exchange Author: Mikhail Vladimirov Original post: https://ethereum.stackexchange.com/a/69034 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. 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.
Quote
Report
Moliholy · External communityPost link
External answer — Ethereum Stack Exchange Author: Moliholy Original post: https://ethereum.stackexchange.com/a/76994 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. 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).
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External answer — Ethereum Stack Exchange Author: Mikhail Vladimirov Source score (net votes, not local likes): 0 Original post: https://ethereum.stackexchange.com/a/69034 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. 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.

Cancel quote

Checking account access…