Skip to content

AAStar SDKBuild Your Own Protocol

Account Abstraction infrastructure with SuperPaymaster, EOA Rainbow Bridge, and Community Management

AAStar SDK

License: MITTypeScriptStatusLast Updated

Easy to Use

Easy to Use

Simple and intuitive API design makes integration straightforward for developers of all levels.

Seamless Integration

Seamless Integration

Works seamlessly with existing Web3 infrastructure and popular frameworks.

Open Source

Open Source

Fully open-source and community-driven development for transparency and collaboration.

Quick Example

typescript
import { createOperatorClient } from '@aastar/sdk';
import { parseEther, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { sepolia } from 'viem/chains';

// Create operator client
const operator = createOperatorClient({
  chain: sepolia,
  transport: http(process.env.RPC_URL),
  account: privateKeyToAccount(process.env.OPERATOR_KEY),
});

// Stake GTokens (used for role collateral)
await operator.stake({
  amount: parseEther('100'),
});

// Deposit aPNTs (used for sponsoring gas)
await operator.deposit({
  amount: parseEther('10'),
});

Why AAStar SDK?

AAStar SDK provides a complete infrastructure for building Your Own Protocol (YOP) with Account Abstraction. Whether you're building a DAO, a DeFi protocol, or a consumer app, AAStar gives you the tools to:

  • Eliminate gas friction for your users
  • Manage communities with on-chain reputation
  • Bridge traditional wallets to smart accounts
  • Customize gas sponsorship rules

Trusted By

Used by developers building the next generation of Web3 applications.

Released under the MIT License. | Last Updated: 2026-01-15 09:16