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

Questions tagged [addresses]

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

1
vote
1answer
14 views

Use DNS TXT records for wallet address resolution?

Are there any Ethereum wallet projects using DNS TXT records to resolve wallet addresses? Setting a TXT record would allow users to have a human readable wallet "address", eg $ dig example.com TXT ...
1
vote
1answer
19 views

How to generate address from xpub in JS?

How to generate address from xpub in JS? Should i use BIP39 or 44? If yes, how exactly?
0
votes
2answers
24 views

Trouble connecting to web3 1.0 through web browser using Infura.io

I am trying to connect to web3 1.0 through a web browser, I dont see much documentation for 1.0 though. This script says im connected but I think its the previous version as anytime I try and run a 1....
1
vote
1answer
28 views

Query a block explorer to return the balance of a specific type of token in an ethereum address? [duplicate]

Is there a block explorer where one can query an address and it outputs the balance of a specific type of token? Is there an example of how this can be done?
1
vote
1answer
26 views

Provide security wallet

I have a service where users can buy my product. Besides paying by card, I want to be able to allow users to pay in ETH. I think that it will correctly generate addresses for each user so that it is ...
0
votes
0answers
10 views

Why does ENS's public resolver have a setPubkey function?

The contract at 0x1da022710df5002339274aadee8d58218e9d6ab5 has a setPubkey function, which I assume takes the x and y-coordinates of an ellptic curve (secp256k1 public key). Most guides tell the user ...
1
vote
0answers
40 views

Create Accounts Using Web3.js in Browser

TL;DR - Replicated Ethereum Blockchain. Running Local Node. Connecting Local Node to Web3.js in browser using RPC. Want to create addresses & send transactions Details - I have a blockchain that ...
2
votes
2answers
153 views

How is it possible for 0x0000000000000000000000000000000000000000 to send out ERC-20 tokens?

Isn't 0x0000000000000000000000000000000000000000 a burn address where no one has private key? If that is the case, how can this address send tokens to other addresses? If you look at Etherscan's ERC-...
-2
votes
0answers
50 views

Generate address from private key [duplicate]

I am using Metamask and have exported private key. So I want to generate addresses using this private key. Is there a way to do this ? Here is my code. var util = require('ethereumjs-util'); var ...
1
vote
1answer
20 views

How to get two points (x, y) from an encoded pubkey?

this gives a valid address from two points; address(uint256(keccak256(abi.encodePacked(point[0], point[1]))) & 0x00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); but does that mean that if you are ...
1
vote
1answer
30 views

web3.py manually derive address from public key string [for dummies]

Let's say I need to derive the address from a public key string. 0xbb8250cc01a0afa7dcaee987b2adda8d1b0a0bb2f7cc427bd942a98c7837364d62e6ea4728a99db39fd55a6f7474a159ca88a96b40279044a1349a2280c8cd43 ...
0
votes
1answer
19 views

Smart contract balances question

I have a few questions regarding ETH and token storage. Is it a good practice to store ETH on smart contract address in case only owner is authorized to withdraw it? When deploing smart contract, do ...
0
votes
1answer
34 views

Create accounts on ethereum network using programmatically generated key pairs and addresses

Say I have a node application that has user registration feature. Now when a user registers, using node libraries like crypto I generate a cryptographic key pair(private and public). Then also ...
1
vote
1answer
55 views

How to have an address inside a solidity Struct?

My problem Suppose I have this struct: struct TextThatWorks { bytes32 text; uint reads; } How can I add a address variable to it? What I tried I tried simply adding address ...
2
votes
1answer
79 views

Set default address in web3?

I've tried to change the value of defaultAccount on web3.min.js from void to an address, but it didn't seem to work and web3.eth.defaultAccount remained undefined when I called it from the console. ...
0
votes
2answers
31 views

From where this Ether came from?

Let's have a look at this address on Etherscan: https://etherscan.io/address/0xfbe0aFcd7658BA86be41922059dD879C192D4c73 First transaction is a Smart Contract creation, that costs about 15 ETH. Can't ...
1
vote
1answer
20 views

Is attaching a name to an Ethereum address a “faux pas?”

I'm currently working on a DApp right now, and I was curious if it's considered poor design to include a string with the user's name that is mapped to a particular address. A user who has access to ...
4
votes
1answer
38 views

What are 'payable' state variables?

https://solidity.readthedocs.io/en/latest/solidity-by-example.html#simple-open-auction pragma solidity ^0.4.22; contract SimpleAuction { address payable public beneficiary; What exactly does ...
2
votes
2answers
37 views

send() or transfer() functions always fail

I created a few code below pragma solidity ^0.4.19; contract SendAndTransferExample { function SimpleSendToAccount() public returns(bool) { return msg.sender.send(10000000000000000000); ...
0
votes
2answers
169 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....
2
votes
1answer
47 views

How does a contract know which library to query or know the library address?

How does a contract know which library to query? For Example in the code below (The code is from solidity docs: https://solidity.readthedocs.io/en/v0.4.24/contracts.html?highlight=library#libraries ...
3
votes
0answers
67 views

Updated: Is it possible to hide the sender or receiver of transactions by “zk-SNARK” or “Bulletproofs”?

To support the user privacy, is it possible to hide the sender address or receiver address of transactions by "zk-SNARK" or "Bulletproofs" ? Or we’ll be able only to hide the value that is mapped to ...
1
vote
1answer
29 views

What does the logger's address mean in Ethereum yellow paper?

In the Ethereum yellow paper Page 5 says that the log entry O consists of (O_a,(O_{t0}, O_{t1},...),O_d). And O_a means the logger's address. What's the meaning of logger's address? Does it mean the ...
1
vote
1answer
46 views

How to retrieve holdings by address by token? [duplicate]

One can find on etherscan, for any token, the list of holdings by address. I would like to retrieve this info programmatically. Does the etherscan API enable us to do this? If not, what is a good ...
1
vote
1answer
39 views

Can't withdraw from Crowdsale multiple times

I'm using a crowdsale contract (listed below) and on Ropsten network I just set founding goal to 1ETH send it to crowdsale address and then I can withdraw to beneficiary address but when I send ETH a ...
1
vote
1answer
61 views

How to get the address of a contract deployed by another contract?

// deploy a new purchase contract function newPurchase() public payable returns(address newContract) { Purchase c = (new Purchase).value(msg.value)(address(msg.sender)); contracts....
2
votes
1answer
63 views

Do all Ethereum addresses have a specific format?

I know all ethereum addresses start with 0x, but is there a common letter/number after the 0x to represent an address? Because I get confused on how to tell if its an Eth address or if its a ...
2
votes
1answer
36 views

Working on my first smart contract for college…Need help with one error!

pragma solidity ^0.4.0; contract ZaPartnere { address[] partneri = [0x118531D9C6C9114c8B999Ac1197778d1669Fc6c6, 0x029c2D637e193716246A55c62F2302a61FaC81dC, 0x36FFE679f923BdADd17E79Ce159DE80f779b512C,...
8
votes
1answer
864 views

Why are Ethereum addresses hashes of public keys?

I understand how Ethereum addresses are generated. This thread has a great explanation: How are ethereum addresses generated? However, what this explanation is missing is why a hash is used. There ...
2
votes
1answer
34 views

how to create a smart contract that receives funds, displays addresses that sent the funds?

function safeWithdrawal() public afterDeadline { if (!fundingGoalReached) { uint amount = balanceOf[msg.sender]; balanceOf[msg.sender] = 0; if (amount > 0) { ...
0
votes
1answer
64 views

Solidity: msg.data vs bytes

This is a simple contract that has a function input_data(bytes data) and a simple fallback function that passes msg.data to function input_data. contract test_input_data{ address owner; event ...
0
votes
1answer
23 views

discover if a binary data contains Ethereum address in it?

Is there a way to guess, with some level of probability , that a 20 byte array is an Ethereum address, besides doing a query against the current StateDB and its history ? I want to discover hidden ...
0
votes
1answer
62 views

How to see Smart contract address and it’s transactions, and have multiple addresses in a smart contract

How can I see a smart contract address & know which addresses sent ether to my smart contract? And Can a smart contract have multiple receiving addresses.... like for example if I am selling e-...
0
votes
1answer
33 views

Is it possible to tell that two addresses were derived from the same private key?

As we know, a single private key or seed phrase generates many addresses. Is it possible for someone to determine that two addresses were derived from the same private key?
6
votes
1answer
87 views

Why are the last 20 bytes of the public key used as the address?

According to this post regarding how to derive the Ethereum address from a public key: Take the last 40 characters / 20 bytes of this public key (Keccak-256). Or, in other words, drop the first ...
1
vote
1answer
73 views

Communicating between a Sidechain and a Mainchain

Side chains (see linked question ) can be seen as a blockchain attached to a "parent" blockchain using a "two way" peg. Smart contract addresses are generated deterministically(HD wallet style), but ...
0
votes
1answer
128 views

How to generate ERC-20/xxx token addresses?

How to generate ERC-20/xxx token addresses, from which I can receive/send corresponding tokens? How can I do this using web3j?
0
votes
1answer
35 views

Why the amount of private key is more than that of public address? [duplicate]

See:the amount of private key is 16^64,the amount of public address is 16^40,so the amount of private key is way more than that of public address. But one private key can only generate one public ...
1
vote
1answer
28 views

How payments to multiple ethereum public address can be routed to single private keys? [closed]

I'm using coinbase commerce for accepting ethereum payments. Each time the user opens the link (for example this), they are asked for payment with different ethereum address. I made a mock payment of ...
0
votes
0answers
34 views

Remix IDE: Pass address as parameter / argument - difference double quote with and without

It seem's like Remix let's me deploy with parameter 0x2140eFD7Ba31169c69dfff6CDC66C542f0211824 but also with "0x2140eFD7Ba31169c69dfff6CDC66C542f0211824" Where is the difference using the double ...
2
votes
1answer
30 views

Is there dumpprivkey analogue in geth?

I'm creating new address with web3.py with this code: from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://localhost:8545')) w3.personal.newAccount('the-passphrase') And have few questions: ...
0
votes
0answers
15 views

How to know an address is an Exchange address? [duplicate]

I have noticed that Etherscan (and other sites) has additional information about some ethereum addresses. For example Etherscan labels this address "Bitfinex_Wallet4": https://etherscan.io/address/...
0
votes
0answers
79 views

How to set Derivation path (m/44'/60'/0'/0/0) in Android

I tried to use Web3j and created other demo also with different libraries. My problem is I want to set derivation path pf wallet.Or I want to find a place derivation path set in a code. Becoz it gives ...
0
votes
1answer
70 views

How are addresses generated for Smart Contracts? [duplicate]

How does ethereum generate Smart Contract addresses? It is any different from Ethereum generating addresses for accounts, (which uses rightmost 160 bits of the keccak256(Elliptic curve pub key) - ...
1
vote
1answer
150 views

How to get transactions on only one Ethereum address?

Imagine this scenario: ACME company is selling a service for 1 AcmeToken to their users. When a user wants to buy the service, ACME company generates a new Eth address for the user, so there is an ...
1
vote
1answer
176 views

How get Ethereum address using phrase only in Android

I want to get Etherum address and private key by adding Phrase (or Password) everytime. I tried by following many gihub code.It gives different private key everytime. In Web3j, I found it is based on ...
1
vote
1answer
31 views

Where the contract code located physically and how it can be accessed?

After deployed where the contract code physically is located at? Storage or ROM of each node? And how it can be accessed for execution? By contract address? Then, Does contract address act like a ...
0
votes
0answers
27 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
134 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
247 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: '...