Linked Questions

2
votes
1answer
188 views

How upgradeable smart contracts work? Is it possible to deploy a contract at a self-chosen address? [duplicate]

Is it possible to deploy a contract on the blockchain at a self-chosen address? When deploying a contract by sending contract code to the address null, the contract is created at a "random" address ...
0
votes
1answer
318 views

Calculating the address for a soon-to-be-deployed contract [duplicate]

How is it possible to calculate the address for a soon-to-be-deployed contract? Does anyone know?
0
votes
1answer
270 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
0answers
112 views

How to compute the Contract Address from the Transaction Hash? [duplicate]

I am aware that different versions of this question were asked but my interest is specifically working out the contract address following dynamic deployment in a UI using web3 or something similar. I ...
33
votes
2answers
5k views

Do contracts also have a nonce?

Do contracts also have a nonce and if so how is it calculated? Usual accounts have a nonce that is increased with every transaction. However, contracts can't make transactions, they can only make ...
19
votes
6answers
19k views

How to find contract's address?

I successfully setup a private blockchain and created the "hello world" contract according to tutorial from etherium web site. One thing that I can't figure out is how to find the contract later. I ...
7
votes
2answers
3k views

Is address(this) a valid address in a contract's constructor?

When does a smart contract's address first become valid? Is the address during the execution of the contract, or only after it's been fully instantiated and initialized? In other words, is a contract'...
10
votes
1answer
2k views

Why was RLP chosen as the low level protocol encoding algorithm?

Is this an ad-hoc decision? Why RLP? Is it specifically suited to something?
2
votes
3answers
5k views

What is address(this) in solidity?

As per my understanding contract`s own address is the address which we assign to owner of contract using msg.sender. But I saw this question on SE where it was described that a contract can access its ...
4
votes
3answers
2k views

How do I determine whether the transaction is used for the contract creation?

I want to monitor Ethereum and memorise every contract published on the blockchain (basically the same thing that Etherscan does). How it is possible to do this using NodeJS & web3? How can I ...
13
votes
4answers
924 views

Deploying a contract from a multisig wallet

I created a multisig wallet using Mist, but don't know how to deploy a contract from the wallet address. Is it even possible? If so, how to do this?
5
votes
4answers
1k views

How to deploy smart contract in predefined contract address in private ethereum network?

Is there any method to deploy our smart contract in a particular address (ie. predefined contract address) in private ethereum network? Yes, I have built my own private blockchain based on Ethereum ...
5
votes
2answers
2k views

Is it possible to send a smart contract to an address wallet?

As explained here, a smart contract is deployed on the blockchain via a transaction, with the following code: var primaryAddress = eth.accounts[0] var abi = [{ constant: false, inputs: { name: 'a', ...
6
votes
2answers
1k views

Generate contract address using nonce

Good day, I was looking at the way contracts addresses are created and it seems that the process is quite deterministic (depends on the nonce). Is there a way to get the address of a contract that ...
3
votes
1answer
1k views

Can I deploy a contract to an arbitrary address that I choose?

If I want to create a smart contract by executing a raw tx, is it mandatory to compute the new contracts address the way it's been defined, or could I pick my own address arbitrarly? Why?
2
votes
2answers
1k views

How to calculate an Ethereum Contract's address during its creation using the Solidity language?

Now I know and have read the other thread saying that a contract's address is created deterministically via RLP encoding the creator's address and his nonce and then hashed with Keccak-256 but the ...
7
votes
2answers
216 views

Avoiding ownership cycles in contracts

I am repeatedly facing this issue with structuring contracts' code: contract Allower { Allowed allowed; function doSth() onlyallowed; modifier onlyallowed { if (msg.sender != ...
1
vote
6answers
1k views

How to get all contracts deployed by the address, given the address?

I want to get addresses of all instances of Contract X deployed by Account Y. How can I do that? I have to do it programmatically and fastest possible way.
4
votes
1answer
565 views

From an account's address is it possible to tell whether the account is a contract account or externally owned contract?

I am trying to visualise transactions for Ethereum, currently, I know there are blockchain explorers such as Etherscan.io and Etherchain.org, however I don't want to keep calling their API to get data,...
4
votes
1answer
529 views

Is the address of a Smart Contract fixed?

I would like to know if the address of the smart contract is fixed. I want some privacy for my application, so I would like to change the sending address and receiving address each time the smart ...
0
votes
3answers
2k views

How to get blockNumber of contracts deployed with truffle?

We deploy our contracts with truffle migrate. We need the blockNumber of the contract deployment transaction in the webapp. We could use web3.eth.getTransaction(txhash).blockNumber() but can't get ...
4
votes
1answer
517 views

Is there any way to re-deploy, to the same address, a contract that wasn't deployed due to an out-of-gas error?

Suppose that you deployed a contract, but your transaction got canceled due to an out-of-gas error. Is there any way to re-deploy the contract so that it takes the same address?
2
votes
1answer
837 views

Determining Contract Address with web3 1.0

I am using a local testnet node (Geth 1.7.3) in light mode, and in such case the transaction receipt does not contain the contractAddress when a new contract is deployed. Therefore I am looking to ...
4
votes
3answers
147 views

Deployed contract not callable anymore

I deployed a contract yesterday which was mined and which was responding to calls. Today the contract "does not live" anymore. Do I need to redeploy? Is there a way to find addresses of contracts I ...
0
votes
3answers
641 views

Create a smart contract with ether balance

If i want write a smart contract with having a ether balance what should i do? for example writing a smart contract that send a ether to a address.
0
votes
2answers
569 views

How to get deployed contract's address via JSON RPC?

Knowing the hash of a transaction that created the contract, how do I get the address of created contract? For instance: curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","...
1
vote
1answer
432 views

Creating a contract ERC20 and sending a transaction, get balance (web3)

This is my first time creating a contract. I need to create a TEST contract ERC20. After researching I understand ERC20 is like an abstract class which tells which methods should be implemented in ...
1
vote
2answers
538 views

Lost my deployed contract code. Anyway of viewing this?

Long story short I lost the contract code that I deployed. This is deployed to the live net. Is there anyway of being able to view the source of the contract code that has been deployed?
1
vote
2answers
338 views

Create a contract at a defined address?

Is it possible to define a smart contract at a predictable address? 0xf0 CREATE in the Yellow Paper suggests that the address is deterministically determined by x = A(Ia, σ[Ia]n) page 29 of http://...
1
vote
1answer
275 views

Deploy new contract through another contract function in Truffle

I have a function in my contract minter.sol that creates another contract etnX.sol: function createNewContract(string memory name, string memory symbol, uint256 _maxSupply) public onlyOwner { ...

15 30 50 per page