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.

Filter by
Sorted by
Tagged with
1
vote
2answers
274 views

Ethereum wallet backup doesn't produce any files

I'm using ethereum wallet on windows 10. I have one account and I'm attempting to produce a backup of it. I do Accounts > Backup > Accounts and the file browser comes up, showing a directory ...
3
votes
2answers
41 views

Alternatives to Metamask [closed]

What are existing alternatives to metamask with that works online inside existing browsers, that don't require installing a browser extension? What are some of the tradeoffs between them?
0
votes
1answer
380 views

Web3.js unable to unlock account to call smart contract

I am using web3.js 0.20.6 and I want to unlock an account to execute a smart contract method on a private blockchain. The account is used to pay for the gas. I have used the following code to unlock ...
109
votes
3answers
72k views

How are ethereum addresses generated?

What criteria does a valid ethereum address need to fulfil? Is it just a random number in hexadecimal? Or does it need to be derived in a specific way, according to some cryptographic algorithm? What ...
7
votes
1answer
2k views

Error: etherbase address must be explicitly specified

When I make a RPC to geth running remotely, I cannot get the account list / balance of the account. It also says that the coinbase is not set. But as far as I know, isnt the coinbase supposed to be ...
10
votes
4answers
6k views

How to transfer the whole balance of an account?

If I have an account with 5 ETH, can I send the full account balance of 5ETH to another account and have exactly 5ETH received on the second account ? I understood that it will fail because I have no ...
2
votes
2answers
1k views

How to add a wallet to your geth account list

I just created a new account on myetherwallet.com and installed geth on windows. I opened cmd and typed in 'cd/' and typed 'geth account list'. In return, I got a warning saying there's no etherbase ...
1
vote
1answer
960 views

rinkeby balance says 0 after syncing even though transaction shows ether was sent

I'm using truffle to deploy a contract on the rinkeby testnet Here is transaction info saying that my address received ether however as shown below, the balance still shows as 0. truffle(rinkeby)...
5
votes
3answers
3k views

Automatically update account balance with web3.js without polling

I've made a user interface in JavaScript with web3.js where the user can select an account to use. The accounts are displayed together with their current balance for convenience. I load the account ...
1
vote
1answer
23 views

Both web3.eth.accounts.create() and web3.eth.personal.newAccount() not working

I'm making a dApp on reactjs. I wanted to create a new account and have done it trying 2 methods this.web3.eth.personal.newAccount() this.web3.eth.accounts.create() I have attached the code below(...
27
votes
3answers
3k views

Concurrency patterns for account nonce

The account nonce is the only element in the transaction structure that prevents replay attack (as explained in this very good answer). It essentially forces sequentialisation of an account's ...
0
votes
2answers
312 views

How to create unique contribution addresses for a referral system by smartcontract

I ran into some trouble with my smartcontract. I want to be able to allocate referral tokens to each person who participated in the ICO referral program. In order to do this, the smart contract must ...
3
votes
3answers
435 views

Is there a way to broadcast account addresses to other nodes in a private blockchain?

I am running a private blockchain and have a couple of geth nodes which are connected. I have multiple accounts on both the nodes. From node 1, through the admin.peers command, I can get the enode URL ...
4
votes
1answer
340 views

Create new account over IPC

I want to create a new account over IPC so I have started private chain with the below command geth --networkid=5 --datadir DataDir --ipcapi "db,eth,net,web3,personal" --ipcpath "/Users/smartSense/....
3
votes
1answer
42 views

Multiple Accounts on a single node?

I am a beginner and learning Ethereum. Can somebody please tell me if my understanding is correct? Q) There could be just 1 node running, but multiple accounts?
0
votes
1answer
45 views

dApp exploit using multiple wallets

Im currently building a dApp where users will create content that then can be bet on by other users. The design opens up the problem of a user creating content,logging in with another wallet address, ...
0
votes
1answer
25 views

Can I add my own fields to JSON files in the keystore directory?

I need to add a few fields to JSON v3 wallet file, can I do it ? What is Ethereum's policy on this? For example, to add account name I would do something like this: { "address": "...
0
votes
1answer
27 views

Where is storaged the publickey for any account?

I have been reading the Ethereum Yellow paperthat for any account there are four parameters: nonce balance storageRoot codeHash A transaction is signed using three parameters: r,s,v According to ...
1
vote
1answer
333 views

Is any valid address in Ethereum liable to receive payments?

Suppose I have generated a valid ethereum address, there are a no of ways of doing so including using Blockcypher's Generate Address API, using light-wallet etc. So I got a valid address, Now are ...
0
votes
2answers
52 views

What do I need to log into Geth?

I had to reformat my OS since the last time I did any mining and so I don’t have any of the data originally on my HD. I do have my Geth account # and assuming I can remember my password is that ...
1
vote
1answer
31 views

How do i create account remotely?

I have two servers, one for eth-node, one for web api and user db. I want to send request to create account from web server to eth server, but i see it can be created by running command like geth ...
6
votes
3answers
5k views

How can I detect change in account in Metamask?

When a user changes to a different account in metamask, is there a way to detect it asynchronously in code? I currently use this.web3.eth.getAccounts((err, accs) => { this.account = accs[0]...
6
votes
2answers
526 views

How many Ethereum contracts have been published?

Is there a place to see how many Ethereum contracts have been published? If someone wanted to calculate that, it would just be total number of accounts minus accounts with code, right? Any ...
1
vote
1answer
14 views

Scope Issue: Not successfully storing accounts after using web3.eth.getAccounts()

I am having trouble with the following code: var accounts = [] let accounts = await web3.eth.getAccounts((error, result) => { accounts = result; console.log(accounts); }); console.log(...
1
vote
1answer
16 views

Find keyfile of an account

I have several accounts in my Geth wallet. I need to locate the keystore file of a given account but there doesn't seem to be any connection between the keystore file names and the accounts. How do I ...
0
votes
1answer
71 views

Ethereum unlock account

Is there any way to unlock the ethereum account when using the infura api. Can only metamask do it? I would not like to use metamask because not every user has it on the browser
1
vote
1answer
72 views

How many non-empty accounts are there?

I am researching into the statistics of Ethereum and I an looking for a datum of how many non-zero balance account currently exist in Ethereum? I know that in total 30M of accounts were created but ...
0
votes
0answers
13 views

Difference between UTXO based smart contract and Account based Smart contracts [duplicate]

I want to understand the difference between UTXO based smart contract(Bitcoin scripting and Komodo's CC) and account based smart contract (Ethereum). What are the different pro and cons for these two ...
0
votes
1answer
57 views

When closing node (geth ropsten) I cannot save created accounts

I am pretty new to this. I downloaded the ropsten blockchain using a geth command line. Then, using Truffle, I created an account, but when I closed my node (ctrl - c on the geth command line) and ...
0
votes
1answer
207 views

Importing accounts into geth from metamask

I Have entered into my geth console geth eth.accounts ["0xf844f0d7acb0d01bf66ffd81809fb96b2236abce", "0xc8d94cb87173fc94c4b165e44a5fc0b047618044", "0x6a0ef1a429c3570cb342963d309dd5aaa9e49cd4", "...
4
votes
2answers
3k views

Is it possible in theory to generate the private key for the 0x0000000000000000000000000000000000000000 wallet?

Is there any chance, although extremely low, to generate the private key for the 0x0000000000000000000000000000000000000000 wallet? Does the system allow it at all?
0
votes
1answer
109 views

When I recreate an Account using a Mnemonic, will it also bring back its private key?

I guess my Question is straight-forward, I would like to know if using a Mnemonic to recreate or import an Ethereum (external) Account will actually make or "bring back" the whole KeyPair (public and ...
1
vote
2answers
28 views

is account nonce network dependent?

In Ethereum, does Account nonce depend on network? I mean for same address on different network, will there be different nonce?
1
vote
1answer
38 views

How to export mnemonics for a specific account in MetaMask

How can I get the mnemonics from a specific account in Metamask? I found the reveal seed words in the settings-dialog, but this seems to be something global. Instead of this I want to export the 12 ...
17
votes
4answers
8k views

Error “no key for given address or file” when unlocking coinbase account

Using json-rpc eth_unlockAccount() method I can unlock everyone of my node accounts except coinbase. When trying to unlock coinbase account, geth responds with the message: no key for given address ...
0
votes
2answers
486 views

Create account with web3j

Im trying to create a account using the web3j library. But i can´t find the method that create accounts. My idea is to make this judgment but not in the Geth console, but yes in the Java application ...
0
votes
2answers
304 views

How can I synchronize account between geth servers?

I have setup geth in 2 servers as a private testing Etheruem environment. In the 1st server, I have created accounts. For the 2nd server, I would like to build as a node to attach the 1st server. ...
0
votes
1answer
220 views

Local account to local node

If I create my wallet / accounts client-side with web3.eth.accounts how can I "publish" them on my local node? For example, I want to send some ether with an eth faucet to the first created account. ...
2
votes
3answers
160 views

Ethereum wallet Vs Ethereum account?

I created an Ethereum node (geth) and this automatically created an Ethereum account. Is this account an Ethereum wallet? I then created 2 other accounts using personal.newAccount() command. Are these ...
0
votes
1answer
245 views

how to import UTC-JSON file through web3-eth methods

hey I am working on ethereum wallet. in this i want to import my account through UTC json file, but i didn't find any solution for this in web3-eth command someone can please help to find out the ...
1
vote
1answer
134 views

How to save new account in ganache-cli [duplicate]

I use ganache-cli --db to create a private test chain and save it on my computer, and the result is below: I use web3py w3.personal.newAccount('1') to add a new address, and I use print(len(w3....
0
votes
2answers
34 views

Load accounts to truffle

I'm using truffle v5.0.14 to handle my contracts. All was well while developing with ganache, but when I wanted to deploy to the real network (a private one) I have problems with the account. The ...
1
vote
1answer
202 views

Ethereum Miner validation

I have created a private block chain with three Peers. Peer A is having an account which is having 20 ether. Now I am trying send 21 ether from peer A's account to peer B's Account. It is not throwing ...
2
votes
2answers
758 views

Issue with New version of Metamask: Remix cannot detect the Metamask address

I have just installed Metamask version: 6.3.1 Now in Remix, the address of my account in metamask is not detected. The account box in remix remains always blank now (see picture below). Note that I ...
1
vote
1answer
979 views

How to get the balance of a contract using web3.js?

I have deployed a contract as follows and determined its balance to be 5000 wei (value: 5000): const thisContract = new web3.eth.Contract(abi); thisContract.deploy({ data: bytecode, ...
0
votes
2answers
929 views

JSON RPC get address balance

I'm trying to get the ether balance for any ethereum address. I've set up a node with the Ethereum daemon, but as far as I can tell, using eth_getBalance you can only get the balance of your own ...
0
votes
1answer
276 views

Unable to unlock account created by php script

I'm using geth over rpc in my php script for a website. In my script I've created a random passphrase that I store in a file so I can use it later to unlock the account. So, to keep thing simple I ...
1
vote
4answers
400 views

How to implement a watching wallet for thousands/millions of addresses

I need to check for customers' deposits and need to scan for receiving transactions for those addresses for Ether and in next step ERC-20 tokens. What's the most efficient way to do this with go-...
0
votes
1answer
741 views

How to use not personal account web3

In my previous post I got answer but still I need some clarifications let say when deploying contract with node js we have this line try { web3.personal.unlockAccount(web3.eth.coinbase, ...
1
vote
1answer
268 views

Accounts created by using web3.eth.accounts.create() don't appear when web3.eth.getAccounts(console.log)

I am new to Ethereum. I am running a geth devnode. Installed web3. Used web3.eth.accounts.create function to create one account without any entropy and created another account by using the same ...