Questions tagged [accounts]
Ethereum has two types of accounts: externally owned user accounts, controlled by private keys, and contract accounts, controlled by their contract code.
547
questions
2
votes
0
answers
22
views
Cannot send transaction to smart contract, 'unknown account' even with account added to wallet
I am trying to send a transaction that updates the state of a smart contract. I have locally deployed a ethereum network using Geth and three VM.
Here is my JS code:
import { Web3 } from 'web3';
...
1
vote
2
answers
52
views
What are touched accounts?
I've seen this term used a lot in EIPs and client implementations. But I've never seen it defined properly. What does it mean, precisely, for an account to be "touched"?
For example, here's ...
0
votes
1
answer
93
views
How to use anvil accounts in the Foundry Test
How can i use anvil accounts into the foundry tests? Like in hardhat node i can getNamedAccounts() but how can I use the anvil accounts into my forge Tests?
1
vote
1
answer
24
views
Why not eliminate EOA's codeHash and storageRoot?
Each account (no matter EOA or contract) has 4 fields: balance, nonce, codeHash, storageRoot. However, codeHash and storageRoot are meaningful only in contract accounts. There is no code in EOA, and ...
0
votes
2
answers
30
views
Can a user send a userOperation transaction without using theirs or any EOA?
How can a user send a userOperation without having to use an EOA?
Don't get how the EOA is abstracted, unless there is an Executor account signing those userOperations
0
votes
0
answers
10
views
I got Session proposal trying to log in to Opensea: Events: chainChanged, accountsChanged
Would really appreciate your help. Is that a scam? I cannot log in without resolving the wallet Session proposal. So far i have denied request several times. What happens is i Approve?
NetworkEthereum
...
2
votes
1
answer
119
views
Deriving an address from a private key programmatically
I'm stuck between a rock and a hard place right now.
I'm developing an app with react native, and users need to be able to import their wallets via their private keys (and hopefully mnemonic phrases)
...
0
votes
0
answers
86
views
HD Wallet Generate independent Phrase Mnemonic
I want to generate a independent Mnemonic Phrase, but with the code generate the same Mnemonic Phrase:
import threading
from hdwallet import BIP44HDWallet
from hdwallet.cryptocurrencies import ...
0
votes
1
answer
31
views
How to get total assets value in dollars of a wallet via web3?
I want to check the total assets value in dollars of a wallet.
For example, I just want to check how much asset (Ethers, erc20 tokens) does a wallet hold in form of dollars? e.g: 2000$ worth of assets ...
1
vote
0
answers
29
views
State Size of Ethereum - why is it so hard to get this number
I am looking for the current state size of Ethereum. Not the size of the data a client downloads when syncing. Just the current state size. It's super hard to get those numbers. Can I somehow run Geth ...
0
votes
0
answers
352
views
window.ethereum.request({method: "eth_requestAccounts"}) automatically picks the connected account when making a transaction
I have multiple accounts on my Metamask wallet(Most of them are connected to the site). But my selected account is not connected to the Dapp. So, when I try to send a transaction it uses one of the ...
2
votes
2
answers
1k
views
I need a whole new MetaMask account, with a whole new seed phrase
No one can seem answer this for me. My old business has my seed phrase. this never bothered me b/c there was never more than a $100 in there. Now it does. How to set up a new account? Not a new wallet,...
2
votes
0
answers
64
views
How would you setup a block listener in rust using web3?
I was wondering if it would be possible to have a function that listens to new blocks and checks for a balance update for an account. I believe you need to use the filter builder but not sure how to ...
0
votes
1
answer
102
views
Do Smart Contract wallets using ERC4337 allow wallet export?
From what we see in the ERC4337 documentation, SCW allow different architecture for transaction approvals. Unline EOA where we use ECDSA for signing transaction, with ERC4337, wallet developers will ...
0
votes
0
answers
32
views
Where can I get the password(s) of locked accounts of Ganache from?
I created a workspace in Ganache so that I've enabled Lock Accounts feature (You can see that in the below photo) in the workspace set up process. So, What is the password to unlock accounts? Where is ...
8
votes
4
answers
1k
views
EIP-4337 account abstraction and losing private keys
The big problem we all know in ethereum is, losing private key for your EOA is dangerous. If somebody steals it, you're done, all your assets are gone.
It's said EIP-4337 solves it by separation of ...
1
vote
1
answer
588
views
Who pays the computation fee in account abstraction ERC-4337? in what currency?
I hear that by imposing account abstraction specified in ERC-4337 EOA is not the only one that can instantiate a transaction.
What I'm confused about is the actual entity that pays the gas fee and the ...
0
votes
1
answer
295
views
Where can I find an example of a sponsored transaction (ERC-4337)?
I know this is the standard repo but I am not finding an actual example on how I can send a transaction from an account, paying for gas fees in an ERC20 token (paymaster providing ETH once tokens are ...
0
votes
1
answer
24
views
What is the relationship between wallet/accounts and Client Nodes?
For client nodes such as Parity or Beth, does every wallet or account have to be associated to a client node? My understanding is that the client node is the interaction to the exchange.
0
votes
0
answers
32
views
Nethereum Keystore and Wallets
I am using Nethereum KeyStore to store privateKeys. It looks like in order to save private keys for the wallet, you will need the account addresses and index ahead of time. What is the index referring ...
0
votes
1
answer
95
views
Nethereum: What is the relationship between Wallets and Accounts?
I am using Nethereum for .net.
I am reading this: https://docs.nethereum.com/en/latest/accounts/
I am also reading this: https://docs.nethereum.com/en/latest/Nethereum.Workbooks/docs/nethereum-...
0
votes
1
answer
513
views
Hardhat Tasks - How to import an account with a private key as signer
I am writing a Hardhat task. Hardhat ethers provides ethers.getSigners()which returns me the addresses derived from the mnemonics saved in process.env.
However, I want to use an account address, of ...
0
votes
1
answer
50
views
How to create a wallet for ETH?
I'm a bit confused on the process now of creating wallets in the Ethereum ecosystem.
At this time I'm creating an application that allows users to create their own wallets but I'm very confused on the ...
0
votes
2
answers
166
views
Can't load ethereum object from metamask-react in TypeScript
I am trying to add this code to handle the change of accounts in Metamask...
ethereum
.request({ method: 'eth_accounts' })
.then(handleAccountsChanged)
.catch((err: any) => {
// Some ...
3
votes
2
answers
609
views
Can one wallet address have multiple private keys?
On the forum there were some threads about people creating multiple public keys from one private key. I am wondering if the reverse is possible as well. Can 2 private keys create 1 public key. I am ...
0
votes
0
answers
44
views
How to change account password using geth javascript console
I am using latest 1.10.26 geth released, and want to change the password of an existing Ethereum account by using geth javascript console, but haven't found any relevant information in the ...
0
votes
1
answer
4k
views
disconnect account with ethers.js
I created a connect button in my dapp wich calls 'eth_requestAccounts' to connect an account to my dapp like this:
await window.ethereum.request({ method: 'eth_requestAccounts' });
or like this:
...
4
votes
4
answers
638
views
Account Abstraction still requires EOA signatures?
I was under the impression that with account abstraction, I would be able to directly initiate smart contract calls without an EOA. However, after reading through zkSync's Account Abstraction example, ...
3
votes
1
answer
1k
views
How to generate thousands of wallets out of a mnemonic phrase?
I have this code which generates a single wallet:
const ethers = require('ethers')
const wallet = ethers.Wallet.createRandom()console.log('address:', wallet.address)
console.log('mnemonic:', wallet....
0
votes
0
answers
92
views
why cant smart contract receive ether like externally owned account without a receive/fallback function?
why do smart contracts requires a receive function to accept ether? what prevents the smart contract from receiving ether like an externally owned account(EOA) directly without any functions?
What was ...
0
votes
4
answers
383
views
remix could not detect the metamask's account
I find that unlike the other tutorial, there is no injected web3 option, but injected provider - metamask. And when I click it, the metamask shows that it is connected, however, the remix could not ...
1
vote
2
answers
27
views
My additional accounts are gone
Now my metamask crashed and I had to reinstall.
Only my original account is showing, not the additional 9 account which were created on the original account.
Is there any way to link these other ...
2
votes
2
answers
928
views
Is there a way to find out the first transaction sent TO an account?
Is there a way to find out the first transaction sent TO an account?
Hey everyone, I know that given an address, I can check if a given transaction is the first tx.from by checking its nonce. Nonce == ...
1
vote
0
answers
58
views
sign message with account imported from private key
I try so sign my message but i have this error:
Error: Provided address [object Object] is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.
...
2
votes
0
answers
72
views
How to effectively gather ETH across multiple accounts?
I have a online payments service which allows clients to pay with ETH. For each client paying, I generate a new ETH deposit address. When the funds arrive, I can then mark the clients invoice as paid, ...
2
votes
0
answers
67
views
I don't understand this part of the Ethereum Documentation (storageRoot)
This is from the account part of the Ethereum Docs, 4 fields of an account were described of which i am unable to understand this one.
(storageRoot)
0
votes
1
answer
68
views
What is 'value blindness' in the ethereum whitepaper?
Vitalik wrote the following in the Ethereum white paper.
Value-blindness - there is no way for a UTXO script to provide
fine-grained control over the amount that can be withdrawn. For
example, one ...
0
votes
1
answer
67
views
How accounts are protected from sending money from it to smart contract
I wondering how accounts are protected from sending money from it to smart contract
example code:
smart contract
pragma solidity >=0.4.22 <0.9.0;
contract TransferService {
mapping(address =...
0
votes
1
answer
235
views
Can't connect metamask to React app in production
I have a React app that can connect to my browser's Metamask in my development environment, but the version deployed on Netlify can't connect to Metamask. My code for getting my web3 provider is
...
0
votes
2
answers
79
views
Deleting values from a struct
how do i go about removing values from inside a struct and or a mapping. For example iam creating a smart contract that acts kind of like a vault, iam not yet finished but i have a create an account ...
0
votes
1
answer
42
views
Are wallet addresses in the crypto exchange website actual ethereum accounts?
a newbie here,
I am trying to understand how ethereum based CEX's work. Users create accounts/wallet addresses (not email-linked user accounts) on the exchange. Are those addresses actual ethereum ...
0
votes
1
answer
83
views
Distinguish between function calls from externally owned accounts, and from another smart contracts
I wanted to know how to distinguish between a function call from an externally owned user account and a function call from another smart contract in solidity. Can anyone help me with this?
1
vote
1
answer
591
views
Telling contracts from EOAs using ethers.js
I'm trying to figure out whether a given address is:
a contract
an EOA
unknown
I know that only contracts can have code. Therefore, provider.getCode(address) returning anything but 0x tells me ...
0
votes
1
answer
427
views
Why is the method in receive() external payable{this.withdraw Funds();} not called in Solidity?
I wrote a smart contract that, when receiving money to my address, should automatically transfer 50% to the 1st wallet address, 25% to the second, 25% to the third.
For some reason it doesn't do it ...
0
votes
0
answers
44
views
How to make it so that when money comes to the Metamask wallet, they are automatically redirected to this smart contract? [duplicate]
I wrote a smart contract on Solidity, which, when receiving money to its address, redirects 50% to the first wallet, 25% to the second wallet.
How to make it so that when money comes to the Metamask ...
1
vote
1
answer
621
views
How to transfer ethers from a contract to another SPECIFIC address?
I want to write a smart contract that, when receiving money, transfers 50% to a specific address of the first wallet (0x583031D1113aD414F02576BD6afaBfb302140225)
and transfers 25% to a specific ...
0
votes
2
answers
111
views
Integrating metamask with customer profile
We are heading for "traditional" consumer markets for which Blockchain is mostly unknown. Therefore we are seeking for possibilities to keep the blockchain as "far"/unvisible for ...
1
vote
1
answer
90
views
Use getAccounts on metamask to identify user. Some security issue?
I want to make a page that uses the user's account address to release certain private content for him/her. The idea is to get that information from metamask. I would like to know if there is any ...
2
votes
1
answer
1k
views
encode SignTypedDataV4 using encode_structured_data in python
TL;DR
I am trying to use web3.py and eth_account to encode and sign a EIP-712 message with arrays and I am running into an error:
KeyError: 'address'
So, how can I encode this message?
Context:
...
0
votes
1
answer
670
views
locked vs unlocked account in Ganache, what is the password?
I still don't understand this issue of locked and unlocked account, so I decided to test it with Ganache. I can transfer ETH from one account to another using sendTransaction with no problem. So I ...