Estimate Gas

Makes a call or transaction, which won't be added to the blockchain and returns the used gas.

https://api.atoverse.info/api
   ?module=proxy
   &action=atos_estimateGas
   &from=0x2773a111b238eE164D0695cd9e985d9fCe81A031
   &to=0x2773a111b238eE164D0695cd9e985d9fCe81A031
   &gas=0x7530
   &gasPrice=0x2386F26FC10000
   &value=0xDE0B6B3A7640000
   &data=null
   &apikey=YourApiKeyToken

Request

Query Parameters

Parameter Description
from the string representing the address for sending the transaction
to the string representing the address to interact with
gas the amount of gas provided for the transaction, in hex eg. 0x7530
gasPrice the gas price paid for each unit of gas, in wei
value the value sent in this transaction, in hex eg. 0xDE0B6B3A7640000
data the hash of the method signature and encoded parameters

Response

Sample response

{
   "code":200,
   "msg":"ok",
   "data":"0x5208"
}

results matching ""

    No results matching ""