selat-router.
Prerequisites
Before you begin, you must have:- Node.js 18 or newer
- Access to a signer, either a private key, Circle Agent Wallet, or remote signer
- A wallet funded with USDC on your target chain (see the “Fund your wallet” step below)
- A target endpoint that is reachable through SELAT
Get started
Create a signer
Start with a private key, or switch to a Circle Agent Wallet or remote signer when you are ready to remove secrets from the runtime.The signer reads your key from the Then create the signer:
X402_CLIENT_PRIVATE_KEY environment variable. If you don’t already have a key, generate one:Fund your wallet
Paid requests draw USDC from your signer’s wallet through Circle Gateway. A brand-new key has a zero balance, so fund it before your first paid request — otherwise the request fails with an insufficient-balance error.The simplest way to top up is the SELAT CLI:Use the same chain you pass to
RouterClient (here, base) — see Supported chains. You can also deposit USDC into Circle Gateway directly for the wallet behind your signer.