parallax

x402 intelligence orchestration — chains multiple x402-paid endpoints into compound intelligence reports

  • 2 Entrypoints
  • v1.0.0 Version
  • Enabled Payments
parallax-agent-production.up.railway.app

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

intelligence-report

Invoke

Standard intelligence report — fast analysis using core DeFi and market data endpoints. Returns a markdown report synthesized from multiple x402 data sources.

Pricing Invoke: 0.15
Network eip155:8453
Invoke Endpoint POST /entrypoints/intelligence-report/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The intelligence query, e.g. 'Should I invest in $AERO on Base?'"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
Output Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "report": {
      "type": "string",
      "description": "Markdown-formatted intelligence report"
    },
    "costUsd": {
      "type": "number",
      "description": "Total pipeline cost in USD"
    },
    "endpointsCalled": {
      "type": "number",
      "description": "Number of x402 endpoints called"
    },
    "endpointsSucceeded": {
      "type": "number",
      "description": "Number of successful endpoint calls"
    }
  },
  "required": [
    "report",
    "costUsd",
    "endpointsCalled",
    "endpointsSucceeded"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://parallax-agent-production.up.railway.app/entrypoints/intelligence-report/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "query": "<The intelligence query, e.g. 'Should I invest in $AERO on Base?'>"
      }
    }
  '

deep-intelligence-report

Invoke

Premium deep intelligence report — comprehensive analysis using all available endpoints including Einstein AI deep queries, web search, and advanced risk analysis.

Pricing Invoke: 1.50
Network eip155:8453
Invoke Endpoint POST /entrypoints/deep-intelligence-report/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The intelligence query, e.g. 'Full risk assessment of $AERO on Base'"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
Output Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "report": {
      "type": "string",
      "description": "Markdown-formatted deep intelligence report"
    },
    "costUsd": {
      "type": "number",
      "description": "Total pipeline cost in USD"
    },
    "endpointsCalled": {
      "type": "number",
      "description": "Number of x402 endpoints called"
    },
    "endpointsSucceeded": {
      "type": "number",
      "description": "Number of successful endpoint calls"
    }
  },
  "required": [
    "report",
    "costUsd",
    "endpointsCalled",
    "endpointsSucceeded"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://parallax-agent-production.up.railway.app/entrypoints/deep-intelligence-report/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "query": "<The intelligence query, e.g. 'Full risk assessment of $AERO on Base'>"
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…