Cryptocurrency Ethereum Mastering Development

Can’t estimate gas on Infura using web3 or axios

I’m trying to estimate gas required to transfer usdt using Infura node but always receive gas required exceeds allowance (12451164) or always failing transaction error. I have tried both using web3 and post (via axios) and both return same error. Axios attempt: export const estimateUsdtGas: EstimateGasType = async ({ web3 }, to, amount, wallet) => […]


Self Reference when serializing nested Object

I want to store a snapshot of a nested model in my database as sort of a change history. Therefore I made a model that serializes the whole object into a JSON string for easier storage. Simplified Data class I want to store: public class Data { public int Id { get; set; } public […]