Skip to main content
This guide gets you from zero to working integration in 5 minutes.

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

Set your auth token as an environment variable:

Accept a code from a user

When a user wants to interact with your app:
  1. They visit actioncode.app in their wallet browser
  2. They connect their wallet and get an 8-digit code
  3. 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:

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

1

User gets a code

User opens actioncode.app in their wallet browser (Phantom, Solflare, etc.) and taps “Get Code”
2

User shares the code

User copies the 8-digit code and pastes it into your app
3

Your app attaches an action

You call attachTransaction() or attachMessage()
4

User approves

User sees the request in actioncode.app and taps “Approve” — their wallet signs it
5

Your app gets the result

observeStatus() returns the signature or signed message

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