Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
581 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
129 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
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 ...
0
votes
2answers
187 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
122 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
79 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
155 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
198 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
286 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
138 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
445 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
116 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
181 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
220 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
56 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
215 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
148 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
71 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
360 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
73 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
117 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
598 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
299 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 ...
1
vote
1answer
150 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
337 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
79 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
178 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
156 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
0answers
124 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
307 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
33 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
537 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
696 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
112 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
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
206 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
240 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;
1
vote
1answer
333 views

how to generate multiple accounts that all debit one single account at the end

I know that it is not possible to create multiple addresses that are bound to one ethereum wallet unlike in bitcoin. However, I am trying to create an ico page where each user should get unique ...
1
vote
1answer
636 views

How might you identify eth addresses with the same owner?

Given an ethereum address, how might you identify (or make a good guess) as to which other ethereum addresses belong to the same owner? Note: I'd come across some content that somewhat answers this ...
0
votes
2answers
63 views

Trying to compile a smart contract Error: Type literal_string

I'm learning smart contract, and I have a problem compiling one it gives me this error message: Error: Type literal_string "0x5c15741c7abb1b0e8fb0bd41b5ed8c17219926a1" is not implicitly convertible ...
2
votes
1answer
3k views

How to generate private, public and ethereum addresses using web3.py?

I want to know the process of generating the keys for ethereum using web3.py. How to generate the keys if I install my ether node. from web3 import Web3, HTTPProvider, IPCProvider web3 = Web3(...
0
votes
1answer
78 views

(SOLIDITY) Address in mapping - BUG?

Original post: Sorry I just found out this way it actually works. But the problem is when I trying to look up address manually, not by msg.sender. Code: mapping (address => uint) count; ...
0
votes
1answer
44 views

What should I share with my developer? [closed]

I have a stock exchange project that I hired to a developer. I'm okay with bitcoin but I am new to Ethereum. The developer is in the process of develop the Ether wallet. Like a regular stock market, I ...
1
vote
0answers
436 views

Whats going on with these mysterious ethereum addresses?

A while ago I found website ethersecret.com which turned out to be very interesting; it provides a search engine for ethereum private keys and their corresponding addresses and whether they hold any ...