SimpleTech Labs
WebsiteConsoleAPITwitterTelegram ChannelTelagram Chat
SimplePay
SimplePay
  • Introduction
    • Overview
    • Core concepts
      • Transparency
      • Non-Custodial
      • Direct payments
      • Lowest Fees
    • Protocol
    • Security
      • Collected data
  • GETTING STARTED
    • Create an App
    • Setup Client
      • Widget
    • Setup Server
      • Webhooks
    • No-Code
      • Web and Telegram Store
  • Javascript SDK
    • Introduction
    • Services
      • Cryptocurrency
      • Currency
      • Invoice
  • Components
    • Payment Widget
  • Simple ID
    • Auth.js integration Guide
  • API Documentation
    • Overview
    • Apps
      • Get App Info
      • Dev Mode
    • Wallets
    • Assets
      • Fiat Currency
      • Cryptocurrency
    • Products
    • Invoices
      • Methods
    • Transactions
      • Page 1
    • Billing
  • Referral Program
    • 💰Referral Program Basics
  • Legal
    • 📄Terms of Use
    • 🔏Privacy Policy
    • 🍪Cookies
Powered by GitBook
On this page

Was this helpful?

  1. API Documentation
  2. Assets

Cryptocurrency

PreviousFiat CurrencyNextProducts

Last updated 5 months ago

Was this helpful?

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()
Selected tokens for app in Console
Response example for specific app

Get Cryptocurrencies List

get

Retrieves list of supported cryptocurrencies. Can include current exchange rates if requested.

Query parameters
vinteger · enumRequired

API version, must be 1

Possible values:
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
  }
}
  • Fetching Coins and Tokens rates
  • Check supported cryptocurrencies in specific App
  • GETGet Cryptocurrencies List