I am testing AWS Ethereum (Preview) using Nethereum and I see this method to get a block:
var block = await web3.Eth.Blocks.GetBlockNumber.SendRequestAsync();
However, the AWS Ehtereum documentation says:
Ethereum on Managed Blockchain (Preview) only supports the eth_sendRawTransaction method, which requires that you create and sign the transaction before sending it to the node.
I believe to sign the transaction with Nethereum, you do this:
var signer = new EthereumMessageSigner();
var encoded = signer.EncodeUTF8AndSign(msg1, new EthECKey(privateKey));
var txId = await web3.Eth.Transactions.SendRawTransaction.SendRequestAsync("0x" + encoded);
So my question is, how would I call the "GetBlockNumber" while signing the transaction?