v1

latestOpenAPI 3.0.02026-07-2442242189.1 KB
Transactions

EstimateTransactionFee

Estimate the fee for a transaction.

post/v2/vaults/{vault_id}/transactions:estimateFee

Path parameters

vault_idstring required

Request body

priority'LOW' | 'NORMAL' | 'HIGH'

Generic priority enum for transactions. Translates to network specific priority values.

  • LOW: Low priority.
  • NORMAL: Normal priority. The default value.
  • HIGH: High priority.

Example request

{
  "details": {
    "assetTransfer": {
      "asset": "assets/native.ethereum-mainnet",
      "amount": "1.1"
    },
    "assetBatchTransfer": {
      "asset": "assets/native.ethereum-mainnet"
    },
    "evmTransaction": {
      "network": "networks/ethereum-mainnet",
      "data": "0xda82fb4c00000a"
    },
    "tronTriggerSmartContract": {
      "network": "networks/tron-mainnet",
      "data": "a9059cbb0000000000000000000000002ed5dd8a98aea00ae32517742ea5289761b2710e0000000000000000000000000000000000000000000000000000000ba43b7400"
    },
    "tronTransaction": {
      "network": "networks/tron-mainnet",
      "triggerSmartContract": {
        "data": "a9059cbb0000000000000000000000002ed5dd8a98aea00ae32517742ea5289761b2710e0000000000000000000000000000000000000000000000000000000ba43b7400"
      },
      "freezeBalanceV2": {
        "amount": "1500000"
      },
      "unfreezeBalanceV2": {
        "amount": "1500000"
      },
      "delegateResource": {
        "amount": "1500000"
      },
      "undelegateResource": {
        "amount": "1500000"
      }
    },
    "btcTransfer": {
      "network": "networks/bitcoin-mainnet",
      "inputs": [
        {
          "txHash": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
        }
      ],
      "outputs": [
        {
          "amount": "0.001"
        }
      ],
      "feeSettings": {
        "feeRate": "10.5"
      }
    }
  }
}

Response

A successful response.

totalFeestring

The estimated total fee for the transaction.

gaslessboolean

True when this transfer is applied automatically as a gasless transfer, in which case total_fee is "0". Pairs with the per-asset AssetTokenInfo.sui_token_details.gasless indicator.