Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
133 views

How to view ENS name from transaction?

This is ethereum address. On which there are a bunch of registered ENS names How can we view the actual ENS names which were registered/won in auctions from this address?
1
vote
1answer
51 views

Does a storage array have a unique address on the block-chain?

The question in the title is a little vague, so I will try to explain here. Suppose I have a contract with a storage array: pragma solidity 0.4.24; contract MyContract { uint256[10] public ...
0
votes
1answer
82 views

Watch an Ethereum address for incoming payments

I want to watch a set of Ethereum contracts and be notified (preferably by email) when a contact receives a payment to it. I prefer me not to write my own software for this and not to install it on ...
0
votes
1answer
424 views

Quorum transaction not mined and no address

I am running a private Quorum chain consisting of 3 nodes with raft consensus. When I deploy a contract to the chain via web3 I get returned a hash and can then look up the transaction with the local ...
1
vote
1answer
97 views

How does Transactions work in Ethereum Virtual Machine?

While reading the transactions sections of EVM documentation many questions raised in my head: If the target account is not set (the transaction does not have a recipient or the recipient is set ...
1
vote
5answers
654 views

Can I easily generate a public address which has no private key?

I might be wrong in some of the facts that I state here, so please correct me if necessary. My understanding: Private key - 256 bits Public key - 256 bits Public address - the last 160 bits of a ...
2
votes
1answer
377 views

Recently upgraded Solc and Web3. Transactions with zero addresses now reverting with “invalid address” message?

I recently upgraded Web3JS and Solc. Now every time I pass a zero address to a Solidity contact method the transaction reverts with an "invalid address" message. This message appears to be coming ...
28
votes
2answers
12k 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 ...
1
vote
3answers
2k views

Unable to return address array in solidity

I have the following code for a simple gambling game. The code works fine except for getPlayers function pragma solidity >=0.4.22 <0.6.0; contract Lottery { address payable public manager; ...
2
votes
1answer
713 views

Address checksum Solidity implementation

Looking at EIP-55, there are quite a few client-side address checksum implementations provided but no Solidity implementation. Are there any existing examples of computing address checksums directly ...
1
vote
1answer
112 views

Problem with push

This is my code. When i push address into participants the length is zero. Why? pragma solidity ^0.4.0 contract Registration { address public owner; uint threshold = 2; address [] ...
1
vote
1answer
198 views

How to gather all addresses of nodes in a private network?

I am currently learning core-development in go-ethereum. I am a little weak with networking, RPC and connections. I am trying to write a function in my own consensus mechanism that gathers all ...
2
votes
1answer
131 views

How do I find the token address as on line 11 in etherscan

How do I get the token address for a token as stated on line 11? Got blocked out of Token.store by S.E.C. action having a U.S. IPS I asked their support and they said the following: If your account ...
0
votes
1answer
175 views

Does contract address support uppercase? [duplicate]

Does it support uppercase in web3.js? I write and deploy a test contract on rinkeby 0x7b84de0c31d308b42427d562306526e3eb95c825 if I change it to uppercase it return error Attempting to run ...
1
vote
1answer
198 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 ...
0
votes
2answers
672 views

How can I build this list of addresses

An investment round ask new investors to put exactly 0.1 ether to enter the round. function invest() public payable { require(msg.value == 0.1 ether); } How can I save every new investor ...
2
votes
2answers
149 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 ...
3
votes
1answer
452 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
321 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
156 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
59 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 ...
3
votes
1answer
297 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
806 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
1answer
53 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
783 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 ...
1
vote
1answer
728 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
243 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
559 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 ...
3
votes
1answer
3k 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
41 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
28 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 ...
5
votes
1answer
413 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
528 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); ...
21
votes
3answers
12k views

Difference between Ganache and Truffle

What is the difference between this two? I understand that Ganache is like a fake blockchain, but Truffle has that too ? What are the limitations of each and under which circumstance we use either ...
0
votes
2answers
1k 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
134 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 ...
6
votes
2answers
1k 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
59 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
272 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
56 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
636 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
1k 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
76 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,...
10
votes
1answer
1k 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
119 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
633 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
42 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
1k 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-...
3
votes
1answer
306 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
659 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
3 4
5
6 7
12