SWIG’s token limit feature provides a powerful way to implement subscription-based services on Solana. This guide demonstrates how to create a subscription service that charges users monthly using SWIG’s token limit capabilities.You can find the complete example code here:
Examples with svm in the file name use LiteSVM for testing. Those without svm in the file name use a local validator. Which you can run with the bun start-validator command.
For a complete working example that includes both client and server implementations, check out the SWIG SDK Example Repository. This repository demonstrates: