Questions tagged [contract-deployment]

The act of pushing a compiled smart contract in byte code to the Ethereum blockchain.

Filter by
Sorted by
Tagged with
11 votes
1 answer
4k views

How to edit a contract that has already been deployed? [duplicate]

I have been writing my first few contracts. So, as I understand it, once you write, compile, and deploy your contract, the only way to then interact with that contract is via something like web3.js ...
Taylor Pechacek's user avatar
3 votes
3 answers
2k views

Creating a contract with constructor in ethereumj

contract Calculator{ int result; function Calculator(int initialResult){ result=initialResult; } } If above is the contract source code I have created then how to call Calculator ...
Ajay Bhojak's user avatar
1 vote
1 answer
572 views

why contracts can't be deployed on my private chain using geth CLI?

I tried to use the geth CLI(the eth.contract command line) to deploy a new contract to my private chain, but why is there no response even no transactions received by the chain according to the log ...
Wang's user avatar
  • 2,406
2 votes
0 answers
153 views

Possible to create new contract via a proposal in the ethereum.org/dao framework?

Is it possible to deploy contracts from within contracts, using something like p.recipient.call.value(p.amount * 1 ether)(bytecode); This article says so, https://blog.ethereum.org/2015/12/04/...
dor's user avatar
  • 91
4 votes
1 answer
4k views

How to specify the gas when deploying a new contract in Mist?

When I send transactions to my contract, the wallet tells me that the gas runs out, so how can I specify the gas amount when deploy a new contract?
Wang's user avatar
  • 2,406
8 votes
1 answer
2k views

Why does this Oraclize query only works once?

Why this code works one time? First time I get proper random number, but after that I get wallet response "Data can't be executed, so it will use all provided gas" I'm in Testnet. contract ...
Matias's user avatar
  • 1,109
13 votes
1 answer
3k views

Out of gas during contract creation

A few days ago, several attempts at creating a contract failed with out of gas errors (confirmed by etherscan/ethercamp and getBalance API), however it is not clear to me what failed exactly, and how ...
fair glu's user avatar
  • 365
4 votes
1 answer
1k views

Truffle Dapp Deployed Contract Access

Which function we need to use in truffle for the communication of second Dapp to the contract deployed on blockchain by first Dapp, because contract deployed by truffle is not accessible by geth node. ...
BlockA's user avatar
  • 857
5 votes
1 answer
130 views

What happens if I call .at() with an invalid address?

Imagine that I have obtained the contract ABI, but I'm not sure if I got the right address it was deployed. If I do: var contract = web3.eth.contrat(abi); var deployed = contract.at('<invalid ...
Henrique Barcelos's user avatar
14 votes
2 answers
1k views

Is there a way to detect which compiler version produced a contract binary?

Given the compiled bytecode on the blockchain, is there a way to detect which compiler version is being used in order to verify source matches bytecode without having to bruteforce all available ...
tayvano's user avatar
  • 15.9k
7 votes
2 answers
776 views

How many Ethereum contracts have been published?

Is there a place to see how many Ethereum contracts have been published? If someone wanted to calculate that, it would just be total number of accounts minus accounts with code, right? Any ...
Steve Ellis's user avatar
  • 1,357
24 votes
7 answers
34k views

Encoding/Decoding contract ABI data

How to encode and decode ABI data? Can someone show me an example with web3js library?
gkucmierz's user avatar
  • 773
4 votes
1 answer
734 views

How do you provide a GasPrice and GasLimit to overcome the "low tx nonce or out of funds" log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
Interition's user avatar
4 votes
1 answer
1k views

Can't deploy a contract that calls another contract

When I run the below code when connected to geth --dev --mine, the output is: A transmitted, waiting for mining... aAddress: 0xbaxxxxx4ae42d B transmitted, waiting for mining... bAddress: ...
redsquirrel's user avatar
3 votes
0 answers
75 views

how to deploy the contract? [duplicate]

I want to know after I develop a smart contract in the explorer based solidity compiler and get the binary code, how can I deploy it to the network and send transactions to it?
Wang's user avatar
  • 2,406
2 votes
0 answers
92 views

Is there a decompiler for the binary data in the blockchain [duplicate]

I want to know if there is a decompiler for the binary data in the blockchain, I want to know about the details of my contract after it was uploaded to the blockchain?
Wang's user avatar
  • 2,406
3 votes
2 answers
313 views

Where to find the private key for my contract in blockapps?

I am trying to use blockapps-js to invoke functions on my smart contract deployed in blockapps. Since I need the private key for it, I am looking at the app/users/admin/.json file. Problem is I cannot ...
Clovis's user avatar
  • 881
3 votes
2 answers
906 views

Contract creating another contract in a single source file

When deployed as a single source file is the address stored in variable creator = TokenCreator(msg.sender) within function OwnedToken referring to the address of the contract TokenCreator or the ...
Zach_is_my_name's user avatar
5 votes
1 answer
4k views

How to deploy contract into local running node using solidity browser?

I am running a local ethereum node and I did unlock an account. Now I want to use the solidity browser to deploy that contract, but when I switch to the web3 provider deploy option and I press the ...
sfrj's user avatar
  • 772
2 votes
1 answer
284 views

populus : how do i deploy a contract with args in the constructor?

Suppose I have a contract with some parameters that can be passed in the constructor, how am I suppose to pass them within the framework ? I tried to search the docs at the deploy part but can't find ...
euri10's user avatar
  • 4,640
20 votes
2 answers
7k views

Deploying the Greeter contract via the geth CLI is not registering in my private blockchain

I am running a local private Ethereum blockchain using: geth --networkid 60098 --genesis CustomGenesis.json --nodiscover --maxpeers 0 --rpc --rpccorsdomain "http://localhost:3000" --datadir "./data" ...
Bill LaPrise's user avatar
2 votes
1 answer
826 views

How can I confirm validity of deployed contract?

I have deployed contract using mist browser 0.6.1 How can I do code validity check on ethereum mist?
Satosi Ethemoto's user avatar
4 votes
2 answers
1k views

truffle deploy to geth failing, generating "receipt not found" repeatedly from geth

I've just installed truffle on an ubuntu virtualbox, and it is failing to deploy to a geth dev setup. Geth gives me a never-ending receipt not found for transaction ...
mowliv's user avatar
  • 289
7 votes
4 answers
3k views

How to inspect state of smart-contract whose code I do not have?

Often it is argued that one big advantage of blockchains is that anyone can come along and inspect the state. However I have not found any practical guide for doing this. Block explorers allow us to ...
zunior's user avatar
  • 1,312
4 votes
1 answer
1k views

MIX dapp IDE - how to run your dapp after deployment, error web3 is not defined

I managed to run a personal test chain. I deploy the Sample contract and everything is ok. Transactions included. Now how can I run the dapp? I go to the local package folder inside www I open the ...
Max's user avatar
  • 71
6 votes
1 answer
280 views

Deploying new contract in transaction MIX IDE

I'm running into an issue whenever i try to create a new transaction with my newly created contract "richoCoin". It seems like its expecting the "Sample.sample()" contract. How do I resolve this?
Kizito's user avatar
  • 779
6 votes
1 answer
3k views

How to install solidity in Visual Studio?

I see microsoft visual studio now supports solidity and smart contracts deployments. The release notes state: Creates project scaffolding with smart contract samples Supports context sensitive menus ...
Donavan Theodor's user avatar
10 votes
2 answers
872 views

How to get a contract verified on etherscan?

I'm having a hard time getting a contract verified on Etherscan. I deployed the contract using Ethereum Wallet, I can effectively find it on Etherscan but when I copy-paste the exact same code to the ...
Donavan Theodor's user avatar
23 votes
2 answers
11k views

How to get Source code of an already deployed contract?

How can I retrieve the solidity code of an already published contract in the mist wallet?
tokyomonogatari's user avatar
4 votes
2 answers
2k views

Using a contract multiple times with multiple people

Just a question for my understanding. Let's say I have a contract that has two people involved (for example, a buyer and a seller). Through ethereum, is it possible to re-use this contract and use an ...
Lourens's user avatar
  • 41
21 votes
6 answers
33k 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 ...
user3280964's user avatar
2 votes
1 answer
71 views

"AssertionError: Contract code empty" when testing contract above a particular size. How do I fix it?

I'm writing a contract for arbitrary-length integer arithmetic, for use in a larger project. The problem is that once the contract gets above a certain size, the Python ethereum.tester.state()....
Ada Merriweather's user avatar
5 votes
2 answers
907 views

What's the advantage of using mainnet over testnet for contract tokens?

Let's say that I crowdfund a project by selling shares in form of tokens on the Ethereum platform to investors. It seems that I can do this on the testnet without any disadvantage. Are real Ether ...
rethsid's user avatar
  • 1,888
3 votes
1 answer
395 views

When running a smart contract, what exactly happens on the blockchain?

When somebody runs a smart contract, what part goes into the blockchain? The whole contract (in Solidity), only the transaction or the complete execution (contract and input data)?
rethsid's user avatar
  • 1,888
4 votes
2 answers
2k views

Contract deployment throws block gas limit error

I'm trying to deploy a smart contract in a test network, using a [meteor DApp][1]. I have this parameters for the genesis block: gasLimit: "0x1388" However, any time I try to deploy any single ...
Buendiadas's user avatar
7 votes
2 answers
713 views

Is it possible to invalidate a smart contract?

How can I invalidate a smart contract that has already been deployed? I might want to do so because of business reasons, and maybe beneficial network effects. Is it possible to invalidate a smart ...
niksmac's user avatar
  • 9,663
3 votes
1 answer
3k views

Greeter variables are all undefined and contract doesn't run

I'm attempting to run the greeter contract on the live network. I'm following the commands as per the official tutorial, which worked on a test network when I tried it a while ago (on a different ...
Richard Horrocks's user avatar
7 votes
1 answer
2k views

What is the best way to send multiple transactions without running out of gas for seeding?

I'm having an issue where sending a single transaction work but sending multiple doesn't. I'm attempting to Seed my contract with data using using web3.js and it works fine. mycontractinstance....
jayD's user avatar
  • 2,462
2 votes
1 answer
720 views

Subcurrency Example: Why always be the "minter" using browser compiler?

A note in the docs referring to the contract example SubCurrency states: This is not a nice example for browser-solidity. If you use browser-solidity to try this example, you cannot change the ...
Zach_is_my_name's user avatar
14 votes
1 answer
2k views

Given a contract address, can I determine when the contract was deployed?

Ideally the solution would use web3, but other solutions are acceptable. Motivation: Event lookups can be passed fromBlock field. If I know the block a contract was created, I can more accurately do ...
Akhil F's user avatar
  • 1,898
10 votes
4 answers
920 views

Unable to make greeter contract

For the past 7 days I've been trying to make the greeter contract, I've been through 4 different physical computers in 2 different locations and have tried multiple different ways on 3 different ...
冬賀雪花's user avatar
41 votes
2 answers
9k 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 ...
mKoeppelmann's user avatar
  • 7,586
133 votes
7 answers
70k views

How is the address of an Ethereum contract computed?

How is the address of an Ethereum contract computed? What use cases are there for knowing a contract's address in advance?
eth's user avatar
  • 85k
12 votes
1 answer
6k views

How to write my first Solidity "Hello World" smart contract?

I have never written a smart contract before because there is a lot attached to it getting it working. But I finally want to learn it now. I want to write a simple mininmal working smart contract ...
q9f's user avatar
  • 32.8k
64 votes
7 answers
16k views

How can I verify that a contract on the blockchain matches the source code?

Given the (Solidity) source code of a smart contract, is there a way to deterministically compile the code and compare it with the code on the blockchain? I want to verify that the contract does what ...
J-B's user avatar
  • 8,911

1
30 31 32 33
34