Prerequisites
- Rust toolchain: Install from rustup.rs
- Buf CLI (for building gRPC clients): Install from buf.build/docs/cli/installation
Install the SDKs
Install the Thru toolchain and C SDK using the CLI:The SDK will be installed to
~/.thru/sdk/c/ by default. The toolchain will be installed to ~/.thru/sdk/toolchain/.Setup
1
Install the CLI
Install the Thru CLI using cargo:Verify the install:
2
Make an initial call (expected to fail)
Try a simple command:
3
Configure RPC endpoint
Edit your CLI configuration file at
~/.thru/cli/config.yamlSet the base URL:4
Verify with getversion
Run again:
If you can see the
thru-node version your CLI can reach the alphanet endpoint.5
Generate a keypair
Generate a keypair to use for your account:For example, to create a keypair named
default:This keypair will be stored locally and used to sign transactions. If you don’t specify a name, it defaults to
default.6
Create your first account
Create an account on-chain using your keypair:For example, to create an account named You’ll see output similar to this:
default: