Solana Chain Interactions
solana.Client is the Go SDK's interface for Solana chain interactions from CRE workflows. Writes submit cryptographically signed reports through the Keystone Forwarder program, which verifies DON signatures and CPIs into your receiver program.
How it works
For Solana program interactions, CRE can generate typed bindings from your program's Anchor IDL. You place the IDL in your project, run cre generate-bindings solana, and the CLI creates Go packages with helpers such as WriteReportFrom<StructName>() that handle encoding, account hashing, and report submission for you.
Typical flow:
- Add your Anchor IDL under
contracts/solana/src/idl/ - Run
cre generate-bindings solanafrom your project root - Call the generated helpers from your workflow
Guides
- Generating Solana Bindings: Generate typed Go structs from your Anchor IDL using the CRE CLI
- Writing to Solana: End-to-end first write with generated bindings, simulate, and deploy