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
1answer
19 views

The send transactions “from” field must be defined using Infura web3

when I try to send my transaction using infura I get this error "The send transactions "from" field must be defined" My problem is my web3 object. When I used Metamask and ...
2
votes
4answers
620 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
617 views

Web application for remote users to create Ethereum account

Say that a machine is running an Ethereum client (geth or Parity), and it also has a web application (running as a NodeJS server, say) that provides a front-end to users and communicates with the ...
0
votes
1answer
70 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
2answers
35 views

Unknown Accounts suddenly appearing in MetaMask wallet…?

My MetaMask wallet has multiple accounts which I did not create. I have no idea how they there. Is my MetaMask wallet compromised? Or is this normal that MetaMask creates new wallet addresses when ...
0
votes
1answer
317 views

Importing accounts into geth from metamask

I Have entered into my geth console geth eth.accounts ["0xf844f0d7acb0d01bf66ffd81809fb96b2236abce", "0xc8d94cb87173fc94c4b165e44a5fc0b047618044", "0x6a0ef1a429c3570cb342963d309dd5aaa9e49cd4", "...
1
vote
1answer
93 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 ...
0
votes
3answers
48 views

Can an NFT (e.g. ERC721) simultaneously belong to two different entities, say an user Owner, as well as a user Custodian?

For example, on the blockchain say you own a ERC721 Car token at your wallet address, but you want to park it in the ERC998ERC721 top down composable Garage owned by your friend, while still retaining ...
0
votes
1answer
19 views

It is secure do accounts just with web3.eth.accounts.create() ? (entropy)

const Web3 = require('web3'); let url = 'infuralink'; let web3 = new Web3(url); console.log(web3.eth.accounts.create()); This is the code of many tutorials for do a key pair. it is completely secure ...
1
vote
2answers
215 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 ...
41
votes
4answers
19k views

Get public key of any ethereum account

Can I somehow get the public key of an ethereum account knowing just the corresponding ethereum address (e.g. 0x54dbb737eac5007103e729e9ab7ce64a6850a310)?
0
votes
1answer
29 views

Truffle Console: “undefined” message varaiable declaration

I am giving following commands at Truffle console but I am getting "undefined" message: > $ truffle console > > You can improve web3's peformance when running Node.js versions older > ...
0
votes
1answer
16 views

Was the function called before from a specific address?

Consider a function definition as below - function checkForUpvote() external returns(bool){ Here I would first like to check, if the external account invoking this function : has invoked this ...
0
votes
1answer
75 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: ...
0
votes
1answer
24 views

Ethereum transaction with multi input and multi output like bitcoin

What happens to my wallet when I only 1000 accounts with 0.0001 ether and the tx-fee is about the same, I can't spend anything anymore?
0
votes
1answer
37 views

Can an Ethereum account be used by several users at the same time?

I am developing a DApp for donations (the donations are not in cryptocurrencies). I want the donor to make donations without registering on the platform. In fact, I don't need to know who he is. So it ...
0
votes
1answer
270 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. ...
0
votes
1answer
299 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 ...
0
votes
1answer
899 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, ...
2
votes
3answers
798 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
1answer
169 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(...
116
votes
5answers
81k views

How are ethereum addresses generated?

What criteria does a valid Ethereum address need to fulfill? Is it just a random number in hexadecimal? Or does it need to be derived in a specific way, according to some cryptographic algorithms? ...
0
votes
1answer
29 views

web3 does not find metamask accounts

I have a very strange bug in the code. When loading a page with a code, the current account in metamask should be determined. but this only happens on one local domain. in other domaines accounts are ...
35
votes
2answers
21k views

What is nonce in Ethereum? How does it prevent double spending?

recently I got fascinated by blockchain, and started learning Ethereum. I came across the concept of the nonce in Ethereum. After researching I found out that nonce is used for two purposes. a. To ...
0
votes
2answers
1k 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 ...
18
votes
4answers
9k views

What is an 'EOA' account?

Cointelegraph has recently written about 'EOA' in relation with contracts and accounts. As an EOA, the state simply stores the account's balance in ether and a sequence number is used to prevent ...
0
votes
1answer
417 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 ...
3
votes
1answer
137 views

UTXO vs Account scalability paradigms and Merkle proof of ownership

From Ethereum's design rationale: Potential scalability paradigms: UTXOs are more theoretically compatible with certain kinds of scalability paradigms, as we can rely on only the owner of some coins ...
2
votes
1answer
1k views

Truffle test: How to test Ether transfer? Balance of specific account?

How is it possible to test if my contract actually transfers money to a specific account? function _transfer(address receiver_, uint256 payout) internal{ receiver_.transfer(payout); } Testing in ...
2
votes
2answers
3k views

Get Private and Public Key from BIP44 Master Private Key

I am confused about getting the private key corresponding to the address for derivation path m/44'/60'/0'/0'/0' Question 1: Is the following code correct in getting the address and private key? Why ...
0
votes
2answers
369 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 ...
10
votes
4answers
7k 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]...
1
vote
2answers
282 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 ...
2
votes
1answer
1k 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)...
4
votes
1answer
378 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/....
0
votes
0answers
21 views

How to interact with Remix contract through web3py

I have an assignment for which I must write a client that can interact with a deployed contract by transacting and filtering event logs, but I cannot figure out how to successfully get either to work ...
1
vote
1answer
121 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
1answer
31 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": "...
1
vote
2answers
147 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 ...
18
votes
2answers
4k views

Can I use the same private key for Ethereum and Bitcoin?

Both Bitcoin and Ethereum private keys are usually a 256-bit number, isn't it possible to use the same private key for both Bitcoin wallets and Ethereum accounts? For instance, the Bitcoin wiki states:...
0
votes
1answer
27 views

How to sign transactions while Geth does not provide private key?

I've lunched Geth for the first time and created some accounts on it. While creating accounts, I entered a password for each, and a key file is generated which contains encrypted private key belonging ...
9
votes
2answers
11k views

In the truffle console, how to set and get current account?

I'm using the $ truffle console. I can see my available accounts using truffle(development)> web3.eth.accounts. But when I run some smart contract code, which account is running the contract? ...
0
votes
2answers
60 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 ...
0
votes
1answer
14 views

My cutom RPC meta mask created account is not showing in terminal

I have installed geth and created genesis.json and run my own private eth network. I started my rpc using geth --rpc --rpcport 5200 --rpcaddr 192.168.1.99 --datadir ./private Then I connected to ...
2
votes
1answer
60 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 ...
14
votes
3answers
6k views

How to validate a private key?

I could not find any library that, given an hex value, returns true if the given string is a valid ether private key. Any hints?
0
votes
0answers
19 views

How is the storage trie of a user account which does not belong to any contract?

We know that storage trie (stored in the leaf node of state trie) is storing the contract's data related to an account. Then, what will be stored in the storage trie of a user account which does not ...
1
vote
0answers
16 views

keystore path in geth command does not work

I've lunched Geth server and want to store data and keystores in a non-default directory. I've used this command to run Geth: geth --datadir /etc/dir/ --keystore /etc/dir/keystore/ But when I run ...
0
votes
2answers
97 views

How Ethereum supports in dealing with double spending problems

Let's us consider a scenario where I am using my ethereum wallet for creating a transaction request (where my account balance is 100 eth and I am doing a transaction of 50 eth to someone from one ...
19
votes
2answers
11k views

How do I remove accounts using the Geth console?

I have several accounts I've created in the Geth console using: personal.newAccount() I no longer use (nor have any intention of using) the first couple of accounts I created, meaning whenever I ...

1
2 3 4 5
9