Connect to the Protochain server
Before making any API calls, create a gRPC channel and instantiate the Account Service client. See Connecting to Protochain for full TLS/credential options and endpoint configuration.
Fetch an existing account
Call The System Program account (
GetAccount with any known Solana address. This confirms your connection is working and returns the account’s SOL balance and owner program.11111111111111111111111111111111) is always present on all Solana networks. Fetching it is a reliable connectivity test.Generate a new keypair
Generate a fresh keypair to use as your dev account. The private key is returned in plaintext — store it securely.
Fund your keypair on devnet
FundNative uses the Solana devnet faucet. It only works on devnet — it will fail on mainnet or testnet. This is intentional: real SOL cannot be airdropped.Next steps
You now have a working Protochain connection and a funded devnet keypair. From here:- Explore the full Account Service reference for token balance and ATA methods.
- Read Transaction Lifecycle to understand how to build and submit transactions.
- Follow the Transfer SOL guide to build your first transaction end-to-end.