Estimate gas fees for transaction

Calculate estimated gas fees for a transaction before submission. Returns detailed gas estimation including gas limit, EIP-1559 fee parameters, and estimated cost in native currency.

Path Parameters

ParameterTypeRequiredDescription
idUUIDYesVault UUID (must belong to your organization)

Request Body

FieldTypeRequiredDescription
typestringYesTransaction type (see below)
recipientstringVariesRecipient address (0x..., 42 chars)
amountstringVariesAmount in human-readable format
valuestringNoNative currency value for contract calls
datastringNoHex-encoded transaction data (for CONTRACT_WRITE)
assetobjectYesAsset information

Transaction Types

TypeDescriptionRequired Fields
TRANSFERNative or token transferrecipient, amount, asset
CONTRACT_WRITESmart contract interaction (state-changing)recipient, data, asset
CONTRACT_DEPLOYContract deploymentdata, asset

Asset Object

FieldTypeRequiredDescription
typestringYescryptocurrency (native) or token
addressstringIf tokenERC-20 contract address
symbolstringYesAsset symbol (e.g., ETH, USDC)
decimalsnumberYesDecimal places (e.g., 18, 6)
networkChainIdnumberYesBlockchain network ID

Response Fields

FieldTypeDescription
successbooleanWhether gas estimation was successful
estimationobjectGas limit, fees (legacy and EIP-1559), and formatted cost estimates
networkobjectNetwork details (chainId, name, symbol)

Use Cases

  • Preview transaction costs before submission
  • Validate transactions will succeed
  • Calculate required vault balance
  • Build transaction confirmation UIs
  • Compare costs across networks

Required Permission

vaults:read