Skip to main content
GET
/
v1
/
smart-accounts
/
transactions
/
estimate-fee
Estimate Fee for a Transaction
curl --request GET \
  --url https://api.openxswitch.com/v1/smart-accounts/transactions/estimate-fee \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "feeInToken": "0.00000630671541270827001",
    "feeInUSD": "0.01"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

token
string
required

The token symbol (e.g., USDT, USDC, ETH).

Refer to the Get Supported Tokens endpoint for the list of supported tokens.

Example:

"USDT"

blockchain
string
required

The blockchain network. Can be either the blockchain name or slug.

Refer to the Get Supported Blockchains endpoint for the list of supported blockchains.

Example:

"ethereum-mainnet"

amount
string
required

The transaction amount in token units

Example:

"0.5"

toAddress
string

The destination wallet address (validated based on the blockchain network)

Example:

"0x1234567890123456789012345678901234567890"

Response

success
boolean
required
Example:

true

data
object
required