LogoLogo
  • Welcome
  • General
    • Our Framework
    • How to Integrate
  • Instructions
    • Guide
    • Installation
    • API Keys
    • Management
    • Commands
    • Deployment
Powered by GitBook
On this page
  • Step 1: Obtain API Keys
  • Step 2: Retrieve Chat ID & Server ID
  • Telegram Chat ID
  • Discord Server ID
  1. Instructions

API Keys

PreviousInstallationNextManagement

Last updated 1 month ago

The Paradox Framework relies on advanced API integrations to deliver its powerful functionality. It uses DeFi APIs to execute trades, manage token transactions, and interact seamlessly with decentralized finance protocols. Through Solscan analytics, the framework provides real-time blockchain insights, including tokenomics, market trends, and transaction data. Additionally, Paradox leverages APIs for platforms like Telegram, Discord, and Twitter, enabling automated communication and management of agents across these networks. These integrations ensure that the framework operates efficiently and delivers a comprehensive suite of tools for blockchain and AI-powered applications.

Step 1: Obtain API Keys

  • Solscan API Key

    • Visit the .

    • Follow the instructions to register for an API key by signing up or logging in.

    • Once registered, generate an API key from your dashboard.

  • Discord Bot

    • Visit the

    • Create a new application and add a bot to it.

    • In the bot section, make sure it is selected as admin.

    • Copy the bot token from the bot settings under the "Token" section. This will be your discord API key.

  • Telegram Bot API Key

    • Go to the .

    • Use the BotFather in Telegram to create a bot and get the token.

    • Save the token as your Telegram Bot API key.

  • Twitter API Key & Access To access the Twitter (now X) API, follow these steps:

    1. Visit the and sign up for a developer account.

    2. Create a new X App in the dashboard.

    3. Navigate to the “Keys and Tokens” section for your app.

    4. You will need to collect the following credentials:

      • API Key

      • API Secret Key

      • Bearer Token

    Important:

    • You do not need to be on a paid plan for basic access, but higher rate limits or elevated access tiers may require approval or payment.

    • Access tokens (User Access Token & Secret) are also available if you need user-context-based operations, but for most app-level operations, the Bearer Token is sufficient.

    To generate the Bearer Token manually (if not already shown), you can use:

    curl -u "$API_KEY:$API_SECRET_KEY" \
      --data 'grant_type=client_credentials' \
      'https://api.x.com/oauth2/token'

Step 2: Retrieve Chat ID & Server ID

Telegram Chat ID

  1. Create a Telegram Bot

    • Open Telegram and search for BotFather.

    • Type /newbot and follow the prompts to create your bot.

    • Copy the API token provided by BotFather.

  2. Add Bot to Your Chat or Group

    • Invite your newly created bot to the chat or group where it will operate.

    • Make sure the bot has the necessary permissions to read messages and send updates.

  3. Get the Chat ID

    • Open a chat with your bot and send any message.

    • Open the following URL in your browser, replacing YOUR_BOT_API_TOKEN with the token you received:

https://api.telegram.org/botYOUR_BOT_API_TOKEN/getUpdates
  • Look for "chat":{"id": in the response. The number following this key is your Telegram Chat ID.


Discord Server ID

  1. Enable Developer Mode

    • Open Discord and go to User Settings.

    • Navigate to Advanced and enable Developer Mode.

  2. Create a Discord Bot

    • Visit the Discord Developer Portal.

    • Create a new application and add a bot to it.

    • Copy the bot token from the bot settings under the "Token" section.

  3. Add the Bot to Your Server

    • Generate an invite link with proper permissions (bot, administrator, etc.).

    • Invite the bot to your server using this link.

  4. Get the Server ID

    • Right-click on your server name in the Discord client.

    • Select Copy Server ID. This is your Discord Server ID.

Solscan API Documentation
Discord Developer Portal
Telegram Bot Creation Guide
X Developer Portal