Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
74 views

how to check if a block has a transaction to an address only by using the block header

Question is self explanatory. How can I check if a block has a transaction to or from an address only by using the block header? Question is prompted by this comment - How to explore all ...
4
votes
2answers
196 views

How to pop from (decrease the length of) a memory array in Solidity

I have a function that gets an address array from another contract, conditionally deletes the msg.sender from the array, then saves the new array back to that contract. Because the array backerList ...
2
votes
2answers
260 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: '...
0
votes
1answer
247 views

Need to know exact public address the user used to make a Metamask payment with?

I need to know how to do do the following tasks, after I triggered a Metamask payment with Web3 and the user paid: how to get the exact public address the user used to make that payment? I need that ...
1
vote
3answers
173 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?
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
votes
1answer
91 views

Generate ETH address with button on my website

I'd like to open a website that I can easily generate an ETH address like this website: http://taschh.com/microworkers/cv/generate/ Of course, I will have all of ETH address and its private key. I don'...
0
votes
2answers
613 views

How to preserve msg.sender==B when user A calls contract B which calls contract C which calls contract library D?

I have user A which calls contract B which calls contract C which calls contract D. How to call external library D from contract C while preserving msg.sender==B ? Of course, I cannot use tx.origin ...
2
votes
2answers
132 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 ...
0
votes
1answer
56 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 ...
0
votes
2answers
201 views

Which wallets lets you generate multiple ethereum addresses?

Is there a wallet that lets you generate multiple ethereum wallet addresses? I don't like the fact that I only use one address and that everyone can see what I have. Or are there other ways to keep ...
2
votes
1answer
125 views

Deploy contract with truffle, how to call in Nethereum?

I am currently deploying my ChangeManager contract in truffle and I want to call the contract later in Nethereum. For this I need the contract address in Nethereum. I figured I could just create an ...
0
votes
1answer
83 views

Send Tokens To Address, or Public Key?

I had a look at this video https://www.youtube.com/watch?v=vhdDQXLCRpE I can send tokens to MyEtherWallet from my exchange. Do I have to withdraw to my public key? Or, can I send it to one of my ...
1
vote
1answer
72 views

Addresses in paths of State Patricia Trie

Every block header has 3 patricia trees. In State Patricia Trie, the paths are the sha3 of the ethereum addresses, and the value for any particular address is encoded with RLP. But, what addresses ...
0
votes
1answer
160 views

Using web3js apis for ethereum transactions

I want to use Web3.js APIs to create an Ethereum transaction from an address (not a smart contract) to another address using sendTransaction method (https://web3js.readthedocs.io/en/1.0/web3-eth.html#...
4
votes
3answers
1k views

Convert bytes32 to address

Is there a simple way to convert a bytes32, e.g. 0xca35b7d915458ef540ade6068dfe2f44e8fa733c, to an address? bytes32 data = "0xca35b7d915458ef540ade6068dfe2f44e8fa733c"; I tried casting it with ...
0
votes
1answer
210 views

Keccak256 of msg.sender and timestamp: what's the likelihood of an output coincidence?

Let's think about this code: function publishEtherBox (bytes32 _label, string _ownerUrl, uint _lifespan) external onlyWhenRunning() payable { require(ownerToEtherBoxes[msg.sender].length < ...
0
votes
2answers
299 views

Solidity inserting data that maps addresses to arrays of bytes32 error

My contract is as follows: pragma solidity ^0.4.21; contract try { mapping (address=>bytes32[10]) Map; function try(){} function fill_map(bytes32[10] _attributes) public { ...
0
votes
2answers
151 views

How can I create a modifier that requires the msg.sender be one of multiple addresses?

I apologize if this has been asked already. It seems like a very basic question but I cannot find an answer to it. Every example of using a modifier to create a "ownerOnly" function uses the "owner =...
3
votes
2answers
3k views

Convert byte Address to Hex

Using Geth I am reading from a smart contract and a list of addresses is retrieved when outputting to the terminal. These addresses are in byte array format: fmt.printLn("address", address) output = ...
0
votes
1answer
478 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
1answer
119 views

Understanding the Address and its members

I am new to ethereum blockchain and solidity. I am trying to understand "Address" and its member from the link . In the below example The "transfer" will transfer from which address to which address ?
0
votes
1answer
189 views

How to get all the contracts deployed by a specific ethereum address?

It is anyhow possible to get all the contracts deployed by a specific ethereum address in lifetime? If yes, is it possible to get ABI details of the contract by their address?
2
votes
1answer
225 views

It's possible to listen contract event without knowing contract address?

I have a smart contract with an event where an account address is stored/indexed, and I want to get/advise about this event each time the account address is trigger by the event. By eg, my solidity ...
0
votes
2answers
59 views

Test ICO problems

I have been learning to code smart contracts and I'm doing a test ICO witch I want to deploy to Rinkeby test net. And I have encountered a problem. Would some of you guys would mind to help me? I ...
2
votes
0answers
230 views

How to export extended (master) public key from MetaMask

I want to export extended public key for watch-only access to all ethereum addresses in the MetaMask HD wallet at once. It's very usefull for tracking of all portfolio/wallets in one place, especially ...
1
vote
2answers
2k views

Truffle migrate: store deployed contract address in variable

How can I store the address of a deployed contract into a variable of another contract, e.g. using a placeholder? contract One{ function One(){ } } contract Two{ address oneAdd = "Put ...
0
votes
0answers
156 views

Remix: test with specific address

In remix I included the following code in an ERC-20 token: address burnAddress = 0xbababababababababababababababababa; The address is meant to send tokens to but the address itself will not be able ...
1
vote
1answer
73 views

How to find all tokens that implements a specific contract

I'm trying to filter all the Tokens that implement a specific contract for a specific public address. I'm using web3 / metamask app. I'm trying to do it on via var options = { .... //address: ".......
0
votes
1answer
383 views

How to compute ethereum contract address with java?

I'm looking for the java version of the solution of this question. How is the address of an Ethereum contract computed? Actually I want have a solution of the problem below. I have a master ...
0
votes
1answer
2k views

Is it possible to derive public key from ETH address?

Goal (not asking XY question): send ETH to an address web3.js script monitoring it and acting upon transaction if msg.value > 0.1 ether then... ...encrypt a file with the public key of the msg....
0
votes
2answers
76 views

Who gets all the token after you create an ERC20 smart contract?

I am creating a ERC20 token, I want to know where will all of the tokens be stored. Are they all store in the address that deployed the contract?
0
votes
0answers
119 views

Problem with invoking a function

I have a function as follows i.e. transfer. function transfer(address _to, uint256 ENvalue, uint256 PWvalue) public returns (bool) { require(_to != address(0)); balances[_to].bEN = balances[_to]....
0
votes
1answer
639 views

Static variable in solidity?

I define a balance as follows : mapping (address => uint[]) Energy_Balance to keep the history of each transaction. I set its new value as follows : First Transaction: balances[owner][0] = ...
1
vote
1answer
309 views

Mapping an address to a balance with keeping history of transactions

I have a balance as follows such that after changing its value, I want to keep the history of previous transactions, for example, for the first time, value of Energy_Balance is 5 and for the second ...
2
votes
1answer
157 views

mapping an address to several value

I want to map an address to two different field. which one is correct or better ? Approach 1 : mapping(address => uint256) balances_En; mapping(address => uint256) balances_PW; and to return ...
1
vote
1answer
343 views

Someone placed 7.77 VIN tokens into my MyEtherWallet account according to EtherScan, what can I do?

I use MyEtherWallet and a Ledger for my tokens. I check today that in Etherscan that 15 days ago some different address placed 7.77 VIN tokens and sent them to my MyEtherWallet address in my account ...
1
vote
2answers
80 views

Ico Contract Address Transfer About

I'm using this contract code and want to create ico contract. But when I create contract code and try to transfer eth I'm getting error. I can't transfer ethereum to ico contract address. Warning! ...
1
vote
2answers
189 views

How to verify if an address is an instance of the desired smart contract?

Given an address (in server-side javascript), is there a way to check that the address is an instance of a specific smart contract? I've tried using web3.eth.getCode(addr) for a recently deployed ...
0
votes
1answer
40 views

Ether Address returned is different (second half) from the one stored in contract's array

I have a simple setter and getter for address[] type array in a contract. I deployed the contracts on testrpc using truffle. Then in truffle console: truffle(development)> lot....
0
votes
1answer
160 views

Mapping an address to two balances

I want to map an address to two balances, because in contract, we have two types of token i.e. energy and power. Is following code is correct in solidity program ? mapping(address => uint256) ...
4
votes
1answer
129 views

Receive deployed contract address by transaction hash with JSON-RPC request

I want to receive deployed contract address by transaction hash. Transcation example - 0x996a683acd59a2ad17461f76ce0f387a89a5ac257ec5d667556219c6acc7f45a. As you can see this contract was deployed by ...
0
votes
1answer
328 views

Picking random ETH address

This question is not specific to Solidity but in general - if i would like to randomly pick some existing ETH address, how should i do that? For example, i wanna send some token to random ETH address, ...
0
votes
0answers
34 views

Is it possible an address would have two types of balance?

I have developed a smart contract such that there are two types of tokens i.e. energy and power. I need to transfer each of them separately to an account address and as a result each address needs to ...
8
votes
1answer
557 views

How could msg.sender != tx.origin AND extcodesize(caller) == 0 be true?

I'm working on a puzzle where msg.sender != tx.origin, so the implication is that the caller needs to be a contract or at least something in between the calling account. But extcodesize(caller) == 0 ...
4
votes
1answer
734 views

How to watch several ethereum addresses for transactions [duplicate]

I am wondering what the best way is to watch several (hundreds or thousands) Ethereum addresses at once for incoming transactions and send out the amount deposited once a transaction is detected. I ...
2
votes
3answers
114 views

Can I send data to non-contract address?

Metamask allows to attach data to any transaction. What happens if I send some data with some ETH to existing non-contract address? Is that data recorded on the blockchain? Can I read it later?
0
votes
1answer
40 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
217 views

“Error: invalid address” for dapp, works on geth (Ganache)

I have a contract that creates another contract in a function. I am testing the contract using Ganache. When calling this function using geth, it works fine. But when calling it using my dapp (yeoman, ...
1
vote
1answer
244 views

Using ENS as address inside a contract [duplicate]

Is it possible to use a ENS name as an address in solidity, instead of having to use the usual long address? Example: address public _address = myname.eth;