v1

latestOpenAPI 3.1.02026-07-243035381.4 MB
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 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