List the coins FeitPay offers
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/public/coins"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/public/coins';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.feitpay.com/v1/public/coinsEvery coin and network live payments can use or payouts can send, with display names, the network, whether a memo / destination tag is involved and a popularity rank for pickers (popular: 1 first; null for the rest, which sort alphabetically). Coins a merchant still holds but that are no longer offered are listed with receive and payout false. Read from a cache (never from a payment processor on request); answers carry an ETag and Cache-Control and honour If-None-Match (304). Per-checkout and per-merchant availability and minimums stay on the checkout session, the wallet and the payout assets.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”The coin catalog.
object
object
Asset key: coin symbol, plus the chain for tokens (btc, usdt-trx, usdc-sol).
Chain code of the network (trx, bnb, eth, sol, …).
Display name of the coin itself, without the network (“Tether”, “Bitcoin”).
Display name of the network the coin moves on (“TRON”, “BNB Smart Chain”, “Ethereum”).
Transfers on this network may need a memo / destination tag.
Rank among the best-known coins for pickers (1 first: USDT on every network, TRON, Ethereum and BNB Smart Chain first, then ETH, USDC, SOL, BNB, XRP, LTC, DOGE, TRX, TON, BCH). Null for every other coin.
Position of the coin in FeitPay’s display order for lists and pickers (1 first). The best-known coins come first (popular), then the others alphabetically; coins with a higher minimum payment are listed after them. Clients sort by it when present.
New live payments and balance deposits can use this coin.
Live payouts can be sent in this coin.
Example
{ "object": "coin_catalog", "data": [ { "symbol": "usdt", "chain": "trx", "name": "USDT (TRX)", "coin_name": "Tether", "network_name": "TRON" } ]}Headers
Section titled “Headers”Not modified (the If-None-Match value matches the current ETag).
Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}