Linked Questions

2
votes
3answers
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,...
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
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 ...
4
votes
1answer
518 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
841 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
642 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
571 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
541 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
340 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
280 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