Agent skill · software engineering · aiskillstore

starknet-js

Reference for building Starknet applications using starknet.js v9.x SDK, including contract interaction, account management, transaction handling, fee estimation, wallet integration, and paymaster flows.

Why this skill is useful

Provides specific commands and patterns for interacting with Starknet applications that the AI wouldn't reliably generate on its own.

What it needs

Requires npm installed locally. Requires starknet account access. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

starknet.js v9.x SDK Related modules: skills catalog. When to Use Building Starknet apps with provider, account, contract, wallet, or paymaster flows. When NOT to Use Cairo contract authoring, deployment-only runbooks, or security audits. Quick Start Minimal setup to read from Starknet: Core Architecture Provider: Read-only network connection (RpcProvider) Account: Extends Provider with signing and transaction capabilities Contract: Type-safe interface to deployed contracts Use Provider for read operations, Account for write operations. Provider Setup Networks: Mainnet: https://rpc.starknet.lava.build Sepolia: https://rpc.starknet-testnet.lava.build Key Methods: Account Management Account Creation (4 Steps) Step 1: Compute address Step 2: Fund the address with STRK before deployment. Step 3: Deploy Step 4: Use the account for transactions. Connect to Existing Account Contract Interaction Connect to Contract Typed Contract (Type-Safe) Read State Write (Execute) Multicall (Batch Transactions) Using populate() for type-safety: Parse Events Transaction Simulation Simulate before executing to catch reverts and inspect state changes: Fee Estimation Execute with custom bounds: With priority tip: Transaction Receipt Handling Wallet Integration Connect to browser wallets (ArgentX, Braavos): Paymaster (Gas Sponsorship) Setup paymaster for sponsored or alternative gas token transactions: Sponsored (dApp pays gas): Alternative token (e.g., USDC): Message Signing (SNIP-12) CallData & Cairo Types Important: Always use BigInt (e.g., 1000n) for token amounts and balances. Never use Number() or parseFloat() on wei values -- JavaScript numbers lose precision above 2^53. ERC-20 Token Operations Utility Functions Contract Deployment Outside Execution (SNIP-9) Execute transactions on behalf of another account (gasless/delegated): Error Handling Logging & Configuration

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/starknet-js

View the source on GitHub

Browse the @skills marketplace