Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4181

Javascript API and library for Ethereum To develop applications on Ethereum, you can use the web3 object provided by the web3.js library. Under the hood it communicates to a local node through RPC calls. web3.js works with any Ethereum node, which exposes an RPC layer. https://github.com/ethereum/wiki/wiki/JavaScript-API

0 votes
Accepted

Cannot connect localhost to ropsten testnet via infura

You need to install Web3, and add the var Web3 = require('web3');
n1cK's user avatar
  • 3,408
0 votes

Automatically determine the use of call or sendTransaction based on the method type

As a workaround, you can automate the generating of the syntax in general by parsing the ABI, it holds all information about the function (name, modifier, inputs and outputs) necessary to generate the …
n1cK's user avatar
  • 3,408
3 votes

How to access all accounts across multiple nodes? JS/Web3.js/API

At the moment, there is no way you can access your account on another computer without adding your key files there. that's not immediately a risk, as they're still password protected, but.. you get i …
n1cK's user avatar
  • 3,408
2 votes

web3.js getBlock() call pauses after 500th iteration on MacOs

the problem is that you are not doing it asynchronously. Firing the 500 calls the sync way lead to an overload. You need to Do all calls async promisifiedGetBlock = function (theBlock) { return ne …
n1cK's user avatar
  • 3,408
0 votes

Sending a transaction to the smart contract and execute its method

When using the Mist Browser or MetaMask, you do not necccessarily have to unlock the account. They just take the transaction data, and sign a transaction for you.
n1cK's user avatar
  • 3,408
0 votes

Event listener for changes to accounts list

Event listeners use to listen - as the name tells - to events in smart contracts. Nevertheless you can create a NodeJS Application, that uses a setInterval() function to call these values, compare the …
n1cK's user avatar
  • 3,408
0 votes

Solidity | Smart Contract (Ethereum) transaction tracker API

If your contract grants the right to someone to call a function, there is no way for you to stop him from doing this (when the transaction is already sent). Of course you can implement safety measures …
n1cK's user avatar
  • 3,408
0 votes

Debugging solidity function

You will have to provide _name as a parameter in NumberOfKeysInPossession() . I suppose you intended to use _name from transferKey()(just an assumption without any knowledge of the rest of your smart …
n1cK's user avatar
  • 3,408
2 votes

How to get transaction failed reason with transaction hash with web3?

The answer is status: false This indicates what you see on etherscan. If you try getting this field through web3, the response is usually 0x0 or 0x1. So here you go: web3.eth.getTransactionRecei …
n1cK's user avatar
  • 3,408
13 votes
Accepted

MetaMask injected Web3 not working in HTML file

MetaMask is injected into every loaded page by default. How did you serve your dApp ? Quote from https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md : Due to browser security restrictions, w …
n1cK's user avatar
  • 3,408
0 votes

I deployed my contract using Remix solidity compiler and Metamask but i don't know how to de...

for this you should chek out the following development framework, called Truffle. They have a great documentation and lots of tutorials. https://github.com/trufflesuite/truffle Have fun. PS: You wil …
n1cK's user avatar
  • 3,408
0 votes

passing defaultBlock "pending" param to a truffle-contract call

There were issues with this before, please downgrade to truffle 3.x , delete the build/contracts/ folder (back it up just in case), rebuild the artifacts with truffle migrate --compile-all and try aga …
n1cK's user avatar
  • 3,408
0 votes
Accepted

how to call constructor with arguments in REMIX (Solidity IDE ) from web3

the constructor function is called during the deployment of the contract. This can be done in Remix: By providing the corresponding values to the arguments of your constructor function in the text …
n1cK's user avatar
  • 3,408
0 votes

use web3js and infura deploy contract

Besides the comment, correctly stating the missing infura key, this cannot work, as you do not have a code component actually signing the transaction. The referenced web3 api here relies on node clien …
n1cK's user avatar
  • 3,408
0 votes

how get to nonce that need to send in ethereum transaction?

Although miners can generally sort your transactions by nonces in their mempool and include them in the right order, this practically does not happen. So it is strongly recommended to verify that your …
n1cK's user avatar
  • 3,408

15 30 50 per page