Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
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 ...
0
votes
1answer
16 views

Coinbase to Bittrex deposit gone awry? Eth vanished despite being sent to correct address [on hold]

Can somebody help me figure this out? I sent ~1.258 Eth from Coinbase to my Bittrex wallet address a couple hours ago and, despite being confirmed and sent to the correct address, it seems to have ...
2
votes
2answers
498 views

How to programmatically generate sub addresses using the root address in hd wallet?

And without using the private key. I've been digging into the ConsenSys's eth-lightwallet, although it uses a derived private key to generate the address which would expose the root private in danger. ...
1
vote
1answer
439 views

Is creating new account per unique user OK in Ethereum?

When using Bitcoin one can generate new address per user of service and save pair (address -> userId), so it is always obvious which specific user sent coins. Also, all these coins are stored in the ...
0
votes
2answers
624 views

How to test contract with multiple accounts / addresses in truffle?

I want to test my truffle contract with multiple msg.sender addresses. Like "the first user sell token, the second user buys this token". For one address I simply write something like contract.buy....
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
2
votes
1answer
19 views

How to transfer wei from a contract to a specific address?

I was making an auction system and I wanted to make sure that when someone bid higher the contract would return the money to the address of the previous bid. pragma solidity >=0.4.22 <0.6.0; ...
1
vote
1answer
453 views

ERC20 tokens transactions' history from Ethereum node

I have a parity node. I developed a web3.js interface on top of it. I have APIs whose job is to fetch addresses' balances and transactions. Example response of transaction API: { tx_hash: '...
1
vote
1answer
999 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, ...
2
votes
3answers
104 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 ...
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 ...
1
vote
3answers
150 views

Transaction receiving ether from a contract address

Are transactions sending ether from contract addresses to normal addresses listed in block.transactions or are they not trivial to detect? If not in block.transactions than how to detect?
1
vote
1answer
47 views

How to generate multiple ethereum addresses using HDWallet?

const mnemonic= 'clown shiver beach wheel this mixture emotion illness fatigue amateur talent bitter' console.log(`0x${hdwallet.derive(`m/44'/60'/0'/0/0`).getAddress().toString('hex')}`) ...
0
votes
3answers
815 views

Export all addresses with a balance above a certain number

Is there a way to find/export all addresses with a balance above a certain number in Ether? Any service/API provider is available for above requirement?
1
vote
4answers
419 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-...
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 ...
5
votes
4answers
13k views

Is there a simple Ethereum address generator that consists only of private key and public key?

I can go to https://www.bitaddress.org/ , download their software to my system, disconnect my system from the Internet, then move my mouse over their page randomly to generate entropy and then get a ...
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 ...
1
vote
1answer
425 views

C# - Convert Ethereum ABI Address To String (Solidity)

I'm new to Ethereum so please excuse my ignorance. Ethereum seems to have an ABI serialization protocol called Solidity. The spec is here: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI ...
4
votes
2answers
2k views

Generating an address from a public key

Been learning about generating wallets in Ethereum and things have been smooth until the point where I turn a public key into an actual address. Multiple sources say to use Keccak to hash the public ...
0
votes
0answers
28 views

Is there any API to create Addresss and wallet as well as make transfer for ETC (Ethereum Classic)?

There is balance checking, transaction list and transaction receipt getting APIs available for Ethereum Classic (ETC)? Is ETC coin is only available on Ethereum Classic or its listed block explorer ...
0
votes
1answer
75 views

I would like to 3 mappings

I am a beginner. I would like to 3 mappings I know 2 mapping looks like this: mapping (address => mapping (address => uint256)) public allowed; and my question is: is 3 mappings look like ...
1
vote
2answers
626 views

Problem to use an address within a contract. Error: invalid address

I have a private blockchain. I am creating a contract and then I am calling a function that returns the main account. I have the error calling this function. This is the contract creation code: var ...
0
votes
2answers
18 views

web3js returns non-checksumed addresses!

Why does web3js 0.20.6 returns all-lowercase addresses on contract creation not a checksumed address?! How to deal with this trouble?
0
votes
1answer
30 views

ICAP 34 characters long. What's this kind of ICAP?

My understanding is that an ICAP address will have 33 characters for Direct or 35 characters for Basic, thus I've generated some 34 characters long ICAP addresses using: helpeth keyGenerate In ...
0
votes
1answer
24 views

Why does etherscan show such unusual results for the creation of this specific contract?

Normally, when I browse for the address of a specific contract and then click the contract-creation transaction label, I get: To: [Contract 0x... Created] For example, consider the BNB contract at ...
1
vote
2answers
17 views

How to check if an address is an active contract in Vyper?

Often for security reasons I want to limit certain address parameters to non-contract addresses for certain functions in my contracts, ie. there are no code stored on the addresses passed in as ...
0
votes
1answer
21 views

One smart contract deployed on 2 nodes will have same address?

Let's get creation of a smart contract address out of the way: The address for an Ethereum contract is deterministically computed from the address of its creator (sender) and how many transactions ...
5
votes
4answers
6k views

What is the tool for address checksum?

I have an error from web3: Unhandled rejection Error: Given address "0x" is not a valid Ethereum address. My question is if is there any tool that can fix my address (add checksum).
0
votes
1answer
33 views

how do etherscan get all the token balance of particular address?

I want to create service where just by providing address i can fetch all the token (erc 20 & erc721) balance just like etherscan for a private network? is there any way to do it by writing for ...
0
votes
1answer
39 views

What would happen to transfers to a contract address before creation?

If someone transfers funds to a contract address before I create the contract, what will happen to the funds when I create the contract? For example: Get address of future contract. Transfer funds. ...
0
votes
1answer
12 views

Address Payable and New Contracts

The following compiles in 0.4.26, but not 0.5.0. The error is "Type contract CustList is not implicitly convertible to expected type address." I figure it's something with address payable, but I have ...
0
votes
1answer
121 views

Initial ERC20 Token supply split into 2 or more hardcoded addresses

don't know if someone can help me, but let me explain my problem. For more transparency in my ERC20 token generation smart contract, I want to hardcode the Team Pool (0xA) and Crowdfunding Pool (0xB) ...
0
votes
1answer
62 views

How to convert Postgres BYTEA format to Ethereum string address (PYTHON)?

Bytea (hex) is format of PSQL. It is used by many explorers/dapps/apps to store ethereum address. how to convert this format to Python String? By default it is read as a memory view. More on Bytea: ...
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....
0
votes
1answer
109 views

MetaMask - RPC Error: Error: WalletMiddleware - Invalid “from” address

I'm trying to create a simple Dapp (via tutorial) which would allow me to send Ether from sender to receiver (via a contract with an address that automatically approves the transaction). The truffle ...
1
vote
1answer
334 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 ...
1
vote
1answer
27 views

How does EIP-55 prove a string is ACTUALLY a valid Ethereum address?

I wonder how EIP 55 check proves an address is actually an Ethereum address, or does it prove this at all? Am I missing an obvious point in Vitalik's code below from EIP 55? from ethereum import ...
0
votes
0answers
14 views

After generating Address, how to checksum it? [duplicate]

After generating address for example "0x8c1821a90ecce75ec2901633b2c9164cf9406b54" what is the algorithm to generate checksummed address to "0x8C1821A90EcCE75ec2901633b2c9164CF9406B54". Although, There ...
0
votes
1answer
54 views

Cap is not showing actual amount after deploying contract on Main Ethereum network

I have deployed a crowdsale contract with bonus stages on Main Ethereum Network using remix.ethereum.org. I have set a Cap amount of ether in wei as my goal. After deploying contract, I looked into ...
6
votes
2answers
527 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 ...
2
votes
1answer
85 views

0x0000000000000000000000000000000000000000 address behaviour

I have a question about the possibly strange behaviours of address: 0x0000000000000000000000000000000000000000 We know that: ETH + ERC20 tokens sent there are burnt Upon creation of a new smart ...
0
votes
1answer
133 views

How can I provide an ethereum public address to each user registering on my website.?

is it possible to do using web3.js for a dapp that is going to be run on mainnet.? I have a requirement to assign valid ethereum address to each user who are registering on my website. I want this ...
3
votes
2answers
5k views

The difference between contract address and wallet address

Disclaimer: this is a rather long question. To my understanding, contract address and wallet address are two profoundly different concepts, with the only thing in common being the fact that they are ...
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 ...
2
votes
1answer
46 views

Convert address to string after solidity 0.5.x

After solidity 0.5.x release none of conversions from address to string appear to be working. I've tested all of them on remix and got errors like converting bytes to uint or something like this. ...
0
votes
0answers
28 views

The reasons behind using public/private and addresses?

I understand that we need a public/private key so anyone can sign a message and miners can verify the signature using the public key. But, In this Question Relationship between Ethereum Address and ...
1
vote
1answer
109 views

Byte32 error, even after converting string to hex

I looked everywhere for people with similar problems, but I couldn't find anything. I am confused why I keep getting this error (yes, I know others have had this error too, but not for the same ...
1
vote
1answer
323 views

eth.coinbase gives Error: not supported

I created an account, it's 0x1ed6e4623c84d86a170b9a500a2e6ea1d29cd292 and sent some ETH to it, but when I try to check my balance using the geth docs, which mention eth.coinbase, it says: Error: not ...