Skip to content

NEAR Intents: 19 destinations CCTP doesn't reach, with recipient checks - #313

Open
ezedike-evan wants to merge 6 commits into
devfrom
near-intents-19-chains
Open

ezedike-evan wants to merge 6 commits into
devfrom
near-intents-19-chains

Conversation

@ezedike-evan

Copy link
Copy Markdown
Contributor

USDC goes over CCTP to a 1Click deposit address on Base, and NEAR Intents delivers onward. This adds 14 new destinations and re-checks the 5 already offered.

New (14): XRP Ledger, Dogecoin, Litecoin, Bitcoin Cash, Dash, Cardano, BNB Chain (USDT), Gnosis (USDC), Berachain (USDT0), Scroll (USDT), Robinhood Chain (USDG), ADI Chain, Fogo, Aleo (USDCx).
Re-checked: NEAR, Bitcoin, Zcash, Tron, TON.
Left out: Abstract (1Click rejects every 0x address), Movement USDCx (no liquidity), Miden/PRL/QTC (address format unknown).

Every one was dry-quoted at 25 USDC from Base on 2026-11-28; evidence in docs/near-intents-destinations.md.

Recipient safety

  • Per-chain format and checksum checks with plain messages ("That isn't an XRP address. XRP addresses start with r."). 1Click quoted a Dogecoin address with a broken checksum; we now refuse it.
  • XRP: 1Click can't carry a destination tag, so xrpl.ts reads the account first and refuses tag-required (exchange) accounts, deposit-auth accounts, and new accounts that would get under the 1 XRP reserve. If no XRPL server answers, it refuses.
  • Recipient is checked before any quote, so no deposit address is issued for a bad address. Input errors now return 400 with their own sentence instead of "An unexpected error occurred".
  • XRP and TON show a warning: use your own wallet, not an exchange deposit.

Tests: 47 new unit tests (recipients, destinations, xrpl, plan.recipient, _body); lib/near-intents 55 pass. Live test XEBRA_LIVE_TESTS=1 … vitest run destinations.live 24/24 against 1Click (skipped by default). Web tsc clean, biome 0 errors.

Proof still to do: 5 USDC to an XRP r… wallet you control (not an exchange).

🤖 Generated with Claude Code

Format and checksum rules for every chain /near-intents delivers to, with
a plain sentence when an address is wrong ("That isn't an XRP address. XRP
addresses start with r."). 1Click checks most of these itself, but on
2026-11-28 it quoted a Dogecoin address with a broken checksum, so Xebra
checks first. Adds @scure/base 1.2.6 (already in the lockfile via viem)
for base58, bech32 and bech32m.
1Click cannot attach a destination tag, so an exchange account that
requires one would refuse NEAR Intents' payment. Read the account on the
XRP Ledger (two public servers, fail closed) and refuse require-dest-tag
and deposit-auth accounts, and a new account below the 1 XRP reserve.
Moves WANTED out of the route into lib/near-intents/destinations.ts and
adds 14 destinations that dry-quoted from Base USDC on 2026-11-28: BNB
Chain USDT, Gnosis USDC, Berachain USDT0, Scroll USDT, Robinhood Chain
USDG, Aleo USDCx, XRP, Cardano, Dogecoin, Litecoin, Bitcoin Cash, Dash,
Fogo and ADI. With NEAR, Bitcoin, Zcash, Tron and TON that is 19 chains
NEAR Intents delivers, not Circle. XRP and TON carry a warning that a tag
or memo cannot be added. A live test (XEBRA_LIVE_TESTS=1) dry-quotes
every entry.
compare and prepare now check the recipient against the destination's
chain (and the XRP Ledger for XRP) before asking 1Click for a quote, so
no deposit address is issued for an address that cannot receive. Input
errors become PlanInputError and reach the page as a 400 with their
sentence; before, they were hidden behind "An unexpected error
occurred." 1Click's "recipient is not valid" and its bridge minimum in
base units are rewritten in plain words.
XRP and TON deliveries cannot carry a destination tag or memo, so the
field says to use a wallet the person controls, not an exchange deposit.
Lists the 19 chains NEAR Intents delivers to that CCTP does not reach,
each with its asset id and a dry quote at 25 USDC from Base, the chains
checked and left out, minimums, recipient formats and why XRP tags and
TON memos are not supported. Counts them honestly: 29 chains on Circle's
own rails, 48 in total with NEAR Intents. Notes that Stellar-origin
quotes failed that day while Base-origin quotes, which this route uses,
worked.
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
xebra Error Error Nov 28, 2026 2:18pm UTC
xebra-docs Ready Ready Preview Nov 28, 2026 2:18pm UTC

This branch had an error being deployed

1 failed deployment
Preview – xebra — 9b00bf8e Deployed Nov 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant