Skip to content

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_KEY

Set Helius for devnet

npx @trucore/atf@1.5.1 rpc set --provider helius --api-key YOUR_KEY --network devnet

Custom 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.com

RPC 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 ping
Pinging 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 devnet

Switch to mainnet

npx @trucore/atf@1.5.1 config set network mainnet

For quick devnet testing without changing your config, use the burner command which automatically targets devnet.

Flags

FlagDescription
--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.