PayRamHost hosted onboarding is paused · Guides keep updatingGet notified when it reopens →

Docs / Ticker and currency API

Looking up coins, prices and payment options: the ticker and blockchain-currency endpoints

If you want a coin selector on your own page, or need to convert dollars into a coin amount, these are the two endpoints you will use.

Last updated · By the PayRamHost editors · Markdown version

PayRamHost hosted merchant onboarding has been paused since 29 November 2026. Where this guide mentions PayRamHost, it describes the situation before the pause; the PayRam usage it explains still applies.

The short version: to show on your own page which coins a customer can pay with and roughly how much, there are two helper endpoints. GET /api/v1/ticker is public, needs no key and returns every coin PayRam supports with live US-dollar prices. GET /api/v1/blockchain-currency/reference/{reference_id} returns the payment options available for one payment, and whether the customer already has a fixed address in each family. If you use PayRam’s own payment page, you need neither.

1. When you need them

The simplest integration creates a payment and redirects the customer to PayRam’s payment page, which shows the coins and the amount by itself. You only need these endpoints when:

  • you want a coin and network selector on your own page instead of redirecting to the payment page;
  • you want to show “about how many USDC / ETH” before the customer orders;
  • you need to convert dollars into a coin amount, for example to start a payout; see starting payouts through the API;
  • you assign a fixed deposit address and first need to know whether the customer already has one; see fixed deposit addresses.

2. Coins and prices: /api/v1/ticker

The endpoint is GET {BASE_URL}/api/v1/ticker. It is public and needs no API key. BASE_URL is the address of your merchant dashboard.

curl --location '${BASE_URL}/api/v1/ticker'

It returns an array. Each entry is one coin on one network, with the blockchain information, the token details and a live US-dollar price:

[
  {
    "blockchainCode": "BASE",
    "currencyCode": "USDC",
    "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "standard": "ERC20",
    "walletPrecision": 6,
    "family": "ETH_Family",
    "price": "1.0"
  },
  ...
]
FieldMeaning
blockchainCode / currencyCodeThe network code and coin code the price applies to
priceThe US-dollar price of one unit; stablecoins are "1.0"
walletPrecisionThe number of decimal places the coin supports; round to this when computing amounts
tokenAddressThe token contract address; native coins use the all-zero address (0x000…000)
standardThe token standard, for example native, ERC20 or TRC20
familyThe blockchain family it belongs to, for example ETH_Family

Note that this endpoint lists the coins PayRam supports, which does not mean your project has enabled all of them. What you can actually accept is determined by your merchant dashboard; see which blockchains and coins PayRam supports.

3. Payment options for one payment

The endpoint is GET {BASE_URL}/api/v1/blockchain-currency/reference/{reference_id}, where reference_id is the value returned when you created the payment. It returns the networks and coins that payment can use:

[
  {
    "id": 7,
    "blockchainCode": "BASE",
    "network": "Base",
    "currencyCode": "USDC",
    "currency": "USDC",
    "customerAddress": "",
    "tokenAddress": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
    "standard": "ERC20",
    "walletPrecision": 6,
    "family": "ETH_Family",
    "recommended": false,
    "mostUsed": false,
    "blockchainID": 4,
    "currencyID": 2
  },
  ...
]
FieldMeaning
blockchainCode / networkThe blockchain code and network name, for example BASE / Base
currencyCode / currencyThe coin code and name, for example USDC or ETH
customerAddressThe customer’s deposit address. Empty for a first-time customer, meaning no address has been assigned yet
tokenAddress / standardThe token contract address and standard
walletPrecisionThe number of decimal places supported
familyThe blockchain family
recommended / mostUsedSuggested or frequently used options, which you can use to decide the display order

If customerAddress is empty for a family, you can call the assign-deposit-address endpoint to give the customer a fixed address in that family; see fixed deposit addresses.

About headers: the official documentation lists API-Key in its header description, but the example command does not send one. We suggest sending the project API key when you call it from a server; if you get 401, check against your dashboard and the official documentation.

4. Estimating the amount due

The formula:

coin amount = usdAmount / price, rounded down to walletPrecision decimal places

For example, at a price of 1659.57, 50 dollars is about 0.030128… ETH. Use a decimal library to avoid floating-point error:

import Decimal from 'decimal.js';

const tickers = await (await fetch(`${BASE_URL}/api/v1/ticker`)).json();
const t = tickers.find((x) => x.blockchainCode === 'BASE' && x.currencyCode === 'USDC');

const estimate = new Decimal(usd)
  .div(t.price)
  .toDecimalPlaces(t.walletPrecision, Decimal.ROUND_DOWN)
  .toFixed();

This is only an estimate. A payment is created with a US-dollar amount, and the amount the customer actually owes is whatever the payment page shows; prices of non-stablecoins move all the time. Do not write your own computed coin amount into an order as the final figure. For reconciliation use the payment status and the amounts actually received in the webhook.

5. Usage advice

These are our recommendations, not official requirements:

  • Fetch the price again before you use it. The official advice for payouts is to fetch it right before creating one so the rate is current. The same goes for an estimate shown to customers: a short cache is fine, a long one is not.
  • Filter before showing. Put only the coins and networks your project has really enabled into your selector, otherwise a customer may pick a combination that does not work.
  • Treat addresses by family. Chains in the same family share an address format, so always show the network next to the address to keep customers from sending on the wrong chain.
  • Do not treat it as a market-data source. It provides prices for calculation and is not an investment reference.

6. FAQ

Do both endpoints need an API key?

The price endpoint /api/v1/ticker is public and needs none. The payment-options endpoint lists API-Key in its header description, so we suggest sending it from the server.

What is the price of a stablecoin?

Stablecoins have a price of "1.0" in the response, that is, one US dollar.

Where do the prices come from, and can they be unavailable?

The official documentation calls them live prices. For a non-stablecoin, when no live price is available the payout endpoint returns 503 EXCHANGE_RATE_UNAVAILABLE and suggests retrying. A flow that depends on prices should therefore be ready to retry.

Which coins can I use on PayRamHost?

Currently USDC, USDT and others on Ethereum, Base and Polygon; see supported networks and coins.

  • Create payments via API: Add crypto payments to your own site with the PayRam API: create a payment and get a payment link, send the customer to the payment page, confirm receipt with webhooks and the status endpoint, and reconcile by order number. With curl, Node.js and Python examples.
  • Fixed deposit addresses: How PayRam's assign-deposit-address endpoint works: give the same customer a fixed deposit address in a blockchain family, for prepaid balances and repeat top-ups. The request and response, what a family such as ETH_Family means, a Node.js example and integration advice.
  • Supported networks and coins: Every network and coin PayRam supports: paying directly in crypto, paying from Solana via a bridge, and paying by card, with what the merchant receives in each case, plus what PayRamHost currently offers.
  • Payouts API: Start payouts (refunds, supplier payments) through the PayRam API: request format, converting dollars to coin amounts, limits and approval, the idempotency key you must send, error codes and the retry rule, with a Node.js example.

Sources

This guide is based on the PayRam official documentation below, checked on 2026-11-09. PayRamHost is an independently operated service and is not affiliated with PayRam. If anything differs, the official documentation prevails.