Documentation Index
Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt
Use this file to discover all available pages before exploring further.
The official Go SDK github.com/0xkey-io/sdk-go targets server-side integrations: Company Wallets, delegated access, OTP backends, wallet automation, and chain-specific signing examples.
Status
| Item | Status |
|---|
Published module (go get) | Supported — v0.1.0+ |
| Generated API client | Supported |
| Examples (OTP, delegated access, signing) | Supported |
| Parity with every TypeScript helper | Partial — prefer TypeScript server SDK for Next.js proxies |
Quick install
go get github.com/0xkey-io/sdk-go@latest
Getting started walks through API keys, Whoami, and local api.0xkey.com configuration.
Capabilities
| Area | Go SDK |
|---|
| API key authentication | Yes |
| Wallet / policy / user management | Yes |
| Sign transaction / raw payload | Yes |
Email OTP with HPKE (pkg/enclave_encrypt) | Yes |
| Delegated access setup | Yes (example) |
| Auth Proxy replacement | No — use TypeScript or HTTP for proxy patterns |
| React / browser sessions | No — use @0xkey-io/core |
Sub-packages
| Package | Purpose |
|---|
pkg/apikey | Key generation and request signing |
pkg/enclave_encrypt | HPKE encryption to Signer enclave |
pkg/crypto | Session JWT and OTP token verification |
pkg/proofs | Nitro attestation verification |
pkg/store/local | ~/.config/0xkey/keys/ storage |
pkg/api/client | Generated go-swagger client |
Examples (repository)
| Workflow | Path |
|---|
| Getting started — Whoami | examples/whoami/ |
| Email OTP (HPKE) | examples/email_otp/ |
| Delegated access | examples/delegated_access/ |
| Sign transaction / raw payload | examples/signing/ |
| Ethereum / Solana tx management | examples/transaction_management/ |
| go-ethereum BindSigner | examples/go-ethereum/ |
| Wallet create / import / export | examples/wallets/ |
| Generate API key | examples/apikey/ |
API reference
TypeScript alternative
Node.js backends can use @0xkey-io/sdk-server with the same API key model and built-in Express/Next proxies.