feat: add Radius Network to supported chains (eip155:723487)#1125
Open
TJ-Frederick wants to merge 1 commit intocoinbase:mainfrom
Open
feat: add Radius Network to supported chains (eip155:723487)#1125TJ-Frederick wants to merge 1 commit intocoinbase:mainfrom
TJ-Frederick wants to merge 1 commit intocoinbase:mainfrom
Conversation
Adds Radius Network (chain ID 723487) and Radius Testnet (chain ID 72344)
to the EVM network registry in both the TypeScript and Python packages,
and to the create-onchain-agent scaffolder so users can select Radius
during setup.
Changes:
typescript/agentkit/src/network/network.ts
- Define Radius mainnet and testnet chains inline via viem's defineChain
(viem is pinned at exact 2.47.4 in this repo; importing from viem/chains
would require a dep bump).
- Add entries to CHAIN_ID_TO_NETWORK_ID and NETWORK_ID_TO_VIEM_CHAIN.
typescript/create-onchain-agent/src/common/constants.ts
- Add "radius-mainnet" and "radius-testnet" to EVM_NETWORKS.
- Map both to NON_CDP_SUPPORTED_EVM_WALLET_PROVIDERS (Viem + Privy) —
Radius isn't CDP-supported, so CDP wallet providers are excluded.
typescript/create-onchain-agent/src/common/utils.ts
- Mirror the CHAIN_ID_TO_NETWORK_ID additions.
typescript/.changeset/add-radius-network.md
- Minor-version changeset for @coinbase/agentkit.
python/coinbase-agentkit/coinbase_agentkit/network/chain_definitions.py
- Add radius and radius_testnet Chain instances with Multicall3 address.
python/coinbase-agentkit/coinbase_agentkit/network/network.py
- Add entries to CHAIN_ID_TO_NETWORK_ID and NETWORK_ID_TO_CHAIN.
python/create-onchain-agent/create_onchain_agent/cli.py
- Add ("radius-mainnet", "Radius Mainnet") and ("radius-testnet",
"Radius Testnet") to EVM_NETWORKS. The existing get_network_choices
substring filter classifies them correctly (mainnet vs testnet).
python/coinbase-agentkit/changelog.d/add-radius-network.feature.md
python/create-onchain-agent/changelog.d/add-radius-network.feature.md
- Changelog fragments.
Scope
This PR only touches the generic EVM network registry and the scaffolder.
It intentionally does NOT modify the x402 action provider's
SUPPORTED_NETWORKS list, which tracks x402 protocol support and is gated
on upstream chain registration (x402-foundation/x402#2038). Adding Radius
as an x402-supported network will follow in a separate PR once the
upstream lands and this repo bumps its x402 dep.
Radius Network is a stablecoin-native EVM platform with ~500ms finality
and sub-penny gas. Native currency is RUSD (Radius USD, 18 decimals).
Registered in viem 2.48.0, alloy-rs/chains, and
ethereum-lists/chains (#8168, merged).
Website: https://radiustech.xyz
Docs: https://docs.radiustech.xyz
Verified locally: @coinbase/agentkit `pnpm check` and `pnpm test`
(60 suites, 864 tests) pass; @coinbase/create-onchain-agent
`pnpm check:types` passes; Python chain_definitions and network modules
import and resolve cleanly.
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Radius Network (chain ID
723487) and its testnet (chain ID72344) to AgentKit's EVM network registry. This lets agents built with AgentKit use Radius via the ViemWalletProvider and CdpEvmWalletProvider paths for non-CDP operations (ERC-20 transfers, generic contract calls via viem).Radius Network is an EVM-compatible platform optimized for agentic micropayments — sub-penny costs (~$0.0001/tx), sub-second finality, and stablecoin-native gas (RUSD).
Chain details
Native currency: RUSD (Radius USD, 18 decimals). Registered in ethereum-lists/chains and in viem 2.48.0+ as
radius/radiusTestnet.Multicall3 is deployed at the canonical
0xcA11bde05977b3631167028862bE2a173976CA11.Scope
This PR covers the generic EVM chain registry (
src/network/network.tsandcoinbase_agentkit/network/network.py) and thecreate-onchain-agentscaffolder. The x402 action provider'sSUPPORTED_NETWORKSlist is intentionally not touched — Radius x402 support will follow once x402-foundation/x402#2038 lands and AgentKit bumps its x402 dep.ERC-20 token address registration for Radius (SBC stablecoin) is tracked as a follow-up PR.
Implementation notes
defineChainis used inline innetwork.tsrather than importingradius/radiusTestnetfromviem/chains, to avoid bumping the exact-pinnedviem@2.47.4. Happy to switch to the viem imports + version bump if preferred.changelog.dfragments included for bothcoinbase-agentkitandcreate-onchain-agent.Links