I am trying to deploy smart contract in Ethereum network using Nethereum (c#) library.
var abi = "[ABI...]";
var bytecode = "0x00...";
var gas = await web3.Eth.DeployContract.EstimateGasAsync(abi, bytecode, publicKey, "Zuk04");
await web3.Eth.DeployContract.SendRequestAsync(abi, bytecode, publicKey, gas, new HexBigInteger("0"), "Zuk01");
How can I get notification and contract address when it will be deployed ?
I know that SendRequestAndWaitForReceiptAsync() function exists, but in real scenario this approach may take long period, so I need something like an event (contract deployment event).
This is a javascript example (I am not familiar with C#), but as you can see, the variable you declare for deploying also contains the address of the contract once it is deployed. In your case, you may have a similar situation in your "gas" object.