Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
0
votes
0answers
31 views

getAccounts undefined recently

I've been using web3 v 0.20 and I recently noticed that getting accounts from web3.eth.getAccounts(function(error, accounts) { returns undefined. Is Metamask 7.2.1 forcing it to be undefined for ...
1
vote
2answers
77 views

How to check Ethereum smart contract info?

I want to know 3 things: Is an address a smart contract? Is this smart contract an ERC20 or ERC721 token? Is the Solidity code public?
0
votes
0answers
14 views

Which one is more secure and easier to mange among eth.accounts.create, personal.newAccount & eth.accounts.wallet.add

Here are what I knew about them: eth.accounts.create: Generate an address and private key for transaction but did not stored in anywhere. personal.newAccount: Create an account under node, so that ...
0
votes
1answer
23 views

Geth + Web3 | web3.eth.getAccounts() returns undefined

I have follow this SO answer for sending ERC20 tokens from 1 address to another. I am running into an issue where I am receiving an error that my from address is invalid Error: Error: ...
1
vote
1answer
25 views

How to call a function with params and check them

I want to create a smart contract that users can send a number to and receive an amount of ether. function airdrop(uint val) public payable { require(airdrop == true); if (val == 0x31){ ...
2
votes
3answers
121 views

How smart contract transactions work?

I read that smart contracts don’t have a private key, so they can’t sign a transaction. My question is: when a smart contract starts a transaction to an EOA, how are we sure that the smart contract ...
1
vote
3answers
86 views

Alternatives to Metamask

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?
1
vote
1answer
50 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(...
3
votes
1answer
58 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
30 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
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
19 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
0answers
14 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 ...
1
vote
1answer
44 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 ...
1
vote
1answer
33 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 ...
0
votes
2answers
38 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 ...
0
votes
0answers
44 views

How does UTXO fit into this schema?

I have been rather confused by the eponymous web3 stack introduced by the Web3 Foundation. https://wiki.web3.foundation/en/latest/tech_stack/Layer-0/platform_neutral_computation_description_language/ ...
1
vote
1answer
166 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....
2
votes
2answers
886 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 ...
0
votes
0answers
51 views

Metamask is not injecting account into remix IDE [duplicate]

I am working on remix and I have logged into metamask, but seems metamask is not injecting account into remix IDE. screenshot is attached. I have tried re-installing the metamask. I have tried re-...
1
vote
2answers
29 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?
0
votes
1answer
53 views

msg.sender 'spoofing' when function is public or external

I have a Smart contract where I want only the onwer to call a specific function, for example: function getInfo() view public onlyOwner() returns (address) { return msg.sender; } ..... modifier ...
0
votes
0answers
45 views

Ethereum node vs Ethereum accounts

From my understanding, one Ethereum node can have many accounts and only one of the account can perform mining in each node. So, my question will be what are the usage of other accounts in the node ...
1
vote
1answer
354 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 ...
-1
votes
2answers
124 views

What is deference between wallet address and account address?

I'm new in Ether world. I want to make mini Crypto exchange site with 2 coin ETH and BTC. What is deference between wallet address(maybe It's called Main Ether address) and account address ? or it's ...
0
votes
2answers
96 views

Original genesis.json file for ethereum mainnet, which should have 314 accounts allocation?

314 accounts are created at the start of ethereum frontier release and some funds were alloted to them. https://www.etherchain.org/charts/totalAccounts where can I get the genesis.json file used to ...
2
votes
3answers
267 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 ...
1
vote
2answers
41 views

Smart contract function call from many accounts

Lets say that I have a smart contract C witch has a function setf(uint256). Also let's assume that there are many users(with different accounts) that want to call that function with argument 5 for ...
0
votes
1answer
51 views

Multi-signature Ecrow time based?

I have a user A and a user B. They do not trust each other. So, they run the following smart contract: User A specify a time locked deposit of x coins to user B under a predefined condition( For ...
0
votes
1answer
32 views

creating account on button click

The question is i want to create new account per user on the ethereum blockchain. I want to display a form where in the user will enter information and on clicking register, his account should be ...
3
votes
2answers
1k views

Difference between web3.eth.getCoinbase() and web3.eth.getAccounts()[0]

What is the difference between web3.eth.getCoinbase() and web3.eth.getAccounts()[0]. In both cases, I always get the value, which is the currently selected account in Metamask. Note: The question ...
0
votes
1answer
53 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, ...
2
votes
0answers
53 views

Why account creation using CALL or SUICIDE costs 25000 gas? [duplicate]

CALL and SUICIDE both have additional cost of 25000 gas if it leads to account creation. At the same time, sending 1 wei in separate transaction costs only 21000 gas. Thereby if I am about to create ...
0
votes
1answer
209 views

Is there a way to set specific account when using truffle console rinkeby?

When I tested on ganache-cli at local, I could test on 'truffle console development' with some accounts which ganache-cli gave. But at rinkeby, I can't use function_name(argumets, {from: specific ...
2
votes
1answer
201 views

Transfer from multiple inputs

Is there a way to send ether from several input addresses in one transaction WITHOUT the use of smart contracts? I wish that different transactions could not be linked to each other. A similar ...
1
vote
1answer
51 views

Error while generating Mnemonic

I want to generate Mnemonic for creating an account, I was using the following code and I got the error as TypeError: Cannot read property 'entropyToMnemonic' of undefined I am sure I am missing ...
1
vote
2answers
184 views

Running 'parity account new' - is the generated account suitable for all networks (mainnet, ropsten, kovan, etc)?

From a command line, I run parity account new. I am then asked to enter a password (twice), and an account-address is printed. In addition to that, a JSON file is created. Finally, I use this ...
2
votes
2answers
137 views

Golang Equivalent to list accounts on node - web3.eth.Accounts()

Does anyone know if its possible to get a list of the accounts on a node using golang, after Dialing to the node, basic PoC would be assuming the accounts are already unlocked via the CLI Basically ...
0
votes
1answer
28 views

Accounts and Wallets

Testing the GethJS console commands. I put in practice the personal.listWallets and personal.listAccounts. The first return me this value: And the second command return me this: It seems that are ...
0
votes
1answer
22 views

Constructor set the account to the first trasaction address

I,m trying to block the call to the getOrigin function to accounts that are not equal to the account that is set in setOrigin function. Now the first account that call to setOrigin is the unique that ...
1
vote
1answer
305 views

Creating wallets with Web3j

I generate a code to create wallets for a private chain made with ethereum. String password = unlockAccountParameter.getPass(); ECKeyPair keyPair = Keys.createEcKeyPair(); WalletFile ...
0
votes
2answers
579 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 ...
1
vote
0answers
39 views

GETH accounts imported without my knowledge

I expose only port 30303, not 8545. But when I issue commands eth.accounts. I found these accounts were imported without my knowledge: "0xe4fe1fb7e693c529f5a95dd8b1714d1acfdbd058", "...
0
votes
1answer
219 views

Importing accounts into geth from metamask

I Have entered into my geth console geth eth.accounts ["0xf844f0d7acb0d01bf66ffd81809fb96b2236abce", "0xc8d94cb87173fc94c4b165e44a5fc0b047618044", "0x6a0ef1a429c3570cb342963d309dd5aaa9e49cd4", "...
3
votes
1answer
118 views

Getting Addresses using a Path causes the error: Could not derive hardened child key

I am using ethereumjs-wallet npm package to generate a unique wallet address for each user. However instead of using the mnemonic/seed, a public extended key xpub will be used instead to keep the ...
2
votes
2answers
42 views

Does a transaction always require a smart contract to be executed?

I had a discussion with someone explaining that every time a transaction occurs (e.g. ICO token or ETH) on Ethereum it would pass via a smart contract or would require one. I would like to know what ...
2
votes
2answers
102 views

Receive Ether to multiple addresses best practice

Say I am an exchange that has many users. When I ask a user to deposit ETH I give him a unique address so I can attribute the ETH to him. With Bitcoin this is easy. The bitcoin wallet software ...
1
vote
2answers
46 views

Is there any way to fund a new account privately via a randomising pool?

It isn't currently possible to create a new HD wallet account and privately fund it, is it? I'm aware of this thread, but I'm not asking about SNARKs. Instead, I'm curious if there's any way to send ...
0
votes
3answers
298 views

how do you check if the account exists in current state?

Currently there is no way to check somehow that an account exists in the trie. I am looking for something like this: > web3.eth.accountExist("0x743623152a53b53be5f3463746726373") true > Is a ...
3
votes
2answers
205 views

What actually happen when we unlock an account?

I know the purpose of personal.unlockAccount() function is to unlock account i.e. when I want to send ETH or tokens. After reading the documentation, I'm still not sure what is actually happening ...