Overview
Build with Namera in TypeScript.
The Namera SDK lets your backend provision accounts and session keys with explicit workspace permissions, then send transactions and sign within session authority.
Quick Examples
Create a client with your API key:
import { NameraClient } from "@namera-ai/sdk";
const namera = new NameraClient({
apiKey: process.env.NAMERA_API_KEY!,
});Create an Account
With an API key explicitly granted wallet:create:
const result = await namera.wallets.create({
namespace: "eip155",
metadata: { version: 1, name: "Backend treasury" },
owner: { type: "namera-managed", provider: "1claw" },
});
if (!result.success) throw new Error(result.error.message);
console.log(result.data);Continue with session creation and explicit installation.
List Accounts
const result = await namera.wallets.list();
if (result.success) {
console.log(result.data);
}Sign a Message
Use the session selected in Getting Started.
const result = await namera.sign({
namespace: "eip155",
walletId: session.walletId,
sessionKeyId: session.id,
chainId: "eip155:84532",
type: "message",
message: "Hello from Namera",
});
if (result.success) {
console.log(result.data);
}The session needs onchain signature authority and an API signature policy that allows this message on Base Sepolia.
Execute a Transaction
Use the session selected in Getting Started.
Replace the example recipient with the wallet allowed by that key.
This sends 0.001 test ETH on Base Sepolia.
import { parseEther } from "viem";
const result = await namera.executions.execute({
namespace: "eip155",
walletId: session.walletId,
sessionKeyId: session.id,
chainId: "eip155:84532",
calls: [
{
to: "0x2222222222222222222222222222222222222222",
value: parseEther("0.001"),
data: "0x",
},
],
sponsor: true,
});
if (result.success) {
console.log(result.data.submissionId);
}Follow Getting Started for funding, permissions, and checking the submission status.
What You Can Build
Accounts & Session Keys
Read accounts and inspect the permissions granted to your integration.
Transactions
Simulate contract calls, submit transactions, and track their status.
Signatures
Sign messages and typed data, then verify smart-account signatures.
Start Building
Install the SDK, then follow Getting Started to connect your workspace.