Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Ethereum has two types of accounts: externally owned user accounts, controlled by private keys, and contract accounts, controlled by their contract code.

1
vote
2answers
28 views

Curious questions for mastering accounts

I am curious that some companies give each customer an eth address for making payment and how to redirect the payment to one master account? Save the private key of each customer? Any example? I think ...
0
votes
1answer
16 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
0
votes
2answers
29 views

How do other nodes handle the accounts of a deleted node?

In Ethereum Blockchain, the accounts created on one node stay with it and are not replicated into other nodes. If that node is deleted and hence is not a part of that network, then what happen to the ...
2
votes
1answer
23 views

duration limit for unlockAccount()

When I use personal.unlockAccount(), there is an option to pass a parameter for duration. What is the maximum duration to which i can unlock the account? I have searched through its documentation. It ...
1
vote
0answers
25 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 ...
0
votes
2answers
26 views

Can private keys change once created?

Can private keys change once the public key (address) is created?
0
votes
1answer
9 views

Ethereum Account and Address Term Used Interchangeably?

Are the terms Account and Address in Ethereum used interchangeably? i.e., an Account is an address. An address points to an account
0
votes
0answers
39 views

web3.eth.personal.newAccount + JSON RPC error connected to ropsten in metamask

Updated: I have a function where I init web3 and included web3.eth.personal.newAccount at the bottom of the function to create a new account. initWeb3: function() { if (typeof web3 !== '...
0
votes
1answer
27 views

My dApp can use Metamask accounts with givenProvider but not when setting Web3 object to Rinkeby provider URL?

Today is the first day I deployed to a test network (Rinkeby) and not my local Ganache client network. I think I need clarification on accounts when it comes to Metamask and Rinkeby. If I initialize ...
0
votes
0answers
13 views

Create and manage user accounts on ethereum(truffle) with my web app (on Ruby on Rails)

I have created a small application on truffle, simple voting system. I followed a tutorial and it works like a charm. I am basically a full stack rails developer and now want to connect my truffle ...
0
votes
0answers
18 views

Is there a way to use etherscan API (or another) to get a history of transactions for a specific ERC20 token for an ethereum account?

I want to be able to display the complete history of our token transfers in and out of users wallets. Is there an easy or established way to do this?
0
votes
1answer
26 views

Who owns the ETH in the zero account? [duplicate]

Per https://etherscan.io/address/0x0000000000000000000000000000000000000000 the zero account currently contains ETH worth about $3.3 million USD. I understand how the zero account is used in the EVM. ...
0
votes
1answer
34 views

Account nonce limit/maximum

I've been reading about an account's nonce, that it's supposed to be an incremental number that increments with every transaction. I found about transactions pool and queue, about what happen if you ...
2
votes
1answer
21 views

How to use key derivation and 'coin selection' to increase privacy, like in Bitcoin?

In Bitcoin, you can have increased privacy by never re-using addresses. A single private key can generate many addresses if you are using a key derivation scheme. In Ethereum, instead of UTXOs you ...
0
votes
0answers
24 views

What happens if the “balance” of the address which sends “address.transfer(amount) is ” zero "?

Consider the balance of the address that sends address.transfer(amount); to receive the amount is zero. For example we have following address with balance of zero: web3.eth.getBalance('0x123').then(...
0
votes
1answer
52 views

How can I transfer ownership to another contract?

I have a contract which inherits from contract Claimable by OpenZeppelin (see here): pragma solidity ^0.4.24; import "./Claimable.sol"; contract MyTestContract is Claimable { uint256 public id; ...
1
vote
1answer
45 views

How to give a non-zero balance to a contract at time of deployment using Remix?

In case we want to deploy a contract by web3.js we can easily determine the balance of the contract at time of deployment as follows: const thisContract = new web3.eth.Contract(abi); thisContract....
0
votes
0answers
21 views

Authenticating accounts in Ethereum using web3js

Is a there a way to authenticate accounts in Ethereum using Web3js ? Or if there are any other ways to authenticate accounts ? We are building an application where users can register in our system. ...
0
votes
0answers
133 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, ...
1
vote
2answers
120 views

UPDATED : How to determine “payer address” in “address.transfer(amount)”?

Consider we a function as follows : address public recipient; function settlement(uint256 amount) public { recipient = msg.sender; recipient.transfer(amount); } Then the ...
0
votes
0answers
9 views

Deploy contract page doesn't show accounts

I am new in ethereum and blokchain stuff. I want to make contract ,but the accounts are not shown on this page.Can someone tall what I am doing wrong?
0
votes
0answers
31 views

UPDATE: (I need to run testrpc before running the code) Problem with signing a message with “web3.eth.personal.sign” or “web3.eth.sign”

I use exactly the example of web3js (here) to sign a text. So, I generated a .js file asfollows : Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); ...
0
votes
1answer
34 views

How do the other nodes know which particular node has the account used in the transaction?

A brief about my setup. I am using a private Ethereum network with 3 nodes. I have made all the nodes as peers of each other by using: admin.addPeer("enode:1234abcd..") When mining takes place, all ...
0
votes
1answer
33 views

How can I create a wallet and display the address, public and private key using web3js?

I am using this as my source for web3js: <script src="http://raw.githubusercontent.com/ethereum/web3.js/0.16.0/dist/web3.min.js"> </script> In my HTML I want to display the account's ...
0
votes
1answer
30 views

Retrieve contract byte code

How may I find the byte code of an arbitrary contract? Preferably using a website and not writing my own client.
0
votes
1answer
134 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 ...
0
votes
1answer
47 views

how to make getAccounts() return a list of all 10 accounts?

I am using Truffle Development (or Ganache at times) and the problem is web3.eth.accounts is only one account and not the list of all 10 accounts I want to get hold of at least first two so that I ...
1
vote
0answers
33 views

Why does address.transfer(amount) cost the same when sent to a new or used address?

In the Ethereum yellow-paper, it's specified that creating a new account costs 25000 gas (Appendix G, entry for Gnewaccount). We can see this if, for example, we call a function that makes a transfer:...
1
vote
0answers
47 views

Paying for gas on behalf of users?

I'm exploring ways to enable contracts/dApp owners to pay for gas on behalf of users. I know contact abstraction should enable this eventually, and the first step has been done with EIP208 which ...
0
votes
1answer
48 views

How does Ethereum account state change? [duplicate]

Ethereum uses Accounts instead of UTXO (Bitcoin). I would like to know how does the ledger keep the account state (technical details if possible)? Does it modify the ledger (accounts) by incrementing ...
2
votes
2answers
26 views

Account created using web3 is not showing in geth console

I have created a new address using web3.eth.accounts.create() and it responds with { address: '0x9AA2767207d0aC9cCdD2e3B244210f630588F3E3', privateKey: '...
2
votes
2answers
98 views

Why public keys are not used directly as account addresses? [duplicate]

I understand that addresses are hashes of the public keys. But why? What is the rationale behind this design decision? And why 160 bits? Why not just use the hash directly? Is 160-bit guaranteed ...
1
vote
0answers
42 views

How can I import the Accounts from ganache-cli into Nethereum?

Is there a way to automatically load the Accounts created by ganache-li into a project which uses Nethereum?
0
votes
1answer
20 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
0answers
25 views

Should I wait for sync to be 'finished' in 'syncmode=light' before I could check account balance OR transact using the account? [duplicate]

NOTE: I'm aware of another question, but, it's related to 'fast' syncmode, and mine is of 'light' syncmode. I'm running light node client for rinkeby using command: geth --rinkeby --rpc --rpcapi ...
0
votes
0answers
56 views

Connect local wallet to web3 default account

I am trying to connect a local wallet I've created using a V3 object to my web3 instance which contains an Infura provider. The wallet object is from a V3 keystore file originally created in Geth. ...
1
vote
1answer
38 views

“public key” and “account” : are the same?

When I create a new account as follows : web3.eth.personal.newAccount('pass').then(console.log); -> pass is account password. Then, I receive an account as follows : ...
0
votes
1answer
47 views

Import account from one geth node to another geth node

I had a geth node where i created an account. Then i backed up the keystore folder just in case. I had to format the pc and install geth again. So i would like to know how can i import my old account ...
0
votes
0answers
20 views

ELI5: Account abstraction [duplicate]

I don't fully comprehend the account abstraction proposal. I have some (probably dumb) questions: Is the main goal to offer other signature schemes? Will contracts be able to pay for gas? Will it be ...
0
votes
1answer
55 views

How to unlock account from another node in same blockchain network?

I have deployed DAPP on two node private ethereum blockchain network. According to this question it is not possible to access all accounts across multiple nodes. My question is consider a scenario ...
0
votes
1answer
25 views

(Re)create account from a keystore (?) file

Noob. Sorry :-( I have a keystore file that I'm confident represents an account I'd like to retain/use. It's unclear how I can recreate (or reinstantiate) this account within a fresh Ethereum (node) ...
2
votes
0answers
36 views

Programmatically unlock certain accounts with Parity?

Using geth it is easy to send transactions from multiple accounts but I do not know how to do this with Parity. I do not want all accounts unlocked. I do not want any account unlocked when it is not ...
1
vote
1answer
18 views

Account management risks of booting into Tails OS from USB using a “partially air-gapped” Linux PC

My threat tolerance is around a 3 out of 5 on the paranoia scale. What are the practical account management risks of using a flash drive loaded with Tails OS to boot into a Linux PC, which will only ...
0
votes
1answer
30 views

Ethereum account code hash

I've created a contract https://ropsten.etherscan.io/address/0xfaba4475358c1c23e37549f9bd54300261873d41#code And using its createChild() method I've created 3 children https://ropsten.etherscan....
0
votes
1answer
14 views

How to add multiple accounts

I was trying to create an account via geth. My question is about using the non-interactive password input. With the following variables : GETH_ROOT_PATH="${HOME}/Chain_Test" GETH_DATA_DIR="${...
0
votes
1answer
14 views

Address creation in blockchain

Is moment of account creation stored in blockchain? Or only first income or outcome transaction time can estimate it?
1
vote
1answer
450 views

web3js sender account not recognized

Under Ganache, I created some APIs with nodejs to managing a Smart Contract. One API is for the creation of new accounts with newAccount = web3.eth.accounts.create(web3.utils.randomHex(32)); Then, ...
1
vote
1answer
82 views

Sweep tokens from a one-time address without available ether

I'm generating a one-time address for each order in my store, and the order is payed with an ERC-20 token. Is there any way I could sweep the tokens from this address, without an additional ...
0
votes
0answers
114 views

Interacting a Contract with Web3 1.0

firstly I would like to say that I'm pretty with web3.js. I have a problem with interacting my contract on Ropsten with using web3.js. Here is what I have done step by step: I have created an ...
0
votes
0answers
390 views

Getting “no key for given address or file” error when trying to unlock account in geth

I'm trying to unlock an ethereum user account using geth, but am getting an error message that doesn't make sense to me. Here's what I do: 1) I start the geth console connected to the ropsten ...