Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var gas = await web3.Eth.DeployContract.EstimateGasAsync(ABI, byteCode, privateAccount);
  2.  
  3. var balance = await web3.Eth.GetBalance.SendRequestAsync(privateAccount);
  4. var transaction = await web3.Eth.DeployContract.SendRequestAndWaitForReceiptAsync(ABI, byteCode, privateAccount, new HexBigInteger(gas.Value));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement