Fee Estimation API

Estimate the gas needed for a VeChain transaction

5 credits per API call

Get an estimated amount of gas needed for a VeChain transaction.

post/v3/vet/transaction/gas

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/vet/transaction/gas
  • Auth
    API key in header x-api-key

Request body

fromstring required

Sender account address.

tostring required

Recipient account address.

valuestring required

Amount to send.

datastring

Data to send to Smart Contract

noncenumber

Nonce

Example request

{
  "from": "0x5034aa590125b64023a0262112b98d72e3c8e40e",
  "to": "0x5034aa590125b64023a0262112b98d72e3c8e40e",
  "value": "140",
  "nonce": 12345
}

Response

OK

number required

Example response

21000

Changes

No recorded changes to this operation across all 2 revisions of this API.