1. Sandbox first (zero wallet, zero key)
The fastest sanity check is aPOST /sandbox/try — the relayer pays gas and
pulls the USDC premium from a sandbox wallet, capped at $100 per IP, 10
attempts/hour. Useful for first-call demos and CI smoke tests.
2. Install the SDK
@^0.6.0 is the V5.4 minimum. Older versions still expose the retired
FLASHBTC4H / MICRODEPEG / RATESHOCK names; 0.6.0 throws Unknown product
on those, which is what you want.
3. Mint an API key (self-service)
Sign one message with your wallet — the API verifies and returns a freshlk_… key. Caps: 3 active keys per wallet, 10 onboard attempts per hour per
IP, ±5 minute timestamp window.
Lumina onboarding for {address} at {timestamp}. The SDK
builds it for you.
Need test USDC? See Get test USDC for a one-call
faucet that drops 10,000 mUSDC + 0.05 ETH (gas) into the wallet you pass.
4. Verify connectivity
5. Buy a $1,000 policy
policyId you can reference for triggers and bonds.
The SDK 0.6.0 resolves both the productId keccak hash and the per-shield
asset literal (BTC or ETH) from productName. The six V5.4 products are
listed at Products and assets.