POST v0/gas_estimate

Estimate gas usage for a Celestia transaction

This endpoint simulates a ‘MsgSend’ transaction execution to estimate gas usage on the requested Celestia network A safety buffer of 10% is added to the ‘gasUsed’

Request

curl \
  -X POST 'https://t.tech/v0/gas_estimate' \
  -H 'Authorization: Bearer <YOUR API KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"fromAddress": "REPLACE ME", "toAddress": "REPLACE ME", "amount": "REPLACE ME"}'

Body Parameters

fromAddress
stringrequired

The sender’s Celestia address

toAddress
stringrequired

The recipient’s Celestia address

amount
stringrequired

The amount to send in base denomination (utia)

memo
stringoptional

Transaction memo (optional, used for bridge metadata)

network
stringoptional

The Celestia network to simulate the transaction on. Can be either mainnet or mocha-4. Defaults to mainnet if no value is specified. Read more about networks on the Celestia Docs here.

Response

JSON object
bufferPercentinteger

The safety buffer percentage applied

gasLimitinteger

The recommended gas limit (gasUsed + safety buffer)

gasUsedinteger

The estimated gas usage for the transaction

Example Response