New answers tagged

0

You can upload a website in IPFS in its entirety as long as it is static from my understanding. Parallax websites with anchor links work wonders. Just do this: ADD TO IPFS: 1) ipfs add -r [ directory where web files are located ] PIN IT SO IT DOESN'T DISAPPEAR FROM YOUR NODE IF YOUR DAEMON IS NOT ON: 2) ipfs pin add -r [IPFS hash from above] -...


2

Now I want to deploy the whole dapp on my private network without truffle. You are misunderstood Panos, you can't deploy the whole dapp into the blockchain. But you can deploy contract into private blockchain and using frontend you can interact with smart contract. You need to do the following things: Start your private network node Open remix, compile ...


1

There is no dist folder (containing the web3.min.js file) in the latest versions (1.x) You can select tag 0.20.7 on github before downloading the zip - it contains a ready to use web3.min.js


0

Once stored how do you download the data back onto your desktop? Every Ethereum transaction is publicly viewable. All you need is a viewer. Like this one for example. How much would this cost exactly in ether/gas/fiat at todays prices? It doesn't work like that. You can fetch in real time, the current transaction pricing data here. Your question ...


0

Check if Key is present in ".ethereum/testnet/keystore" for testnet and ".ethereum/keystore" for mainnet. Key file name will have the public key included in it


2

That's because receiver and _receiver need to be payable. I've set an address of the Javascript VM of Remix as the approver. pragma solidity ^0.5.0; contract ApprovalContract { address public sender; address payable public receiver; address public constant approver = 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c; function deposit(address ...


2

I will try to summarize: On-chain Something existing in the public blockchain. Side-chain Something existing in the different public blockchain with observable relationships between chains like bridges. Cosmos and Polkadot are projects for bridging data between public blockchains. Off-chain Something not visible on the public blockchain. But usually, ...


3

I will try to explain in simple terms my understanding of these terms. Off-chain transaction essentially means a transaction that cannot be verified by reading the blockchain. There is no way for the blockchain network to verify if that transaction has occurred or not because it is not recorded on the blockchain. A side chain is essentially a branch of the ...


3

Your questions hint at some conceptual confusion. Fairly common misunderstandings. "Consensus" is not about the results of transactions or contracts. It's mainly about disambiguating transaction order. With deterministic contract functions (they are) and an agreed transaction order (consensus), each node runs transactions for themselves. They rely on no ...


1

You would have to define the smart contracts yourself. While Solidity or Smart Contracts were not meant to used for Machine Learning, here is an interesting incentive for using smart contracts- they let you easily assess the efficiency of a process. But given the fact that we have Python for Machine learning, a language which boast of such a powerful library ...


0

(keeping short) Merkle Tree is your answer. The benefit of using the Merkle Tree in blockchain is that instead of downloading every transaction and every block, a “light client” can only download the chain of block headers (replica/not a copy of data itself). if someone needs to verify the existence of a specific transaction in a block, then he doesn’t ...


0

ERC-223 transfer to contracts consumes less gas than ERC-20.


0

The Ethereum blockchain (or "ledger") is the decentralized, massively replicated database in which the current state of all accounts is stored. The contract which is also an account has it's data (the values of the contract level variables and balance details) stored in this ledger. When the contract is initially deployed, the transaction representing ...


1

Ethereum uses trie data structures to manage data. You will also notice, from the above diagram, that the root node hash of the storage trie (where all of the smart contract data is kept) actually points to the state trie, which in turn points to the blockchain. There are two vastly different types of data in Ethereum; permanent data and ephemeral ...


0

3370204e // bytes4(keccak256("enter(bytes8)")) 000000000000000000000000000000000000000008dfe2f440000733c0000000 // 0x8dfe2f440000733c0000000 uint96 padded to 32 bytes 8dfe2f440000733c000000000000000000000000000000000000000000000000 // 0x000008dfe2f440000733c bytes8 padded to 32 bytes From documentation: Furthermore, to interface with contracts that do ...


0

In case of proof-of-work mining, there are many miners trying to mine the same set of transactions at the same time. Since the block mining time is very short (about 15 sec. in case of ethereum) there is a possibility, that more than one blocks are mined within a very short interval. The block mined first is added to the main chain but the effort of miner ...


0

Currently, this is not the case. The blockchain can be considered a linearized branch of a tree, but the Merkle root of this tree is never constant. It is not a proper Merkle tree. The only reason that block hashes would be put into a Merkle tree is the implementation of sharding, where smaller blockchains have their blocks (alternatively, "collations") put ...


1

Let us start with the concept of a file with contents, for reference, because I think we can all relate to what is going on in that case. In this context, the contents are the condition of the file, a.k.a. the "state" of the file. The file's state might change from time to time as someone or something edits the file. Each revision is a transition because ...


0

I wouldn't recommend using that approach of mocking/downloading the ethereum blockchain ahead of time to skip a full sync. If you want to just sync the bare minimum of the ethereum blockchain, you should run a client in "light mode" where Geth will just download the block headers, but not the entire block, you will have to ask a full node for the block body ...


0

plug our own consensus in any one of ethereum client? Take a look at Parity's Pluggable Consensus feature: https://wiki.parity.io/Pluggable-Consensus You can either choose to experiment with the consensus algorithms Parity ships with (Ethash, Instant Seal, Aura), or write your own and plug it into the framework. (See the engines part of their Github ...


0

See this Section for interacting with contract https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html# and about the Executes a message call transaction, which is directly executed in the VM of the node, but never mined into the blockchain. You understood that wrong, see the answer of this question (specially Recommendation to Call first, then ...


1

Everything below is relevant for web3.js v1.x. There is no such function web3.eth.accounts.newAccount(). There is function web3.eth.personal.newAccount(). The difference is that function web3.eth.accounts.create() merely returns an object with an account credentials, while web3.eth.personal.newAccount() creates an actual account on the node, via an RPC (...


Top 50 recent answers are included