starknet-wallet
Create and manage Starknet wallets for AI agents. Transfer tokens, check balances, manage session keys, deploy accounts, and interact with smart contracts using native Account Abstraction.
Install / Use
npx skills add internet-court/internet-court-skill --skill starknet-walletInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
OperationsSupported Platforms
Tags
Our assessment of starknet-wallet
starknet-wallet scores 96/100 on our quality scale, 50th of 440 Operations skills we index (top 12%).
Its SKILL.md is 14 KB long, well organised into 22 sections with 17 code examples: a thorough specification that gives an agent plenty to work with.
With 6,129 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 39 days ago, so starknet-wallet is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
starknet-wallet compared with similar skills
All 4 of these similar skills score higher than starknet-wallet; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| starknet-wallet (this skill)by internet-court | 96 | 6.1k | 39d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 7d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install starknet-wallet?
- Run
npx skills add internet-court/internet-court-skill --skill starknet-wallet. The install tabs above show the steps for each supported agent. - Which AI agents does starknet-wallet work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is starknet-wallet safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is starknet-wallet still maintained?
- The repository was last updated 39 days ago, so starknet-wallet is actively maintained.
Skill content
View source on GitHubname: starknet-wallet description: Create and manage Starknet wallets for AI agents. Transfer tokens, check balances, manage session keys, deploy accounts, and interact with smart contracts using native Account Abstraction. license: Apache-2.0 metadata: {"author":"starknet-agentic","version":"1.0.0","org":"keep-starknet-strange"} keywords: [starknet, wallet, transfer, balance, session-keys, account-abstraction, paymaster, gasless, agent-wallet, strk, eth] allowed-tools: [Bash, Read, Write, Glob, Grep, Task] user-invocable: true
Starknet Wallet Skill
Manage Starknet wallets for AI agents with native Account Abstraction support.
When to Use
- Creating, funding, and operating Starknet accounts for agent workflows.
- Checking balances, sending transfers, managing session keys, or invoking contracts from an agent wallet.
When NOT to Use
- DeFi-specific routing, staking, or lending flows better covered by
starknet-defi. - Cairo contract authoring, deployment-only operations, or security auditing.
Quick Start
- Install the SDK dependencies and set Starknet RPC/account environment variables.
- Use skills catalog to pivot to adjacent modules like DeFi, deployment, or auditing.
Prerequisites
npm install starknet@^8.9.1 @avnu/avnu-sdk@^4.0.1
Environment variables:
STARKNET_RPC_URL=https://starknet-mainnet.g.alchemy.com/v2/YOUR_KEY
STARKNET_ACCOUNT_ADDRESS=0x...
STARKNET_PRIVATE_KEY=0x...
AVNU_BASE_URL=https://starknet.api.avnu.fi (optional)
AVNU_PAYMASTER_URL=https://starknet.paymaster.avnu.fi (optional)
AVNU_PAYMASTER_API_KEY=your_key (optional, for free gas)
Available MCP Tools
The Starknet MCP Server provides these tools for wallet operations:
| Tool | Purpose | Key Features |
|------|---------|--------------|
| starknet_get_balance | Check single token balance | Simple, fast queries |
| starknet_get_balances | Check multiple token balances | Batch queries (up to 200 tokens), single RPC call |
| starknet_transfer | Send tokens | Supports gasless mode (paymaster) |
| starknet_call_contract | Read contract state | Call view functions |
| starknet_invoke_contract | Execute contract functions | Write operations, supports gasless |
| starknet_swap | Execute token swaps | AVNU integration, best price routing |
| starknet_get_quote | Get swap quotes | Price estimation before swap |
| starknet_register_agent | Register agent identity | ERC-8004 on-chain identity |
Balance Tools Detail
starknet_get_balance (Single Token)
Query balance for one token. Use for simple cases.
Input:
token(required): Token symbol (ETH, STRK, USDC, USDT) or contract addressaddress(optional): Wallet address (defaults to agent's address)
Response:
{
"address": "0x...",
"token": "ETH",
"tokenAddress": "0x04…[redacted]",
"balance": "1.5",
"raw": "1500000000000000000",
"decimals": 18
}
starknet_get_balances (Multiple Tokens)
Query balances for multiple tokens in a single RPC call. More efficient for portfolio views.
Input:
tokens(required): Array of token symbols or addresses (max 200)address(optional): Wallet address
Response:
{
"address": "0x...",
"balances": [
{ "token": "ETH", "tokenAddress": "0x...", "balance": "1.5", "raw": "...", "decimals": 18 },
{ "token": "USDC", "tokenAddress": "0x...", "balance": "100", "raw": "...", "decimals": 6 }
],
"tokensQueried": 2,
"method": "balance_checker"
}
When to use:
- starknet_get_balance: Quick single-token check
- starknet_get_balances: Portfolio overview, multi-token operations
Core Operations
Check Balance (Single Token)
Use the starknet_get_balance MCP tool for simple single-token queries:
// Via MCP tool (recommended)
const result = await mcpClient.callTool({
name: "starknet_get_balance",
arguments: {
address: "0x...", // Account address
token: "ETH", // Symbol (ETH, STRK, USDC, USDT) or contract address
}
});
// Returns: { address, token, tokenAddress, balance, raw, decimals }
Direct starknet.js usage:
import { RpcProvider, Contract } from "starknet";
const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC_URL });
// ETH balance (starknet.js v8 uses options object for Contract)
const ethAddress = "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7";
const ethContract = new Contract({
abi: erc20Abi,
address: ethAddress,
providerOrAccount: provider,
});
const balance = await ethContract.balanceOf(accountAddress);
// starknet.js v8: Convert uint256 to bigint
const balanceBigInt = BigInt(balance.low) + (BigInt(balance.high) << 128n);
// Format: (balanceBigInt / 10n ** 18n).toString() for whole units
Check Multiple Balances (Batch)
Use starknet_get_balances for efficient multi-token queries (single RPC call):
// Via MCP tool (recommended for multiple tokens)
const result = await mcpClient.callTool({
name: "starknet_get_balances",
arguments: {
address: "0x...",
tokens: ["ETH", "STRK", "USDC", "USDT"], // Up to 200 tokens
}
});
// Returns:
// {
// address: "0x...",
// balances: [
// { token: "ETH", tokenAddress: "0x...", balance: "1.5", raw: "1500000000000000000", decimals: 18 },
// { token: "STRK", tokenAddress: "0x...", balance: "100", raw: "100000000000000000000", decimals: 18 },
// ...
// ],
// tokensQueried: 4,
// method: "balance_checker" // Uses BalanceChecker contract for efficiency
// }
Direct starknet.js usage with BalanceChecker contract:
import { RpcProvider, Contract } from "starknet";
const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC_URL });
// BalanceChecker contract (returns non-zero balances only)
const BALANCE_CHECKER_ADDRESS = "0x031ce64a666fbf9a2b1b2ca51c2af60d9a76d3b85e5fbfb9d5a8dbd3fedc9716";
const BALANCE_CHECKER_ABI = [
{
type: "struct",
name: "core::integer::u256",
members: [
{ name: "low", type: "core::integer::u128" },
{ name: "high", type: "core::integer::u128" },
],
},
{
type: "struct",
name: "governance::balance_checker::NonZeroBalance",
members: [
{ name: "token", type: "core::starknet::contract_address::ContractAddress" },
{ name: "balance", type: "core::integer::u256" },
],
},
{
type: "function",
name: "get_balances",
inputs: [
{ name: "address", type: "core::starknet::contract_address::ContractAddress" },
{ name: "tokens", type: "core::array::Span::<core::starknet::contract_address::ContractAddress>" },
],
outputs: [{ type: "core::array::Span::<governance::balance_checker::NonZeroBalance>" }],
state_mutability: "view",
},
];
const balanceChecker = new Contract({
abi: BALANCE_CHECKER_ABI,
address: BALANCE_CHECKER_ADDRESS,
providerOrAccount: provider,
});
// Query multiple tokens at once
const tokens = [
"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", // ETH
"0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", // STRK
"0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", // USDC
];
const result = await balanceChecker.get_balances(accountAddress, tokens);
// Parse response (only non-zero balances returned)
for (const item of result) {
const tokenAddr = "0x" + BigInt(item.token).toString(16).padStart(64, "0");
const balance = BigInt(item.balance); // starknet.js converts u256 to bigint
console.log(`${tokenAddr}: ${balance}`);
}
When to use which:
starknet_get_balance: Single token, simple use casestarknet_get_balances: Multiple tokens, portfolio view, more efficient
Transfer Tokens
Use the starknet_transfer MCP tool with optional gasless mode:
// Via MCP tool (recommended)
const result = await mcpClient.callTool({
name: "starknet_transfer",
arguments: {
recipient: "0x...",
token: "STRK", // Symbol or contract address
amount: "10.5", // Human-readable amount
gasfree: false, // Optional: use paymaster
}
});
// Returns: { transactionHash, recipient, token, amount, gasfree }
Gasless Transfer (Pay gas in token instead of ETH/STRK):
// Pay gas in USDC instead of ETH/STRK
const result = await mcpClient.callTool({
name: "starknet_transfer",
arguments: {
recipient: "0x...",
token: "STRK",
amount: "100",
gasfree: true,
gasToken: "USDC", // Gas paid in USDC
}
});
Direct starknet.js usage:
import { Account, RpcProvider, CallData, cairo, ETransactionVersion } from "starknet";
const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC_URL });
// starknet.js v8: Account uses options object
const account = new Account({
provider,
address: process.env.STARKNET_ACCOUNT_ADDRESS,
signer: process.env.STARKNET_PRIVATE_KEY,
transactionVersion: ETransactionVersion.V3,
});
const tokenAddress = "0x04…[redacted]"; // STRK
// starknet.js v8: Use cairo.uint256() instead of uint256.bnToUint256()
const { transaction_hash } = await account.execute({
contractAddress: tokenAddress,
entrypoint: "transfer",
calldata: CallData.compile({
recipient: recipientAddress,
amount: cairo.uint256(amountInWei),
}),
});
await account.waitForTransaction(transaction_hash);
Estimate Fees
const estimatedFee = await account.estimateInvokeFee({
contractAddress: tokenAddress,
entrypoint: "transfer",
calldata: CallData.compile({
recipient: recipientAddress,
amount: cairo.uint256(amountInWei),
}),
});
// estimatedFee.overall_fee -- total fee in STRK (V3 transactions)
Contract Interactions
Read contract state (view functions):
// Via MCP tool
const result = await mcpClient.callTool({
name: "starknet_call_contract",
arguments: {
contractAddress: "0x...",
entrypoint: "balanceOf",
calldata: [accountAddress],
}
});
Write to contracts (state-changing functions):
// Via MCP tool with gasless option
const result = await mcpClient.callTool({
name: "starknet_invoke_contract",
arguments: {
contractAddress: "0x...",
entrypoint: "approve",
calldata: [spenderAddress, ...uint256Amount],
gasfree: true, // Optional: use paymaster
gasToken: "USDC", // Optional: pay gas in token
}
});
Multi-Call (Batch Transactions)
// Execute multiple operations in a single transaction
const { transaction_hash } = await account.execute([
{
contractAddress: tokenA,
entrypoint: "approve",
calldata: CallData.compile({
spender: routerAddress,
amount: cairo.uint256(amount),
}),
},
{
contractAddress: routerAddress,
entrypoint: "swap",
calldata: CallData.compile({ /* swap params */ }),
},
]);
Gasless Transfer (Pay Gas in Token) - SDK v4 + PaymasterRpc
import { getQuotes, executeSwap } from "@avnu/avnu-sdk";
import { PaymasterRpc } from "starknet";
// SDK v4: Use PaymasterRpc from starknet.js
// Mainnet: https://starknet.paymaster.avnu.fi
// Sepolia: https://sepolia.paymaster.avnu.fi
const paymaster = new PaymasterRpc({
nodeUrl: process.env.AVNU_PAYMASTER_URL || "https://starknet.paymaster.avnu.fi",
});
// Any swap can be made gasless by adding paymaster option
const result = await executeSwap({
provider: account,
quote: bestQuote,
slippage: 0.01,
executeApprove: true,
paymaster: {
active: true,
provider: paymaster,
params: {
feeMode: {
mode: "default",
gasToken: usdcAddress, // Pay gas in USDC instead of ETH/STRK
},
},
},
});
Token Resolution
The MCP server uses TokenService to resolve token symbols and addresses. Static toke
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
