gasLimit in the Build Transaction response
ramuta opened this issue · 0 comments
ramuta commented
I'm using the ParaSwap API and I noticed that the response object (in Build Transaction API call) does not include the estimated gasLimit
value.
Example from your docs:
{
"from": "0xaa013bA141Faa58F0a8FCA1FEE3bC96d44Af869e",
"to": "0x1bD435F3C054b6e901B7b108a0ab7617C808677b",
"chainId": 1,
"value": "1000000000000000000",
"data": "0xcfc0...",
"gasPrice": "119000000000"
}
Including the gasLimit
value in this response would be very beneficial, because it is hard to get it via the ethers library. I was only able to get the gas limit estimate when swapping a native coin (like ETH or MATIC on Polygon), but not when swapping ERC-20 tokens.
Is it possible to add gasLimit to the Build Transaction API response?