FYI, there's a bunch of open github issues in ethereum.js now (by myself and others) that revolve around the questions I had at the time I asked for an ethereum.js section, so there's no point in repeating them on the forum right now...
I promise it won't be too long before this section gets utilized :-)
any one knows the method from which i can check if the sendtransaction is mined or not in ethereum js? and second question, I have created argumented constructor in ethereum contract code in solidity, now i want to create that contract in ethereum js with web3 with argumented constructor, any help or suggestion please.
as for your second question (brilliant question btw, thanks for that!)
// create the contract by passing a transaction object including initiating variables
MyContract.new(param1, param2, {data: myContractCode, gas: 300000, from: mySenderAddress}, function(err, contract){
// by passing an optional callback, we can make that sendTransaction async
console.log(myContractInstance.address) // "0xc4abd0339eb8d57087278718986382264244252f"
});
Comments
Fixed and thread moved.
I promise it won't be too long before this section gets utilized :-)
and second question,
I have created argumented constructor in ethereum contract code in solidity, now i want to create that contract in ethereum js with web3 with argumented constructor, any help or suggestion please.
You can also use
web3.eth.getTransaction(txAddr)
and check that the block number of that is non-zero.