Integrate any bot: keyless, keyed, ethers, viem, Python, and AI agents

BlazePhoenix Engineering · updated 2026-07-18 · 6 min · written from the deployed bytecode

Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص

EnglishOne keyless quote API, every runtime: copy-paste integration for keyless fetch bots, keyed-RPC servers, ethers v6, viem, web3.py and LLM function-calling schemas so AI agents can trade through BlazePhoenix natively.

PortuguêsUma API de cotação sem chave, todos os runtimes: integração copy-paste para bots fetch sem chave, servidores keyed-RPC, ethers v6, viem, web3.py e esquemas de function-calling de LLM para que agentes AI negoceiem via BlazePhoenix nativamente.

EspañolUna API de cotización sin clave, todos los runtimes: integración copy-paste para bots fetch sin clave, servidores keyed-RPC, ethers v6, viem, web3.py y esquemas de function-calling de LLM para que agentes IA operen por BlazePhoenix de forma nativa.

FrançaisUne API de cotation sans clé, tous les runtimes : intégration copier-coller pour bots fetch sans clé, serveurs keyed-RPC, ethers v6, viem, web3.py et schémas de function-calling LLM pour que les agents IA tradent nativement via BlazePhoenix.

DeutschEine schlüssellose Quote-API, jede Runtime: Copy-Paste-Integration für schlüssellose Fetch-Bots, keyed-RPC-Server, ethers v6, viem, web3.py und LLM-Function-Calling-Schemas, damit KI-Agenten nativ über BlazePhoenix handeln.

РусскийОдин API котировок без ключа, любой рантайм: интеграция copy-paste для keyless-fetch ботов, keyed-RPC серверов, ethers v6, viem, web3.py и схем function-calling для LLM, чтобы ИИ-агенты торговали через BlazePhoenix нативно.

TürkçeAnahtarsız tek bir fiyat API'si, her runtime: anahtarsız fetch botları, keyed-RPC sunucuları, ethers v6, viem, web3.py ve LLM function-calling şemaları için kopyala-yapıştır entegrasyon — yapay zeka ajanları BlazePhoenix üzerinden doğrudan işlem yapsın.

العربيةواجهة تسعير واحدة بلا مفتاح، لكل بيئة تشغيل: تكامل نسخ-ولصق لبوتات fetch بلا مفتاح، وخوادم keyed-RPC، وethers v6، وviem، وweb3.py، ومخططات function-calling لنماذج LLM لتتداول وكلاء الذكاء الاصطناعي عبر BlazePhoenix أصلاً.

हिन्दीबिना-कुंजी एक कोट API, हर रनटाइम: बिना-कुंजी fetch बॉट, keyed-RPC सर्वर, ethers v6, viem, web3.py और LLM function-calling स्कीमा के लिए कॉपी-पेस्ट एकीकरण, ताकि AI एजेंट BlazePhoenix के जरिए मूल रूप से ट्रेड करें।

日本語鍵不要の見積もりAPIひとつで全ランタイム対応:鍵なしfetchボット、keyed-RPCサーバー、ethers v6、viem、web3.py、そしてLLMの関数呼び出しスキーマまでコピペで統合し、AIエージェントがBlazePhoenix経由でネイティブに取引できます。

中文一个免密钥报价 API,适配所有运行时:为免密钥 fetch 机器人、keyed-RPC 服务器、ethers v6、viem、web3.py 以及 LLM 函数调用模式提供复制粘贴集成,让 AI 智能体原生地通过 BlazePhoenix 交易。

한국어키 없는 견적 API 하나로 모든 런타임: 키리스 fetch 봇, keyed-RPC 서버, ethers v6, viem, web3.py, 그리고 LLM 함수 호출 스키마까지 복붙 통합 — AI 에이전트가 BlazePhoenix로 네이티브하게 거래합니다.

Bahasa IndonesiaSatu API kuotasi tanpa kunci, semua runtime: integrasi salin-tempel untuk bot fetch tanpa kunci, server keyed-RPC, ethers v6, viem, web3.py dan skema function-calling LLM agar agen AI berdagang lewat BlazePhoenix secara native.

বাংলাএকটি কী-বিহীন কোট API, সব রানটাইম: কী-বিহীন fetch বট, keyed-RPC সার্ভার, ethers v6, viem, web3.py এবং LLM ফাংশন-কলিং স্কিমার জন্য কপি-পেস্ট ইন্টিগ্রেশন — যাতে AI এজেন্ট BlazePhoenix দিয়ে নেটিভভাবে ট্রেড করে।

FilipinoIsang keyless na quote API, bawat runtime: copy-paste na integrasyon para sa keyless fetch bots, keyed-RPC servers, ethers v6, viem, web3.py at LLM function-calling schemas para makapag-trade ang AI agents sa BlazePhoenix nang natively.

The quote API is a plain HTTPS GET with open CORS and no key, so every bot runtime that can make an HTTP request is already compatible. Below is the same swap — WETH → USDC on Base — in every shape a bot might take. Pick your stack; the response is identical.

Keyless bot (any language, zero dependencies)

The lowest common denominator: one fetch, no SDK, no RPC key. Perfect for serverless functions, Telegram/Discord webhooks and edge workers.

const u = 'https://blazephoenix.xyz/api/quote?chain=base&in=WETH&out=USDC&amountIn=1000000000000000000';
const q = await fetch(u).then(r => r.json());
console.log(q.amountOut, q.meta.cache);   // net output + how it was served

Keyed-RPC server bot (your own node, signing server-side)

Bots that sign with their OWN funds keep using their existing keyed RPC — the API builds the calldata, your node broadcasts it. Add recipient to get a ready tx; your provider key never touches us.

const q = await fetch('https://blazephoenix.xyz/api/quote?chain=base&in=WETH&out=USDC'
  + '&amountIn=1000000000000000000&recipient=' + wallet.address + '&slippageBps=50'
).then(r => r.json());
// q.tx = { to, data, value } — broadcast with YOUR keyed provider:
const hash = await wallet.sendTransaction(q.tx);

ethers v6 / viem (modern signers)

The tx object the API returns is provider-agnostic — it drops straight into ethers v6 (wallet.sendTransaction), viem (walletClient.sendTransaction), or ethers v5 with the same shape. No adapter needed.

// viem
import { createWalletClient, http } from 'viem';
import { base } from 'viem/chains';
const client = createWalletClient({ account, chain: base, transport: http() });
await client.sendTransaction(q.tx);
// ethers v6:  await signer.sendTransaction(q.tx);

Python (web3.py, trading & research bots)

Python bots hit the same endpoint with requests; the returned tx dict is consumed directly by web3.py. Ideal for screeners and quant research where the data, not the signing, is the point.

import requests
q = requests.get('https://blazephoenix.xyz/api/quote', params={
  'chain': 'base', 'in': 'WETH', 'out': 'USDC', 'amountIn': 10**18,
  'recipient': acct.address, 'slippageBps': 50,
}).json()
tx = q['tx']; tx['nonce'] = w3.eth.get_transaction_count(acct.address)
signed = acct.sign_transaction(tx); w3.eth.send_raw_transaction(signed.rawTransaction)

AI agents (LLM function-calling — a first-class citizen)

Autonomous agents do not read docs; they read tool schemas. Drop this OpenAI/Anthropic-style function definition into your agent and it can quote and trade through BlazePhoenix natively — the discovery root (/api), OpenAPI spec (/api/openapi.json) and /llms.txt let it self-configure the rest.

{
  "name": "blazephoenix_quote",
  "description": "Get an on-chain DEX aggregator quote (no key). Add recipient for signable tx calldata.",
  "parameters": { "type": "object", "required": ["chain","in","out","amountIn"], "properties": {
    "chain": { "type": "string", "enum": ["base","eth","optimism","arbitrum"] },
    "in":  { "type": "string", "description": "token address, ETH/WETH/USDC/BZPX, or any symbol" },
    "out": { "type": "string" },
    "amountIn": { "type": "string", "description": "integer base units (wei-style)" },
    "recipient": { "type": "string", "description": "0x address → response includes tx {to,data,value}" }
  } },
  "url": "https://blazephoenix.xyz/api/quote"
}

One rule for every runtime

Whatever the stack: preview freely (identical concurrent requests coalesce, previews edge-cache ~1 block), but the number you SIGN should be a fresh request carrying recipient and, for size, exact=1 — those are never TTL-cached, because anything executable must never be stale. Zero-custody bots skip signing entirely and hand the user a deep link. The API does not care which you are; it answers all of them the same.

Do not trust this page — reproduce it

Every claim above is checkable against the chain. Start here:

curl "https://blazephoenix.xyz/api/quote?chain=base&in=WETH&out=USDC&amountIn=1000000000000000000" from any terminal — then wire your runtime of choice above

Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).

Share this article · join the discussion

Related engineering