starknet-defi
Execute DeFi operations on Starknet including token swaps via avnu aggregator, DCA recurring buys, STRK staking, and lending/borrowing. Supports gasless transactions.
npx skills add internet-court/internet-court-skill --skill starknet-defi --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Starknet DeFi Skill Execute DeFi operations on Starknet using avnu aggregator and native protocols. ## When to Use - Swaps, DCA orders, staking, and lending or borrowing flows on Starknet. - Agent workflows that need AVNU routing, paymaster support, or protocol-specific DeFi execution. ## When NOT to Use - Plain wallet management without DeFi intent. - Cairo contract authoring, deployment operations, or security auditing. ## Quick Start 1. Install the AVNU + starknet.js dependencies and point the skill at a funded Starknet account. 2. Use [skills catalog](../README.md) when the flow expands into wallet setup, deployment, or auditing. ## Prerequisites ```bash npm install starknet@^8.9.1 @avnu/avnu-sdk@^4.0.1 ``` ## Token Swaps (avnu SDK v4) ### Get Quote and Execute Swap ```typescript import { getQuotes, executeSwap, type QuoteRequest } from "@avnu/avnu-sdk"; import { Account, RpcProvider, 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, signer: privateKey, transactionVersion: ETransactionVersion.V3, }); // Resolve token
- When to Use
- When NOT to Use
- Quick Start
- Prerequisites
- Token Swaps (avnu SDK v4)
- Get Quote and Execute Swap
- Quote Response Fields (SDK v4)
- Build Swap Calls (for multicall composition)
- Gasless Swap (Pay Gas in Token) - SDK v4 + PaymasterRpc
- DCA (Dollar Cost Averaging)
- Create DCA Order
- Check and Cancel DCA
- STRK Staking
- Stake STRK
npm install starknet@^8.9.1 @avnu/avnu-sdk@^4.0.1
What does the starknet-defi skill do?
Execute DeFi operations on Starknet including token swaps via avnu aggregator, DCA recurring buys, STRK staking, and lending/borrowing. Supports gasless transactions.
How do I install it?
Run `npx skills add internet-court/internet-court-skill --skill starknet-defi --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From internet-court/internet-court-skill, a repository with 1,536 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.