CLI › RPC & Network
RPC & Network
ATF CLI is Helius-first by default. Configure your RPC endpoint, test connectivity, and switch between mainnet and devnet.
Helius RPC Setup
Helius provides reliable Solana RPC access. Sign up at helius.dev for an API key, then configure the CLI:
Set Helius endpoint
npx @trucore/atf@1.5.1 rpc set --provider helius --api-key YOUR_KEYSet Helius for devnet
npx @trucore/atf@1.5.1 rpc set --provider helius --api-key YOUR_KEY --network devnetCustom RPC Endpoint
If you use a different RPC provider, set the URL directly:
Set custom URL
npx @trucore/atf@1.5.1 rpc set --url https://your-rpc-endpoint.example.comRPC Ping
Quick latency check to confirm your endpoint is reachable and responsive. This is one of the easiest dev tools to run.
Ping endpoint
npx @trucore/atf@1.5.1 rpc pingPinging https://rpc.helius.xyz ... Response: 200 OK (38ms) Network: devnet Block height: 284,291,044
Network Selection
Switch between mainnet and devnet using config:
Switch to devnet
npx @trucore/atf@1.5.1 config set network devnetSwitch to mainnet
npx @trucore/atf@1.5.1 config set network mainnetFor quick devnet testing without changing your config, use the burner command which automatically targets devnet.
Flags
| Flag | Description |
|---|---|
| --provider <name> | RPC provider name (e.g., helius). |
| --api-key <key> | API key for the provider. |
| --url <endpoint> | Direct RPC endpoint URL. |
| --network <net> | Target network: mainnet or devnet. |