Estimate Polygon transaction fees

POST {{baseUrl}}/v3/polygon/gas

2 credits per API call.


Estimate gasLimit and gasPrice of the Polygon transaction. Gas price is obtained from https://gasstation-mainnet.matic.network/.

Request Body

{"to"=>"0x687422eEA2cB73B5d3e242bA5456b782919AFc85", "amount"=>"100000", "from"=>"enimad ea deseruntvoluptate nulla tempor iruredeserunt eiusmoddolo", "data"=>"0x5596"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"gasLimit":"40000","gasPrice":"20"}