Estimate XDC transaction fees

POST {{baseUrl}}/v3/xdc/gas

2 credits per API call.


Estimate gasLimit and gasPrice of the XDC transaction. Gas price is obtained from https://rpc.xinfin.network/gasPrice.

Request Body

{"to"=>"xdc687422eEA2cB73B5d3e242bA5456b782919AFc85", "amount"=>"100000", "from"=>"dolore cupidatat fugiateiusmod irurefugiat enimnostrud in et essed", "data"=>"0x8A1F7A4A9"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

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