Token transfer gas is different in rinkeby and private chain

After set up a private clique chain and issued a ERC20 token contract. I compared token transfer gas between estimated amount by web3.eth.estimateGas() and used gas from transaction log. They are identical, say numberA Using same contract, also tried on Rinkeby testnet. although the estimated and used gas is still same. however its absolute value…

Details

Use the result of a method as a parameter inside another method

I’d like to take the result of a method and use the result of that in a parameter inside another function. Example: public static async Task<string> GetToken(string User, string Pass) { //do stuff return token; } public static async Task<GraphServiceClient> Auth() { AuthenticationHeaderValue(“bearer”, GetToken()); } Obviously not a working example, but hopefully it gets the…

Details