Asone
  • Member for 4 years, 1 month
  • Last seen more than 1 year ago
Difference between Dapps, digital wallets and smart contracts
5 votes

a dApp is a decentralized application. It means that part or the whole logic of the application is stored on a network. A digital wallet is what it means, a wallet that stores coins or units of ...

View answer
Authentication using ethereum account
Accepted answer
4 votes

Despite Metamask seems to complicate the process to you, if you give it a try you'll find that in reality it simplifies it for both users ( until some point ) and developpers. To introduce a bit the ...

View answer
What is the safest minimum block time to use without having any problem on Proof-of-Authority consensus?
4 votes

be it a PoA, PoW or PoS chain you want to build, the main point about the timing is for your nodes to be able to synchronize. If your network is private and you can ensure your network to have nodes ...

View answer
How to properly simulate mining time with Ganache CLI
Accepted answer
3 votes

Your approach is the good one as far as i know. I've been using this option and it always worked. However note that having a 15 seconds block doesn't mean that when you send your transaction it will ...

View answer
How to auto Reload dapp when Metamask is Unlocked or Locked by user
Accepted answer
3 votes

As Metamask injects a Web3 instance in window object you can check for existence of the object. In order to detect if metamask is unlocked you can check in the Web3 instance if there's some address ...

View answer
What is checklist for auditing a smart contract?
3 votes

You'll find some there : Smart Contract Best Practices Security Considerations

View answer
How to make someone else pay for Gas?
3 votes

Unfortunately not, it's not possible for another one user other than the user originating the transaction to pay for the gas. About msg.sender see the edit below. There's been some discussion to ...

View answer
Detect if MetaMask was just unlocked
Accepted answer
3 votes

If metamask is unlocked you should be able to call web3.eth.accounts.getAccounts() ( v 1.0.x ) to retrieve node's owned accounts or web3.eth.accounts with a non empty array node's owned account as ...

View answer
"web3.eth.accounts" doesn't output account address
Accepted answer
2 votes

If the video is quite old it is possible that the video was made when web3 was still around version 0.20.0 for which the function effectively retrieved the accounts list. Since then web3 is on ...

View answer
How to know, if a particular ethereum address exist?
2 votes

Actually, addresses are the hash result of a public key. You question is somewhat a duplicate of this post , which already been answered. The answer provided in the linked post should give you the ...

View answer
How to debug solidity contracts with truffle?
2 votes

You can't really console log with solidity, and truffle sometimes won't help much about understanding where your code fails. Truffle indicates somes issues and warnings (like unused declared vars) ...

View answer
My Transaction is pending for over 12h now
2 votes

Lastly the ethereum network has been a bit cloagged due to massive amount of transactions. At this time there's still around 13 000 transactions pending. As it appears, regarding the transaction, ...

View answer
Calling truffle migrate from an end-to-end test, how do I retrieve addresses of compiled contracts?
Accepted answer
1 votes

you should be able to get the addresses from the jsonABI files ( the artifacts ) generated by truffle. Truffle saves each version in the json files in the networks property. Each version is ...

View answer
How to debug Web3JS for a not yet deployed contract?
Accepted answer
1 votes

To interact with a contract it is mandatory to deploy it. You can't run the smart-contract directly into the browser as it is stored and executed in the EVM. You don't need a JavaScript VM then, you ...

View answer
Do Truffle methods automatically raise time-out exceptions?
1 votes

Do the Solidity library functions automatically raise exceptions if a time-out error occurs? While Truffle embarks a compiler, it is not truffle that executes the solidity smart-contracts compiled ...

View answer
Truffle test with non-standard deployment
1 votes

When making tests with truffle test you can request for deploying contract in the testfile Here is an example of a series of tests i wrote to give an example : var Organizations = artifacts.require("....

View answer
Scaling ethereum
1 votes

As you said, bigger blocks would centralize the network. There is long debates about what size should a block have. This is even one of the most debated question regarding the blockchain bitcoin, ...

View answer
Smart Contract public chains, other than Ethereum mainnet
1 votes

partial answer but about this part of your question : Building my own chain, no chain explorer. There are tools to have your own chain explorer. One of the most known is the explorer made by ...

View answer
Building Ethereum application with in-process client
1 votes

As far as i know there is no full client that could be loaded in a browser. There is a node client for Ethereum made by the EthereumJS team which appear to be in rough state. You'll find a similar ...

View answer
How my Cryptocurrency Exchange supports Fiat Currency?
1 votes

Most exchanges stocks some coins so they can be able to send it outside of their platform when a user requests a withdraw of a currency ( either fiat or crypto depending on which user requests ). ...

View answer
How to retrieve ethereum accounts?
1 votes

to get the accounts you have to use web3.eth.accounts.getAccounts() ( v1.0.x beta ) or web3.eth.accounts in lowest versions ( v0.20.x max )

View answer
How to manually add numbers to CappedCrowdsale
1 votes

When deploying your smart-contract you have to provide _cap parameter which will be your hard cap. in a smart-contract, the function having the same that the contract is the constructor, which is ...

View answer
Limitations of JavaScript api on client side?
Accepted answer
1 votes

The documentation you pointing to is the documentation for the v0.20.0 of web3. The v1.0.26.beta is available now, which documentation is also available here beetween v0.20.0 and v1.0.beta many ...

View answer
Is this laptop suitable for Ethereum mining?
1 votes

Nothing forbids you to mine Ethereum, however mining such as mining bitcoin,litecoin or Ethereum is most of the time not profitable unless you have a very low cost of power. Below you'll find some ...

View answer
by using truffle & metamask deployed my contracts, but a error occurred when sending a transaction on web
0 votes

I can't read your code due to the poor formatting, however the tooltip visible in the screenshots seems to indicate two things : First, the parameter or value you send into your transaction seems to ...

View answer
TypeError: Cannot read property 'then' of undefined
0 votes

have you tried to add a catch in order to output the stacktrace of your error ? Just add at the end of your promise chain : then(account => {...}).catch( err => { console.log(err); } You'll ...

View answer
Fix my code [Error: Returned error: insufficient funds for gas * price + value]
0 votes

Have you tried increasing the gaslimit specified in your code ? Also, if you do that for testing purposes, you might should try on a testnet first.

View answer
How to get web3.js work
Accepted answer
0 votes

Main problem here is you specify as node localhost:8545 which should correspond to a local node on your machine. If your user has metamask you don't need to instanciate a Web3 object yourself, ...

View answer
Where can i find record for transactions/transfer made using smart contracts?
0 votes

by knowing the address of a smart contract on the chain you can check it out on etherscan. Here's an example

View answer
web3 (then property) in ethereum node
0 votes

What version of web3 do you use ? Note that getAccounts() has been implemented only in the betas of 1.0.0. If you're using the version up to 0.20.0 the method does not exists and web3.eth.accounts ...

View answer