jojeyh
  • Member for 4 years, 6 months
  • Last seen more than 1 year ago
  • Yorba Linda, CA, United States
Deploy contract on private blockchain using Geth
2 votes

Here is a good intro example tutorial for starting a private network and deploying a contract. https://alanbuxton.wordpress.com/2017/07/19/first-steps-with-ethereum-private-networks-and-smart-...

View answer
What is the "right" way to send Ether to multiple addresses?
2 votes

You can test to see if an address is a regular account and not a contract account by using eth.getCode(address) (whatever the equivalent is in your api). If there is no code, its just a normal ...

View answer
Does Solidity include all code of parent (base) contract in child contract?
2 votes

Dog will include all of the variables and functions within animal. If you only want to use certain functions you could just break up the base interface into different contracts so that you can use ...

View answer
Meaning of Imported New Chain Segment
Accepted answer
2 votes

"Imported new chain segment" just means that geth has downloaded some amount of blocks to be added to the chain.

View answer
Is the genesis block the same as the first block?
2 votes

The genesis block is just the initial state of the system when the chain is begun. EDIT: The genesis block is hardcoded into the system. When your node starts it is fed a pre-written genesis block....

View answer
Is there a way to unit test Solidity contracts without running ethereum node?
2 votes

You have to run a node at least locally, but I think private chains are what you're looking for. Basically you just run a private chain on your local computer (create your own chain) and then mine ...

View answer
How ethereum nodes sync with each other?
Accepted answer
2 votes

Currently, when a user submits a transaction that transaction is then sent to all their peers, which in turn send it to all their peers, etc. Within seconds every active full node in the Ethereum ...

View answer
What would happen if EVM didn't exist in Ethereum?
2 votes

The virtual machine is just fancy talk for scripting language. If you've studied Bitcoin, you could say that the Script language built in Bitcoin's code is the "Bitcoin Virtual Machine". It just ...

View answer
Should I encrypt the public key of a wallet when saving it into a file?
Accepted answer
1 votes

No you do not have to encrypt the public key. You can show public keys to any other user on the network. You can think of the public key and the address as being the same thing in terms of ...

View answer
how to create a dapp in go?
1 votes

If you want to build an API in Go all you'd have to do is build it using RPC/IPC. Just build a library in Go that interacts with the Ethereum network through RPC/IPC. Then you can build dapps in Go ...

View answer
Concatenation of different datatypes and hashing it
1 votes

To concatenate the values, cast them into bytes, create an output bytes variable and then assign each byte int8 _num; address _addr; bytes b0 = bytes(_num); bytes b1 = bytes(_addr); string s0 = new ...

View answer
How to transfer balance from Geth account to an actual place?
1 votes

Indeed if you running geth (that is a wallet) on the mainnet and that command returns 5, then you are the proud owner of 5 ethers! You can send any fraction of these ethers to other accounts on the ...

View answer
Assembly for array with bytes64, to bypass nested array error
1 votes

You can use bytes which is for variable length byte arrays.

View answer
Convert Ether to Wei without web3
1 votes

Just multiply the number of ether by 10e18. Done and done!

View answer
How to delay payout of ERC20 token
1 votes

One way you could achieve this would be by creating a struct struct TokenSale{ address recipientAddress; uint tokenAmount; uint timeStamp; } Then you would just create a new TokenSale ...

View answer
geth version does not change after upgraded (apt-get)
Accepted answer
1 votes

Type in sudo apt-get upgrade to upgrade to the newest version of geth and you should be good to go!

View answer
How to avoid collisions between Ethereum-like networks?
1 votes

This occurs in real time as blocks are being propagated through the network. When a node receives a newly mined block, it will check for the previous block header (the hash of the previously chained ...

View answer
Unable to Verify my contract on Ropsten Testnet
1 votes

As @pabloruiz55 said, the problem is that you have three contracts which are all named Token in your solidity code. When you compile the code using solc (I assume) it does not know which contract to ...

View answer
Reward for running a full node on some blockchain?
1 votes

I was wondering about this for a token concept. Like, could one create a token that would be distributed randomly to anybody running a node and the length of time they run that node continuously. ...

View answer
Easy way to test contract code compiled with (Solidity) solc?
Accepted answer
1 votes

https://alanbuxton.wordpress.com/2017/07/19/first-steps-with-ethereum-private-networks-and-smart-contracts-on-ubuntu-16-04/ This tutorial shows you how to run a private chain that you can deploy ...

View answer
How is deployment address chosen (by Parity)?
Accepted answer
1 votes

I believe Parity sets the last account created as the default account. If you do not specifically set the address to spend from when you deploy the contract (send the transaction) then it should ...

View answer
How can I invest in ethereum from India?
1 votes

If you can BTC you can just trade for ETH. I think bitfinex.com is an easy to use exchange and dependable. They will allow anybody with an email to get an account that deals in only crypto.

View answer
Why shouldn't my application handle private keys for my users?
1 votes

You definitely want your application to download some sort of local node (full, light, etc) into the user's local storage. This would eliminate the need for things like Metamask, as you can write ...

View answer
Development approach to setup Eth account on Meteor/web3 app
1 votes

If you want your app to be fully decentralized (which is probably a good assumption because thats the point of creating it), then you'd want your application to access a local Ethereum node on their ...

View answer
Where should I store GPS data on Ethereum?
1 votes

You'd want to use logs most likely. The costs for storing log information is much much cheaper.

View answer
Creating a Token issue no confirmations
1 votes

Is this for testing purposes? If so please do this on the testnet or a private chain. If you don't intend using this contract later on it will needlessly bloat the main chain.

View answer
Would you recommend to use the standard token creation template from https://ethereum.org/token#the-coin?
1 votes

It's just example code, so I wouldn't rely too heavily on it. The destroy function is for burning coins (think decreasing the money supply). If you want to construct an ERC20 compliant token use the ...

View answer
Can I use money raised from Pre-ICO before start the ICO?
Accepted answer
0 votes

Absolutely. Pre-ICO funds have nothing to do with the ICO, which is just a crowdsale of tokens through a Smart Contract. Pre-ICO funds are generally "vouchers" that you give to investors for a ...

View answer
Data Model - Data Warehouse SQL Based - Deploy in Blockchain Ethereum
0 votes

It could, but it would be pretty expensive probably. Storing information on-chain is costly, so you don't want to do it unless its absolutely critical (the information you want to store needs to be ...

View answer
Calculating the address for a soon-to-be-deployed contract
0 votes

A contract will not have an address until the transaction deploying it to the blockchain is confirmed within a block.

View answer