Prerequisites
- Node.js 18+ (or Bun)
- A user with a Solana wallet
- An auth token (request one by DMing @beharefe on Telegram or emailing gm@actioncodes.org)
Users generate codes at actioncode.app using their wallet. Your app receives and processes these codes — you don’t need wallet access.
Install the SDK
Initialize the client
Accept a code from a user
When a user wants to interact with your app:- They visit actioncode.app in their wallet browser
- They connect their wallet and get an 8-digit code
- They share that code with your app
Attach an action
Now attach what you want the user to approve. Choose based on your use case:- Sign a Transaction
- Sign a Message
Wait for approval
The user will see the pending request in actioncode.app and can approve it with their wallet.Complete example
Here’s everything together — a simple flow where a user signs a message:User flow summary
User gets a code
User opens actioncode.app in their wallet browser (Phantom, Solflare, etc.) and taps “Get Code”
Next steps
How It Works
Understand the lifecycle in detail
SDK Methods
Full API reference
Recipes
Copy-paste examples for common use cases
Playground
Try it interactively