Questions tagged [addresses]

Addresses are the particulars of names, domains or accounts on the blockchain.

Filter by
Sorted by
Tagged with
75
votes
5answers
23k views

How is the address of an Ethereum contract computed?

How is the address of an Ethereum contract computed? What use cases are there for knowing a contract's address in advance?
109
votes
4answers
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 ...
45
votes
3answers
69k views

How to backup mist wallets?

I know I can backup the keystore files from my running ethereum client which holds my accounts. But how can I backup wallets created with mist? Is it enough to write down the public address where the ...
35
votes
3answers
15k 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)?
21
votes
2answers
4k views

Is each Ethereum address shared by (theoretically) 2 ** 96 private keys?

Summary This is an extended question to How are ethereum addresses generated?. In Ethereum, a private key is 256-bit long, but an address is only 160-bit long. By "Pigeonhole Principle", it ...
57
votes
8answers
41k views

How can I check if an Ethereum address is valid?

I've read many times that you should never input an address by hand unless you want to accidentally send Ether into no-mans-land. I'd like to know what those checksums might be. Is there a way to tell ...
19
votes
3answers
17k views

How to list transactions from account address?

I have a small service where people can exchange cryptocurrencies. Every user has its own Bitcoin, Litecoin, etc address for balance deposit. Now I want to add Ethereum. So I thought I will create ...
15
votes
1answer
2k views

Getting the wrong address back from ecrecover

When I sign a string using the following code I get back a different address to the one I signed with. The address returned is different for different strings. const util = require('ethereumjs-util') ...
27
votes
2answers
9k views

How to encrypt a message with the public-key of an Ethereum address

I am writing some code in nodejs/browser. I have successfully created ethereum-addresses with the secp256k1-library. I was also able to sign and verify messages. Now I want to encrypt/decrypt a ...
23
votes
3answers
16k views

Calling function from deployed contract

I want to know how to instantiate an existing contract deployed on the blockchain using its address. e.g: contract A { function f1() {} } A is deployed on the blockchain, and in contract B I ...
19
votes
3answers
4k views

Account uniqueness guaranteed?

When we create an account in the Ethereum main network, how does the protocol guarantee the unique address of an account? Since even if we are not connected to the network we can create an account, is ...
51
votes
4answers
13k views

Why don't Ethereum addresses have checksums?

A checksum, similar to its use in Bitcoin addresses, can primarily prevent mistyped or invalid addresses from being used, before a transaction with an invalid address is constructed. Why don't ...
10
votes
5answers
7k views

How to convert an address to bytes in Solidity?

What is the recommended way to convert an address to bytes in Solidity?
16
votes
1answer
4k views

How Can I Add My Name Next To Address On Etherscan?

I'm wanting to set up a charity and want to use a public wallet for accepting donations with on Etherscan where I can have a displayed name next to the wallet like this: How Can I Add My Name Next To ...
37
votes
2answers
28k views

Is Ethereum wallet address case sensitive?

I sent some amount of ETH to a wallet. I checked the wallets balance on ether chain. I entered the address in the search field and noticed both lowercase and uppercase versions of the address seemed ...
8
votes
3answers
6k views

Convert an eth key to a geth key

I need to convert my eth key to a geth key. eth put the key in %appdata%\roaming\Web3\keys, and I see it as a .json file. If I move that to the %appdata%\roaming\Ethereum\keystore directory, geth ...
7
votes
1answer
2k views

What is an ICAP address?

It appears ethereum is using plain hexadecimal addresses like 0x0092e965928626f8880629cec353d3fd7ca5974f for now. I noticed, the ethereum C++ implementation outputs so called ICAP addresses, check ...
26
votes
1answer
8k views

Cannot perform write functions in smart contract - invalid address?

I have the following simple smart contract... contract SimpleStorage { uint storedData; function set(uint x) { storedData = x; } function get() constant returns (uint retVal) ...
18
votes
3answers
3k views

How does a contract find out if another address is a contract?

Is it possible, from within a contract written in Solidity, to check if a contract is placed on a specific address or if this address does not contain any code?
25
votes
4answers
5k views

How to detect if an address is a contract?

I'm interested in knowing whether any particular address is a contract address or a standard address. There have been similar questions on the topic, but I'm not looking to detect whether an address ...
13
votes
4answers
7k views

What Hierarchical Deterministic (HD) wallets are available for Ethereum?

A Hierarchical Deterministic (HD) wallet has some nice features such as easier backup (instead of needing to backup multiple keystore files and the passwords for each of them). Are there any ...
16
votes
2answers
4k views

Is it safe to reuse Ether addresses?

I believe it's viewed as unsafe in Bitcoin because of the way transactions are signed. Is this also true for Ether addresses?
10
votes
2answers
6k views

How to list all the contracts currently on the blockchain?

I know one way to interact with contracts is, in the geth interface, to use the command: eth.contract(ABI).at(Address) But for this I will need to know the ABI and address of the contract in advance....
12
votes
4answers
16k views

Ethereum Address vs Public Key

I'm creating an ethereum wallet and I'm a bit confused with the concept of public key vs address. I understand that the Address is a hashed version of the public key, but when I'm generating a new ...
5
votes
3answers
465 views

Relationship between Ethereum Address and public key

Understand ethereum Address is a hash of a public key. We still need to encrypt message with public key to be verified with private key. What is the use of the Ethereum address in the first place?
2
votes
1answer
2k views

Why does the transaction exceed block gas limit? [closed]

When I try sending ether to another account, I keep getting the message "Exceeds block gas limit". I changed the gas amount from 5,000 to 100,000 but nothing else happened. Why does the transaction ...
7
votes
1answer
8k views

What's a fallback function when using address.send(…)?

This code is in my contract: contract A { address x = 0x1234...; x.send(10); } What would fallback function in the contract at address 0x1234... look like? contract B { ... } ...
5
votes
1answer
3k views

What is the 0x I see around Ethereum? For example I see addresses that start with 0x

I see a number of things in Ethereum start with 0x, for example addresses. Other examples are in the Geth console, JSON-RPC, web3.js. What is the 0x and what is its purpose?
16
votes
4answers
11k views

Convert address to string

In Solidity, how can I convert the sender address to a string? The comments in How to convert an address to bytes in Solidity? did not provide a working solution
11
votes
2answers
5k views

Are there other Vanity Address generators available?

Are there any Ethereum vanity address generators available other than: Vanityreum (python) Vanieth (go) Which is the fastest? Can they be optimized further? What is the use-case of vanity ...
12
votes
2answers
8k views

Should I always put 0x at the start of Ethereum addresses?

Should I always put 0x at the start of Ethereum addresses? Sending ether to addresses without 0x seem to work perfectly fine. when sending to an address, do you include the "0x" before the rest of ...
6
votes
2answers
5k views

Are funds returned if one transfers from an exchange to an invalid Ethereum address?

I transferred some ether form an exchange site to an invalid address (invalid in that the correct address was trailed by 6 numbers I accidentally pasted in). Looking for that address on Ethereum ...
0
votes
2answers
150 views

How (without libraries) can I get the public address from a private key?

I want to know a way to know the public address used for funds transfer from the private key. (As myetherwallet do when you get your wallet info by entering your private key) I don't care with wich ...
5
votes
3answers
12k views

How to transfer Ether between accounts in Solidity?

I'd like get ether balance of account in solidity. I tried the following, but it didn't work. Could you tell me how to do it? contract MultiplyContract{ address public buyer; address public ...
13
votes
3answers
53k views

How to create an Ethereum address?

I know basically zero about Ethereum, block chain etc. I have Augur reps. I have been asked to create an Ethereum address for the sale augur site. I don't have the slightest idea how to generate an ...
11
votes
2answers
3k views

What's the difference between 'address' and 'address payable'?

I saw a Solidity smart contract where some variables were declared with the type address and some were declared with the type address payable. What are the differences between the two? Do they store ...
7
votes
1answer
4k views

JavaScript Code Required to Generate an Ethereum Address?

I am aware of several tools and websites that generate addresses for you, but I'm looking for an actual JavaScript code snippet to demonstrate the steps plainly.
8
votes
1answer
3k views

Return Token Contract address on truffle deploy

I am trying to figure out how to return the address of a contract when I deploy it with truffle's deployer.deploy. So the goal is that when I deploy a contract that is a custom token, I want to ...
8
votes
3answers
1k views

What is the Global Registrar?

Some guy on reddit found an address with 235 ETH in his wallet. He was confused about how he managed to get so much ETH. Commentators told him that it is the global registrar object. Here is an ...
6
votes
2answers
11k views

How to generate an Ethereum address using Web3.js using a string of text or brain wallet?

I want to implement a brain wallet like address generator using web3.js -- I basically have a string of text and want to convert this into an Ethereum address. How can this be done?
5
votes
2answers
3k views

Is address(this) a valid address in a contract's constructor?

When does a smart contract's address first become valid? Is the address during the execution of the contract, or only after it's been fully instantiated and initialized? In other words, is a contract'...
3
votes
1answer
996 views

Ethereum wallet address creation limit and ether storage limit/capacity per address

I am new to Ethereum. I would like to know How many addresses can you create in an Ethereum wallet (limit)? Meaning is it 1K, 10K or 100K addressees you can create in a Ethereum wallet What is the ...
2
votes
1answer
1k views

Are addresses between different networks (testnet) interchangeable?

I am designing user interface having both Ethereum mainnet and testnet addresses. Is it possible for the user to accidentally give testnet address when withdrawing in mainnet and vice versa? How can ...
11
votes
1answer
2k views

Can an Ethereum address hold more than Ether?

Let me explain it with examples. On Bitcoin protocol, for example, you have Counterparty. As it uses embedded consensus, every XCP address is linked to a Bitcoin address. So if you hold bitcoins on ...
7
votes
1answer
3k views

How to get address from private key in java

I use generate a private key in java code HashUtil.sha3("cow".getBytes()) Write to a new private key file: c85ef7d79691fe79573b1a7064c19c1a9819ebdbd1faaab1a8ec92344438aaf4 Then, I use geth account ...
6
votes
1answer
1k views

Is there any lightweight JS library that generates Ethereum addresses from 256-bit private keys?

I have a 256-bit private key and I want to get its public address without having to install Geth (which is quite heavy) on the machine. Is there any small JS lib that does that?
5
votes
3answers
930 views

Get address from public key in Solidity

The address is the last 20 bytes of sha3(publicKey) In Solidity, using assembly if needed, how could I splice the first 12 bytes from sha3(publicKey) and get the address? What I came up with runs out ...
3
votes
1answer
4k views

Generate new address in Etherum node using Json-RPC

Well, first of all, I am very new to Ethereum and maybe I am asking something stupid but my question is the following. I feel comfortable using json-rpc commands and I want to know how can I create a ...
4
votes
2answers
1k views

How to list accounts / addresses?

I'm working on some code right now that scans the blockchain block by block. During that process I catalog new addresses as I encounter them in the TX list with each block. Is there any other way to ...
2
votes
1answer
543 views

Is it possible to get the transaction count for a contract in Solidity?

Is there built-in functionality for getting the transaction count (nonce) for an account in Solidity?