NYYU Logo
APIPresale Payment

Adding New Coin

Admin functionality to add new supported cryptocurrencies

Add New Coin

ADMIN

Add new cryptocurrencies to the platform's payment system

Mutation

addNewCoin
Add a new cryptocurrency to the system

Schema

addNewCoin(
  name: String!
  symbol: String!
): Coin

Parameters

nameRequired
Type: String!
Full name of the cryptocurrency (e.g., "Bitcoin", "Bitcoin Cash")
symbolRequired
Type: String!
Trading symbol or ticker (e.g., "BTC", "BCH")

Return Value

📦
Returns Coin Object

The newly created coin with name and symbol

Example

💻
Usage Example
Add Bitcoin to supported coins
mutation {
  addNewCoin(
    name: "Bitcoin"
    symbol: "BTC"
  ) {
    name
    symbol
  }
}

Response Example

📤
Sample Response
Successfully created coin
{
  "data": {
    "addNewCoin": {
      "name": "Bitcoin",
      "symbol": "BTC"
    }
  }
}

Important Notes

🔐
Admin Only

This mutation requires administrator privileges and proper authentication

⚠️
Unique Symbols

Ensure the symbol doesn't already exist to avoid duplicates

Validation

Validate cryptocurrency details before adding to ensure accuracy

🔄
Immediate Effect

Once added, the coin becomes available for payments immediately

💡
Best Practice

Use official cryptocurrency names and symbols. Verify the coin exists on major exchanges before adding. Consider setting up price feeds and wallet integrations before enabling the coin for payments. Document the blockchain networks supported for each coin.