Skip to main content
1

Install package

pnpm add @actioncodes/sdk
2

Initialize the ActionCodesClient with your auth token.

client.ts
import { ActionCodesClient } from '@actioncodes/sdk';

const client = new ActionCodesClient({
authToken: process.env.ACTION_CODES_TOKEN
});
Request an auth token by DMing @beharefe on Telegram or emailing gm@actioncodes.org.
3

Now you are ready to do magic with Action Codes!

input.ts
// Get code from user and resolve it to verify and see details!

await client.resolve(code);