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
5
votes
3answers
2k views

Deploying contracts on geth returns Error: connect ECONNREFUSED 127.0.0.1:8545

I'm using truffle (which uses pudding) to deploy contracts to my testrpc. No I'm running a geth instance locally with: geth --mine -rpccorsdomain "*" --ipcapi "admin,eth,miner" --rpcapi "eth,...
1
vote
2answers
811 views

How i can access the contract functions (After run compiling the contract source code)

I run the following simple contract var greeterSource = 'contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg.sender == owner) selfdestruct(owner); } }...
2
votes
0answers
593 views

Deploying a smart contract from hosted wallet or light client

At the moment I use the official Ethereum wallet / mist for deploying a contract to the Ethereum network. Is there any other options for doing this either via different software clients or websites? ...
4
votes
1answer
1k views

Create a new contract by JSON-RPC of cpp-ethereum

I want to create a new contract by JSON-RPC and cpp-ethereum. I find out eth_sendTransaction can help me to do this. And let do it, I need to set "to" parameter like that: to: DATA, 20 Bytes - (...
2
votes
0answers
74 views

How do I edit a contract already in the blockchain? [duplicate]

I have a contract currently in the chain and I want to add a feature. Do I need to make a brand new contract, or is there a better way? And if I have registered the contract with a name can I ...
3
votes
1answer
504 views

Should callbacks be called twice from both MyContract.new and MyContract.myFunction on web3 API?

When I instantiate a contract with myContract.new() like this: MyContract.new({ from: addr, data: code, gas: gas, gasPrice: price }, function (error, contract) { if (!error) { ...
1
vote
1answer
389 views

Deploying contract with web3 returning all zeros transaction hash

I am running the following code in web3 the backend is a node running parity --testnet -j -w --jsonrpc-interface all. My web3 code // data.contracts.TestContract is the results of // solc test-...
4
votes
1answer
143 views

How to work with inherited contracts in EthereumJ?

In EthereumJ, I have two contracts i deployed them individually,first one was deployed but for the second i got error as in that i was calling function of first one and example i have second is first ,...
4
votes
3answers
166 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 ...
3
votes
2answers
4k views

If i am writing two contracts A,B and extending one with other then can i use methods from contract A in contract B when i am deploying?

If i am having two contracts extending one with other then can i use methods available in one contract in another when i have deployed.We have to take them in one file or have to deploy differently ...
5
votes
3answers
2k views

Why is my Greeter contract not mined on --testnet?

I'm working on the contracts tutorial. Here's the code (including contract): var greeterSource = 'contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg....
5
votes
3answers
914 views

Do I need to be synced to the blockchain to create a contract?

I haven't been able to run the Greeter contract on the live network and am referring to these excellent Q&As for guidance. I have a feeling that it's because my client hasn't finished syncing with ...
5
votes
2answers
688 views

Calling specific functions within a contract using pyethereum

I've been going through this tutorial and got to the part where the contract is being sent to the block chain: pyethtool applytx $genesis $tx which should give the output: {“result”: “...
7
votes
1answer
3k views

geth: view all current contracts on a private testnet?

How can I query a list of all current contracts with geth? Is there a way to see the contracts' class names?
2
votes
3answers
249 views

How are end-users meant to build trust towards smart contracts (and their originators)?

One of the benefits commonly associated with Ethereum is that it allows end-users to interact directly with smart contracts and thereby removing the need for trusted-third-parties. In cases where: ...
6
votes
3answers
2k views

Does deploying a contract mean it will overwrite the last instance?

I must have missed something about deploying contracts, but to be sure: I'm using Truffle, Does deploying a contract mean it will overwrite the last instance? Since I see that it gets a new address ...
10
votes
1answer
3k 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 ...
3
votes
3answers
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 ...
1
vote
1answer
478 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 ...
2
votes
0answers
145 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/...
4
votes
1answer
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?
8
votes
1answer
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 ...
13
votes
1answer
2k 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 ...
4
votes
1answer
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. ...
5
votes
1answer
120 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 ...
13
votes
1answer
627 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 ...
7
votes
2answers
677 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 ...
21
votes
6answers
21k views

Encoding/Decoding contract ABI data

How to encode and decode ABI data? Can someone show me an example with web3js library?
4
votes
1answer
674 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: ...
4
votes
1answer
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: ...
3
votes
0answers
74 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?
2
votes
0answers
83 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?
3
votes
2answers
261 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 ...
3
votes
2answers
829 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 ...
5
votes
1answer
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 ...
2
votes
1answer
270 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 ...
20
votes
2answers
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" ...
2
votes
1answer
564 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?
4
votes
2answers
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 ...
4
votes
3answers
2k 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 ...
4
votes
1answer
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 ...
6
votes
1answer
275 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?
5
votes
1answer
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 ...
9
votes
1answer
706 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 ...
21
votes
2answers
7k 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?
4
votes
2answers
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 ...
20
votes
6answers
26k 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 ...
2
votes
1answer
56 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()....
5
votes
2answers
875 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 ...
3
votes
1answer
384 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)?