Overview
Build with Namera in TypeScript.
The Namera SDK lets your application work with accounts, send transactions, and sign messages using scoped session keys.
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!,
});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.signature);
}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.