Skip to main content
4 votes
Accepted

How do I filter an event by the hash of the transaction that generated the event?

So this can be done by watching for contract events, optionally from a specified sender, and then filtering the result by the transaction hash. Here's an example using web3.js: const Web3 = require('...
matthew's user avatar
  • 579
2 votes
Accepted

How to get solidity function return

You probably want to do this using events. So in your contract you'll add something like this to the top of the contract. event Minted(uint256 amount, uint256 totalCost); and in your method you'll ...
Kyle's user avatar
  • 91
1 vote
Accepted

oo7-parity How to deploy a contract with initialization code

so here's how I do it. You'll need web3js 0.20.0, use it's getData function to generate the new byte code which contains encoded initialization variables. const web3 = new Web3() let MyContract = ...
user2754799's user avatar
1 vote

oo7-parity How to deploy a contract with initialization code

The docs state: You'll need to either get your own byte code from the compiler So you can either user browser solidity or the javascript compiler.
Thomas Clowes's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible