starknet-defi

Solid

Execute DeFi operations on Starknet including token swaps via avnu aggregator, DCA recurring buys, STRK staking, and lending/borrowing. Supports gasless transactions.

AI & Automation 80 stars 25 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 addresses via avnu SDK (or use MCP server's TokenService) import { fetchVerifiedTokenBySymbol } from '@avnu/avnu-sdk'; const eth = await fetchVerifiedTokenBySymbol('ETH'); const strk = await fetchVerifiedTokenBySymbol('STRK'); // SDK v4: getQuotes takes QuoteRequest object ...

Details

Author
keep-starknet-strange
Repository
keep-starknet-strange/starknet-agentic
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category