AR.IO LogoAR.IO Documentation
TurboPayment Service

Currencies

Supported currencies and exchange rates

Get Supported Currencies

Returns the current list of currency types supported by this service

GET
/currencies

Response Body

curl -X GET "https://loading/v1/currencies"
{
  "supportedCurrencies": [
    "usd",
    "jpy"
  ],
  "limits": {
    "usd": {
      "minimumPaymentAmount": 500,
      "maximumPaymentAmount": 1000000,
      "suggestedPaymentAmounts": [
        2500,
        5000,
        10000
      ],
      "zeroDecimalCurrency": false
    },
    "jpy": {
      "minimumPaymentAmount": 750,
      "maximumPaymentAmount": 1500000,
      "suggestedPaymentAmounts": [
        3500,
        6500,
        15000
      ],
      "zeroDecimalCurrency": true
    }
  }
}

Get Supported Countries

Returns the current list of currency types supported by this service

GET
/countries

Response Body

curl -X GET "https://loading/v1/countries"
[
  "United Kingdom",
  "United States"
]

Get conversion rates for 1GB of storage

Returns the supported fiat currency conversion rates for 1GB of storage based on current market prices.

GET
/rates

Response Body

curl -X GET "https://loading/v1/rates"
{
  "winc": 332824926,
  "fiat": {
    "aud": 8.1228081675468,
    "brl": 26.0465204865588,
    "cad": 7.1550718332636,
    "eur": 4.9519274126615995,
    "gbp": 4.251862830414,
    "hkd": 42.3539072259708,
    "inr": 443.50120792114916,
    "jpy": 781.2411885860027,
    "sgd": 7.3197929114399995,
    "usd": 5.4049103776452005
  },
  "adjustments": [
    {
      "name": "Adjustment",
      "description": "Some great subsidy",
      "operatorMagnitude": "0.6",
      "operator": "multiply",
      "adjustmentAmount": "-12300",
      "promoCode": "SOME-GREAT-CODE"
    }
  ]
}

Get current conversion rate for 1 AR for a given currency

Returns the supported fiat currency conversion rate for 1AR based on current market prices.

GET
/rates/{currency}

Path Parameters

currencystring

Currency type for a given payment amount

Response Body

curl -X GET "https://loading/v1/rates/usd"
{
  "currency": "usd",
  "rate": 5.61
}
"Invalid currency"

How is this guide?