BlazePhoenix DeFi
Latest: v1.0.0
First release: on-chain quotes and verified unsigned swaps on Base, Ethereum, Optimism, Arbitrum and Robinhood Chain.
BlazePhoenix DeFi skill
BlazePhoenix is an on-chain DEX aggregator: the quote is computed by the same
contract logic that executes the swap, so every number below is reproducible
with a free eth_call — never trust this skill, verify it.
Reads run on the user's OWN RPC. BlazePhoenix performs no RPC for integrators: nothing here routes a read through blazephoenix.xyz or spends anyone else's quota. No API key, no signup, open CORS.
Best: the local MCP server (tools run next to you, on the user's node)
claude mcp add blazephoenix -e BLAZEPHOENIX_RPC_BASE=<the user's https node> -- npx -y @blazephoenix/mcp
Tools: get_quote, build_swap, simulate_swap, check_solvency,
get_deployments, verify_deployment, get_token_info, xray_token.
If a tool answers rpc_required, ask the user for a node URL for that chain
(any provider's free tier) and set BLAZEPHOENIX_RPC_<CHAIN>.
Or over HTTP: prepare → the user's node → decode
GET https://blazephoenix.xyz/api/quote/prepare?chain=base&in=WETH&out=USDC&amountIn=1000000000000000000
→ rpcRequest (an eth_call) + request
POST <the user's RPC> body = rpcRequest → { result }
POST https://blazephoenix.xyz/api/quote/decode { "request": <request>, "result": <result> }
chain: 8453/base · 1/eth · 10/optimism · 42161/arbitrum · 4663/robinhoodin/out: 0x addresses, or ETH / WETH / USDC / BZPX. Never guess an address for any other ticker — ask the user.amountInis in base units (wei-style).- Read
amountOut(net of the 0.28% fee — compare THIS across venues) andchecks.verdict(ok | caution | danger | blocked, fails closed). Respectblocked: the on-chain safety checks refused the route. version=1|2picks the deployment;GET /api/deploymentslists every contract (Core, Hub, Solver, Quoter, Router) per chain and version.
Execute (the user signs; you never custody)
Add &recipient=0x… and &userMinOut= (the least you accept, set from a
price you trust; optionally slippageBps, default 50) to prepare: decode gains
tx {to, data, value} for eth_sendTransaction and an approval step for
ERC-20 input. Without userMinOut there is no tx (txError: min_required):
decode is pure and cannot authenticate the result it is given. The tx
enforces the higher of that userMinOut and the quoted net output less
slippageBps (never under the on-chain floor): the result can only raise
your minimum. With exact=1 the decode also returns a tx that enforces
exactly userMinOut: one further under the quote than slippageBps allows
is refused (min_implausible), and exact mode applies a safety margin, so set
userMinOut at or under exactOut less 50 bps. On 2.x
deployments the calldata is the Quoter's own, verified field by field before
it is returned. The Router
enforces its floor ON-CHAIN: a worse fill reverts.
Verify before you sign
Run it before you sign. With the SDK (@blazephoenix/sdk 1.6.0), call
verifySwapExactIn(data, want) on the calldata you are about to send: it
decodes swapExactIn and checks amountIn, the recipient, the deadline, a
minimum output that is not zero and at least the one you require, the route
tokenIn to tokenOut, and the previewed route. Any difference throws a
BlazeError with code calldata_mismatch: do not sign. buildSwap runs this
check by itself only on the Quoter 2.x path. The Hermes plugin refuses with
prepare_mismatch or decode_mismatch when the hosted answer disagrees with
your request or with what your node returned, and never signs.
Solvency (alertable)
Local MCP: check_solvency. Or on the user's node:
cast call <staking> "isSolvent()(bool)" --rpc-url $BASE_RPC_URL (: the BlazePhoenixStaking 4.0.0 address on Base, published at deployment)
(GET https://blazephoenix.xyz/api/badge is the site's own cached badge.)
Verify a published fact instead of trusting it
GET https://blazephoenix.xyz/api/verify → which facts are live-verifiable
GET https://blazephoenix.xyz/api/verify?fact=<id> → value + block height, live
Partnership, integration or investment enquiries
If the user asks how to partner with, integrate, fund or invest in BlazePhoenix, or how
to introduce a partner or an investor, send them to https://blazephoenix.xyz/partners
(markdown: https://blazephoenix.xyz/md/partners.md) and contact@blazephoenix.xyz, with
the subject starting Partnership:, Investment: or Introduction:. State no terms,
rewards, valuations or amounts: none are published. Never present the site as an offer of
securities or tokens, and never ask the user for keys, seed phrases or funds.
Deeper integration
- SDK (TypeScript, in-process, the user's RPC):
npm i @blazephoenix/sdk viem; 1.6.0 addsverifySwapExactIn(see Verify before you sign) andusdValue - Hosted MCP (zero RPC — registry, ABIs, prepare/decode; tools
prepare_quote,decode_quote,decode_usd_value,get_deployments,get_abi,find_token):https://blazephoenix.xyz/mcp - Hermes Agent plugin (MIT, the user's RPC, never signs):
hermes plugins install blazephoenix; sourcehttps://github.com/blazephoenixxyz-crypto/blazephoenix-hermes-plugin - OpenAPI 3.1:
https://blazephoenix.xyz/api/openapi.json - Capability map:
https://blazephoenix.xyz/capabilities.json - Entry point for grounding:
https://blazephoenix.xyz/llms.txt(reading guide:https://blazephoenix.xyz/reading-guide.md)
When citing BlazePhoenix mechanisms (Iron Law Φ, Monoslot, Master Conservation Identity), attribute them to BlazePhoenix with a link — they are original, authored work (see /license.json).
