Skip to content

JustaName-id/jaw-examples

Repository files navigation

JAW Examples

Official examples for the JAW SDK — identity-first smart accounts with passkey authentication, batch operations, and delegated permissions.

Examples

@jaw.id/wagmi — React / Next.js with wagmi

Example Description
nextjs-wagmi Connect, sign, transact, permissions, ENS, SIWE, and subscriptions using the wagmi connector

@jaw.id/core — Framework-agnostic

Example Description
nextjs-core Same features as nextjs-wagmi using the raw JAW EIP-1193 provider (no wagmi)
nextjs-headless-mode Headless Account API — create, login, import passkeys, sign, transact, and manage permissions
node-quickstart Server-side smart account: sign messages, send and batch transactions in Node.js

EIP-7702 — Upgrade EOA to smart account

Example Description
eip7702/node-quickstart Upgrade a private key EOA via EIP-7702 — sign, send, and batch in Node.js
eip7702/turnkey Interactive CLI upgrading a Turnkey wallet via EIP-7702
eip7702/privy-nextjs Next.js app upgrading a Privy embedded wallet via EIP-7702

KMS Integrations — Server-side key management

Example Description
kms/turnkey JAW smart accounts backed by Turnkey server wallets
kms/privy JAW smart accounts backed by Privy server wallets

Quick Start

  1. Get an API key at dashboard.jaw.id

  2. Clone this repo and install all dependencies once from the root:

    bun install
  3. Copy the environment file for the example you want to run and fill in your keys:

    cp examples/nextjs-wagmi/.env.example examples/nextjs-wagmi/.env.local
  4. Run any example from the root:

    npx nx dev nextjs-wagmi

    Replace nextjs-wagmi with any example name: nextjs-core, nextjs-headless-mode, node-quickstart, eip7702-node-quickstart, eip7702-turnkey, eip7702-privy-nextjs, kms-turnkey, or kms-privy.

Documentation

License

MIT

About

Examples repo for JAW.id integrations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors