Resources
Developer resources
Everything you need to get started with Solgateskit — docs, packages, community, and answers to common questions.
Quick links
Articles & posts
Community
Frequently asked questions
How does payment verification work without slowing down requests?
Solgateskit uses Solana's sub-second finality. The client pre-signs a transaction and includes it in the request headers. The server middleware verifies the signature and confirms the transaction on-chain in parallel with request processing. Most verifications complete in under 400ms.
What happens if a payment fails or the transaction doesn't confirm?
The server returns an HTTP 402 Payment Required response with headers indicating the price, accepted token, and payment address. The client SDK automatically retries with a fresh transaction. No data is served until payment is confirmed.
Can I use Solgateskit with existing Express/Next.js apps?
Yes. The server package exports middleware compatible with Express, Next.js API routes, Hono, and any framework that supports standard request/response objects. Add one line of middleware to gate any endpoint.
What tokens are supported for payment?
SOL and any SPL token. You configure accepted tokens in the gate definition. The protocol headers communicate which tokens the server accepts, and the client SDK handles the transaction construction automatically.
Is there a minimum payment amount?
Solana's low transaction fees (< $0.001) make micropayments practical. You can charge as little as 0.0001 SOL per request. The protocol has no enforced minimum — set whatever price makes sense for your API.
