Assets

Convert an amount

GET
/v2/convert

Converts a fiat amount, or an amount of an asset, into an asset.

Query Parameters

amount*string
from*string

A fiat code (usd, eur, ...) or an asset symbol (then from_network is required).

from_network?string
Value in"ethereum""bsc""polygon""base""arbitrum""optimism""avalanche""tron""solana""bitcoin""litecoin""bitcoincash""dogecoin"
to*string
network*string
Value in"ethereum""bsc""polygon""base""arbitrum""optimism""avalanche""tron""solana""bitcoin""litecoin""bitcoincash""dogecoin"

Response Body

The converted amount.

application/json
  1. response
object?string
amount?string
from?string
to?string
network?string
converted_amount?string
rate?string
Example Request
curl -X GET 'https://api.noncepay.app/v2/convert?amount=string&from=string&to=string&network=ethereum'
Example Response
{  "object": "conversion",  "amount": "string",  "from": "string",  "to": "string",  "network": "string",  "converted_amount": "string",  "rate": "string"}