Make sure you have created a Privy application and recorded the
APP_ID and APP_SECRET from the
Privy dashboard.1. Install dependencies
2. Configure the Privy client
3. Create or reuse an embedded wallet
4. Wrap fetch with Privy’s signing helpers
signMessage endpoint.
5. Trigger a Horizon job
6. Poll status or subscribe to webhooks
Common troubleshooting
APIError— Ensure the Privy SDK can reach the API and that your credentials are valid.402loops — Confirm the wallet is funded and that the initial request body is replayed exactly; x402 rejects mutated payloads.- Chain mismatch — When targeting production, swap Base Sepolia for the correct
caip2network ID before settlement.
