v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
Bridge

Convert Fiat to Crypto

Convert fiat currency amount to cryptocurrency token amount. Supports multiple fiat currencies based on available price data for the specific token. Returns the equivalent amount of crypto tokens for the specified fiat amount based on current market prices. If price data is not available for the requested currency, the API will return a 404 error.

Native Tokens: To get the price of native tokens (like ETH on Ethereum), use the address 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE. For example, to get the price of ETH on Ethereum Mainnet (chainId: 1), pass to=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.

Authentication: Pass x-client-id header for frontend usage from allowlisted origins or x-secret-key for backend usage.

get/v1/bridge/convert

Query parameters

from'USD' | 'EUR' | 'GBP' | 'JPY' | 'KRW' | 'CNY' | 'INR' | 'NOK' | 'SEK' | 'CHF' | 'AUD' | 'CAD' | 'NZD' | 'MXN' | 'BRL' | 'CLP' | 'CZK' | 'DKK' | 'HKD' | 'HUF' | 'IDR' | 'ILS' | 'ISK' required

The fiat currency symbol

Example:USD

The fiat currency symbol

fromAmountstring required

The amount of fiat currency to convert

Example:100

The amount of fiat currency to convert

chainIdinteger required

The blockchain network identifier

Example:1

The blockchain network identifier

tostring required

The token address on the specified chain to convert to

Example:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

The token address on the specified chain to convert to

Response

Conversion completed successfully. Returns the amount of crypto tokens equivalent to the specified fiat amount.

resultnumber required

The conversion result - amount of crypto tokens for the fiat amount

Example response

{
  "result": 0.000025
}