NYYU Logo
APIPresale Payment

Get Coins

Retrieve list of all supported cryptocurrencies

Get Supported Coins

Fetch the complete list of available cryptocurrencies

Query

🪙
getCoins
List all available cryptocurrencies in the system

Schema

getCoins: [Coin]

Parameters

This query requires no parameters

Return Value

📦
Returns Array of Coin Objects

List of all supported cryptocurrencies with name and symbol

Example

💻
Usage Example
Get all available cryptocurrencies
query {
  getCoins {
    name
    symbol
  }
}

Response Example

📤
Sample Response
List of supported coins
{
  "data": {
    "getCoins": [
      {
        "name": "Bitcoin",
        "symbol": "BTC"
      },
      {
        "name": "Ethereum",
        "symbol": "ETH"
      },
      {
        "name": "Tether",
        "symbol": "USDT"
      },
      {
        "name": "USD Coin",
        "symbol": "USDC"
      },
      {
        "name": "Binance Coin",
        "symbol": "BNB"
      }
    ]
  }
}

Use Cases

🎨
Payment Options

Display available cryptocurrencies as payment options to users

🔽
Dropdown Menus

Populate dropdown selectors with supported cryptocurrencies

Validation

Validate user input against the list of supported coins

🔄
Dynamic Updates

Keep your UI synchronized with the platform's supported currencies

Coin Structure

📋
Coin Object Fields
Structure of each coin entry
nameString

Full name of the cryptocurrency (e.g., "Bitcoin", "Ethereum")

symbolString

Trading symbol or ticker (e.g., "BTC", "ETH")

💡
Best Practice

Cache this list on the frontend to avoid repeated API calls. Refresh the cache periodically or when users access payment pages. Use the symbol field as the unique identifier when processing payments. Provide clear labels using the name field for better user experience.