Cryptocurrency
Fetching Coins and Tokens rates
const response = await fetch("https://api.simplepay.ai/cryptocurrency?rates=true&v=1", {
method: "GET",
headers: {},
})
const rates = await response.json()
Check supported cryptocurrencies in specific App
const response = await fetch("https://api.simplepay.ai/cryptocurrency?app_id={APP_ID}&v=1", {
method: "GET",
headers: {},
})
const rates = await response.json()


Retrieves list of supported cryptocurrencies. Can include current exchange rates if requested.
Query parameters
vinteger · enumRequiredPossible values:
API version, must be 1
app_idstring · uuidOptional
Show supported cryptocurrencies in specific app in response
ratesbooleanOptional
Include current exchange rates in response
networksbooleanOptional
Include network info in response
Responses
200
List of cryptocurrencies successfully retrieved
application/json
get
GET /cryptocurrency HTTP/1.1
Host: api.simplepay.ai
Accept: */*
200
List of cryptocurrencies successfully retrieved
{
"id": "e4764b83-c539-44b0-84c7-ef51ac2e5ec4",
"symbol": "BTC",
"name": "Bitcoin",
"decimals": 8,
"stable": false,
"rates": {
"USD": 43000.5
}
}
Last updated
Was this helpful?