The most valuable string in a swap integration is a router address. Swap one hex digit and the money goes somewhere else.
Every SDK has to answer a question that rarely makes it into the docs: where do the addresses come from, and what happens if that source is wrong? Here is the answer the BlazePhoenix SDK gives, taken from its registry source and its README, with a script you can run to see the verification yourself.
Layer 1: embedded pins
Addresses shipped inside the npm package are pins. By default they are the only Router and Quoter addresses a quote or a swap will use. Nothing fetched at runtime can move them. If a remote document disagrees with a pin, the SDK ignores the remote value for that field and reports the conflict through an onWarning callback. It never resolves it silently.
The consequence is deliberate: a new deployment reaches you with a new SDK release, not with a JSON file that changed overnight.
Layer 2: the published registry
The SDK also reads https://blazephoenix.xyz/api/deployments, a static JSON file refreshed every 10 minutes in the background (the first lookup waits at most 3 seconds). It can only fill what the package does not know, for example the 2.0.0 addresses once they exist, and only for versions that can be verified on-chain.
Even then, a remote-only version is listed but not routed to unless you opt in with registry: { remoteVersions: true }. The source comment explains why: the on-chain check of a remote entry reads that entry's own contracts, so it cannot tell a real deployment from a look-alike. If you do opt in, every remote set is still verified on your RPC before first use. It checks that code exists at every address, that VERSION() matches, and that the Quoter, Router and Solver point at the same Hub and Solver. Anything else throws deployment_unverified.
Layer 3: your overrides
new BlazePhoenix({
rpc,
contracts: { base: { router: '0x…', quoter: '0x…', version: '2.0.0' } }, // your fork or audit target
registry: { mode: 'embedded' }, // never touch the network for addresses
});
Your contracts always win and are never second-guessed. mode: 'embedded' turns the network fetch off entirely, so the SDK uses only its snapshot and what you gave it. That is the setting for anyone auditing a specific deployment.
Try it
This reads on a public Base endpoint; swap in your own node.
import { BlazePhoenix } from '@blazephoenix/sdk';
const blaze = new BlazePhoenix({
rpc: { base: process.env.BASE_RPC_URL },
registry: { onWarning: (m) => console.log('WARN', m) }, // pin conflicts are never silent
});
console.log(await blaze.deployments()); // chains × versions, and where each came from
console.log(await blaze.verifyDeployment({ chain: 'base' }));
deployments() returns a table of rows, each with a source of embedded, remote or override. On 29 October 2026 the rows for version 2.0.0 on all five chains showed status: "pending" with all-zero addresses. That means the 2.0.0 contracts have not been registered, and the SDK will not invent them. Asking for them directly is a clean refusal:
not_deployed no BlazePhoenix deployment matching version "2.0.0" on chain 8453 (deployed: 1.0.0)
verifyDeployment for Base on version 1.0.0 returned ok: true with source embedded and four checks, one for each contract registered for 1.0.0 (the Core slot is empty in that version):
code:hub ok 14637 bytes
code:solver ok 21333 bytes
code:router ok 14624 bytes
code:quoter ok 9449 bytes
The Router address it checked, 0x2a779f9Be49aac57495A8B6467Cc325a8a47Eb9f, and the Quoter, 0x4cEF0615614B212895F45Aa1D4833B16666E18d3, are the same ones the project lists as source-verified on Sourcify for Base. You do not have to take the SDK's word for either: compare them with /api/deployments and with the Sourcify record.
What this protects against, and what it does not
Protects: a compromised or mistaken website document redirecting your swaps; a typo in a registry update; a look-alike set with the right shape and the wrong code, because remote-only versions are not routed to by default.
Does not protect: a malicious package release. The pins live in the package, so the usual npm hygiene applies (lockfiles, reviewing diffs of a dependency you send funds through). It also does not replace reading the contracts. The source is public under the Business Source License 1.1, and BlazePhoenix is pre-launch with an independent external audit scheduled before launch.
A checklist worth borrowing
-
Where do my addresses come from, and can a runtime fetch move them?
-
If two sources disagree, which wins, and is it logged?
-
Is the verification done by something that does not share the thing being verified?
-
Can I turn the network off and use only what I pinned?
If your integration cannot answer these, the address is the weakest link in a stack that otherwise takes a lot of trouble to be verifiable.
SDK: npm i @blazephoenix/sdk · registry: blazephoenix.xyz/api/deployments · site: blazephoenix.xyz · docs for agents: llms.txt