127.0.0.1. This lesson
shows that none of the gen CLI semantics change when you point at the
shared DevNet — only the URL, an auth header, and ~100 ms of network.
This is on purpose. There is no “local mode SDK” and “production SDK”. There
is one CLI, one wire protocol, one gas model.
Prerequisites · DevNet access. Ask your Gen Labs contact for the RPC URL
and a bearer token. Substitute the URL for
<DEVNET_RPC_URL> in the examples
below, and export the token as GEN_DEVNET_BEARER_TOKEN.Steps
- CLI
- Rust SDK
Point at DevNet
gen invocation will include the auth header. The
cleanest way is to wrap it once:gen_remote wallet --json show alice does on DevNet exactly what
"$GEN" wallet --rpc-url "$SERVER_URL" --json show alice did locally.Re-run lesson 1's identity check
Faucet on DevNet
Receipt ·
1 activation · 0.001¢ USDG · ~100 ms · Latency went up
by network RTT; everything else is identical.The Rust crates are pinned in the demo at
gen-rpc-client and gen-rpc-wire
v0.13.0 from gen-bc/gen-framework-preview. Wallet creation and faucet are
explicitly not in the SDK — they stay on the gen CLI (see lessons 1 and
2). The SDK covers everything from get-account / view / build-activation
onward.The whole local-vs-DevNet delta, in one table
| Concern | Local | DevNet |
|---|---|---|
| Binary | gen | gen (same) |
| Wire protocol | JSON-RPC | JSON-RPC (same) |
| RPC URL | http://127.0.0.1:30001 | <DEVNET_RPC_URL> |
| Auth | none | bearer token header |
| Block time | ~100 ms | ~100 ms |
| Activation cost | 0.001¢ USDG | 0.001¢ USDG |
| Round-trip latency | ~10 ms | ~100 ms |
What just happened
You proved that the CLI is network-agnostic: the same script you write against your laptop will run against DevNet, against the public testnet when it ships, and against mainnet, with no code changes — only the RPC URL. This matters more than it sounds. A common failure mode in other ecosystems is “works on Hardhat, breaks on mainnet” — code that depends on local-only behaviors. The Grid CLI is designed so that doesn’t happen.What’s next
Transfer between accounts
The first activation you’ll build, sign, and submit yourself.

