@agnic/wallet-skills 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +2 -2
- package/skills/agnic/SKILL.md +4 -22
- package/skills/ai-gateway/SKILL.md +1 -1
- package/skills/fund-wallet/SKILL.md +2 -2
- package/skills/fund-wallet.md +1 -1
- package/skills/get-agent-identity/SKILL.md +1 -1
- package/skills/get-agent-identity.md +1 -1
- package/skills/send-usdc/SKILL.md +0 -96
- package/skills/send-usdc.md +0 -19
- package/skills/trade-tokens/SKILL.md +0 -107
- package/skills/trade-tokens.md +0 -22
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AgnicPay Agentic Wallet Skills
|
|
2
2
|
|
|
3
|
-
Agent Skills for crypto wallet operations. These skills enable AI agents to authenticate, check balances,
|
|
3
|
+
Agent Skills for crypto wallet operations. These skills enable AI agents to authenticate, check balances, make x402 payments, access 340+ AI models, generate images, and verify on-chain identity using the `agnic` CLI.
|
|
4
4
|
|
|
5
5
|
## Available Skills
|
|
6
6
|
|
|
@@ -8,14 +8,13 @@ Agent Skills for crypto wallet operations. These skills enable AI agents to auth
|
|
|
8
8
|
|-------|-------------|
|
|
9
9
|
| **authenticate-wallet** | Sign in to the wallet via browser OAuth |
|
|
10
10
|
| **check-balance** | Check USDC balance across networks (Base, Solana) |
|
|
11
|
-
| **send-usdc** | Send USDC to Ethereum wallet addresses |
|
|
12
|
-
| **trade-tokens** | Swap/trade tokens on Base (USDC, ETH, WETH, cbETH, DAI, AERO) |
|
|
13
11
|
| **search-for-service** | Search for paid API services via x402 |
|
|
14
12
|
| **pay-for-service** | Make paid API requests via x402 |
|
|
15
13
|
| **fund-wallet** | Get instructions for adding funds to the wallet |
|
|
16
14
|
| **get-agent-identity** | Check on-chain ERC-8004 identity and trust score |
|
|
17
15
|
| **agent-email** | Manage agent email — send, receive, check inbox |
|
|
18
|
-
| **
|
|
16
|
+
| **ai-gateway** | Access 340+ AI models — chat, image generation (GPT, Claude, Gemini, Llama, Flux) |
|
|
17
|
+
| **agnic** | Unified skill — all wallet, payment, email, identity, and AI gateway capabilities |
|
|
19
18
|
|
|
20
19
|
## Installation
|
|
21
20
|
|
|
@@ -33,11 +32,12 @@ Examples:
|
|
|
33
32
|
|
|
34
33
|
- `Sign in to my wallet`
|
|
35
34
|
- `Check my balance`
|
|
36
|
-
- `Send 10 USDC to 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7`
|
|
37
|
-
- `Swap 5 USDC for ETH`
|
|
38
35
|
- `Find a sentiment analysis API`
|
|
39
36
|
- `Pay for https://api.example.com/data`
|
|
40
37
|
- `What's my agent identity?`
|
|
38
|
+
- `List available AI models`
|
|
39
|
+
- `Ask GPT-4o to explain quantum computing`
|
|
40
|
+
- `Generate an image of a sunset over mountains`
|
|
41
41
|
|
|
42
42
|
## Contributing
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnic/wallet-skills",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Vercel AI SDK skills for AgnicPay wallet — balance,
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "Vercel AI SDK skills for AgnicPay wallet — balance, x402, agent identity, and AI gateway",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agnic",
|
|
7
7
|
"agnicpay",
|
package/skills/agnic/SKILL.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agnic
|
|
3
3
|
description: >
|
|
4
|
-
Complete AI agent wallet with payments,
|
|
5
|
-
Use when the user wants to manage their agent's wallet, make payments,
|
|
6
|
-
send/receive email, or check their agent identity.
|
|
4
|
+
Complete AI agent wallet with payments, email, AI gateway, and on-chain identity.
|
|
5
|
+
Use when the user wants to manage their agent's wallet, make payments,
|
|
6
|
+
send/receive email, access AI models, or check their agent identity.
|
|
7
7
|
user-invocable: true
|
|
8
8
|
disable-model-invocation: false
|
|
9
9
|
allowed-tools: ["Bash(npx agnic@latest *)"]
|
|
@@ -11,7 +11,7 @@ allowed-tools: ["Bash(npx agnic@latest *)"]
|
|
|
11
11
|
|
|
12
12
|
## Agnic — Unified Agent Wallet Skill
|
|
13
13
|
|
|
14
|
-
This skill gives your AI agent a full identity stack: wallet, email, payments,
|
|
14
|
+
This skill gives your AI agent a full identity stack: wallet, email, payments, AI gateway, and on-chain identity.
|
|
15
15
|
|
|
16
16
|
### Authentication
|
|
17
17
|
|
|
@@ -43,24 +43,6 @@ npx agnic@latest x402 preview <url>
|
|
|
43
43
|
npx agnic@latest x402 pay <url> --method GET --json
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
### Token Trading
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# Get a quote
|
|
50
|
-
npx agnic@latest trade quote 10 USDC ETH --json
|
|
51
|
-
|
|
52
|
-
# Execute a trade (Base mainnet only)
|
|
53
|
-
npx agnic@latest trade 10 USDC ETH --json
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Supported tokens: USDC, ETH, WETH, cbETH, DAI, AERO
|
|
57
|
-
|
|
58
|
-
### Send USDC
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
npx agnic@latest send <amount> <address> --network base --json
|
|
62
|
-
```
|
|
63
|
-
|
|
64
46
|
### Agent Identity
|
|
65
47
|
|
|
66
48
|
```bash
|
|
@@ -148,7 +148,7 @@ npx agnic@latest ai image --prompt 'Logo design for a tech startup' --json
|
|
|
148
148
|
Common errors:
|
|
149
149
|
|
|
150
150
|
- "Not authenticated" — Run `npx agnic@latest auth login` first
|
|
151
|
-
- "Insufficient balance" — Fund wallet at https://
|
|
151
|
+
- "Insufficient balance" — Fund wallet at https://app.agnic.ai
|
|
152
152
|
- "Model not found" — Check available models with `npx agnic@latest ai models`
|
|
153
153
|
- "No image returned" — Try a different model or rephrase the prompt
|
|
154
154
|
- "Rate limit exceeded" — Wait a moment and retry
|
|
@@ -30,10 +30,10 @@ This displays the user's wallet address on each supported network.
|
|
|
30
30
|
|
|
31
31
|
### Option 1: AgnicPay Dashboard (Recommended)
|
|
32
32
|
|
|
33
|
-
1. Go to [
|
|
33
|
+
1. Go to [app.agnic.ai](https://app.agnic.ai)
|
|
34
34
|
2. Sign in with the same account used in the CLI
|
|
35
35
|
3. Navigate to the dashboard
|
|
36
|
-
4. Use the **"Add Funds"** button to
|
|
36
|
+
4. Use the **"Add Funds"** button to add USDC via card or on-chain funding
|
|
37
37
|
|
|
38
38
|
### Option 2: Direct USDC Transfer
|
|
39
39
|
|
package/skills/fund-wallet.md
CHANGED
|
@@ -8,7 +8,7 @@ description: Get instructions for funding your AgnicPay wallet. Use when the use
|
|
|
8
8
|
1. Check current balance: `npx agnic balance --json`
|
|
9
9
|
2. Show the wallet address: `npx agnic address`
|
|
10
10
|
3. Provide funding instructions:
|
|
11
|
-
- Visit https://
|
|
11
|
+
- Visit https://app.agnic.ai to fund via the dashboard
|
|
12
12
|
- Or send USDC directly to the displayed wallet address on Base or Solana
|
|
13
13
|
4. After funding, verify with `npx agnic balance --json`
|
|
14
14
|
|
|
@@ -75,5 +75,5 @@ ERC-8004 ("Trustless Agents") is an Ethereum standard that gives AI agents:
|
|
|
75
75
|
Common errors:
|
|
76
76
|
|
|
77
77
|
- "Not authenticated" — Run `npx agnic@latest auth login` first
|
|
78
|
-
- "No agent identity found" — The user may not have an agent registered yet; create one via the AgnicPay dashboard at [
|
|
78
|
+
- "No agent identity found" — The user may not have an agent registered yet; create one via the AgnicPay dashboard at [app.agnic.ai](https://app.agnic.ai)
|
|
79
79
|
- "Agent suspended" — The agent's delegation may have been revoked; contact support
|
|
@@ -12,7 +12,7 @@ description: Check agent's on-chain identity, trust score, and KYA credentials.
|
|
|
12
12
|
- Trust score and reputation
|
|
13
13
|
- KYA (Know Your Agent) credentials for identity verification
|
|
14
14
|
- Delegation credentials for authorized actions
|
|
15
|
-
4. Direct user to https://
|
|
15
|
+
4. Direct user to https://app.agnic.ai for full identity management
|
|
16
16
|
|
|
17
17
|
## Allowed Tools
|
|
18
18
|
- npx agnic status
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: send-usdc
|
|
3
|
-
description: Send USDC to an Ethereum address or ENS name. Use when you or the user want to send money, pay someone, transfer USDC, tip, donate, or send funds to a wallet address or .eth name. Covers phrases like "send $5 to", "pay 0x...", "transfer to vitalik.eth", "tip someone", "send USDC".
|
|
4
|
-
user-invocable: true
|
|
5
|
-
disable-model-invocation: false
|
|
6
|
-
allowed-tools: ["Bash(npx agnic@latest status*)", "Bash(npx agnic@latest send *)", "Bash(npx agnic@latest balance*)"]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Sending USDC
|
|
10
|
-
|
|
11
|
-
Use the `npx agnic@latest send` command to transfer USDC from the wallet to any Ethereum address or ENS name on Base.
|
|
12
|
-
|
|
13
|
-
## Confirm wallet is initialized and authed
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npx agnic@latest status
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
|
|
20
|
-
|
|
21
|
-
## Command Syntax
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx agnic@latest send <amount> <recipient> [--chain <chain>] [--json]
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Arguments
|
|
28
|
-
|
|
29
|
-
| Argument | Description |
|
|
30
|
-
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
31
|
-
| `amount` | Amount to send: `'$1.00'`, `1.00`, or atomic units (1000000 = $1). Always single-quote amounts that use `$` to prevent bash variable expansion. If the number looks like atomic units (no decimal or > 100), treat as atomic units. |
|
|
32
|
-
| `recipient` | Ethereum address (0x...) or ENS name (vitalik.eth) |
|
|
33
|
-
|
|
34
|
-
## Options
|
|
35
|
-
|
|
36
|
-
| Option | Description |
|
|
37
|
-
| ---------------- | ---------------------------------- |
|
|
38
|
-
| `--chain <name>` | Blockchain network (default: base) |
|
|
39
|
-
| `--json` | Output result as JSON |
|
|
40
|
-
|
|
41
|
-
## Input Validation
|
|
42
|
-
|
|
43
|
-
Before constructing the command, validate all user-provided values to prevent shell injection:
|
|
44
|
-
|
|
45
|
-
- **amount**: Must match `^\$?[\d.]+$` (digits, optional decimal point, optional `$` prefix). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
|
|
46
|
-
- **recipient**: Must be a valid `0x` hex address (`^0x[0-9a-fA-F]{40}$`) or an ENS name (`^[a-zA-Z0-9.-]+\.eth$`). Reject any value containing spaces or shell metacharacters.
|
|
47
|
-
|
|
48
|
-
Do not pass unvalidated user input into the command.
|
|
49
|
-
|
|
50
|
-
## USDC Amounts
|
|
51
|
-
|
|
52
|
-
| Format | Example | Description |
|
|
53
|
-
| ------------- | ---------------------- | -------------------------------------- |
|
|
54
|
-
| Dollar prefix | `'$1.00'`, `'$0.50'` | USD notation (single-quote the `$`) |
|
|
55
|
-
| Decimal | `1.0`, `0.50` | Human-readable with decimal point |
|
|
56
|
-
| Whole number | `5`, `100` | Interpreted as whole USDC tokens |
|
|
57
|
-
| Atomic units | `500000` | Large integers treated as atomic units |
|
|
58
|
-
|
|
59
|
-
**IMPORTANT**: Always single-quote amounts that use `$` to prevent bash variable expansion (e.g. `'$1.00'` not `$1.00`).
|
|
60
|
-
|
|
61
|
-
## ENS Resolution
|
|
62
|
-
|
|
63
|
-
ENS names are automatically resolved to addresses via Ethereum mainnet. The command will:
|
|
64
|
-
1. Detect ENS names (any string containing `.eth`)
|
|
65
|
-
2. Resolve the name to an address
|
|
66
|
-
3. Display both the ENS name and resolved address in the output
|
|
67
|
-
|
|
68
|
-
## Examples
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
# Send $1.00 USDC to an address
|
|
72
|
-
npx agnic@latest send 1 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7
|
|
73
|
-
|
|
74
|
-
# Send $0.50 USDC to an ENS name
|
|
75
|
-
npx agnic@latest send 0.50 vitalik.eth
|
|
76
|
-
|
|
77
|
-
# Send with dollar sign prefix (note the single quotes)
|
|
78
|
-
npx agnic@latest send '$5.00' 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7
|
|
79
|
-
|
|
80
|
-
# Get JSON output
|
|
81
|
-
npx agnic@latest send 1 vitalik.eth --json
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## Prerequisites
|
|
85
|
-
|
|
86
|
-
- Must be authenticated (`npx agnic@latest status` to check)
|
|
87
|
-
- Wallet must have sufficient USDC balance (`npx agnic@latest balance` to check)
|
|
88
|
-
|
|
89
|
-
## Error Handling
|
|
90
|
-
|
|
91
|
-
Common errors:
|
|
92
|
-
|
|
93
|
-
- "Not authenticated" — Run `npx agnic@latest auth login` first
|
|
94
|
-
- "Insufficient balance" — Check balance with `npx agnic@latest balance`
|
|
95
|
-
- "Could not resolve ENS name" — Verify the ENS name exists
|
|
96
|
-
- "Invalid recipient" — Must be valid 0x address or ENS name
|
package/skills/send-usdc.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: send-usdc
|
|
3
|
-
description: Send USDC to a wallet address. Use when the user wants to send, transfer, or pay someone USDC.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Instructions
|
|
7
|
-
|
|
8
|
-
1. Confirm the recipient address and amount with the user
|
|
9
|
-
2. Check balance first: `npx agnic balance --network base --json`
|
|
10
|
-
3. If sufficient funds, execute: `npx agnic send <amount> <address> --json`
|
|
11
|
-
4. Report the transaction hash and explorer link
|
|
12
|
-
|
|
13
|
-
Optional flags:
|
|
14
|
-
- `--network <network>` — default is "base"
|
|
15
|
-
- `--memo <text>` — attach a memo to the transaction
|
|
16
|
-
|
|
17
|
-
## Allowed Tools
|
|
18
|
-
- npx agnic balance
|
|
19
|
-
- npx agnic send
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: trade-tokens
|
|
3
|
-
description: Swap or trade tokens on Base network. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and WETH. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH", "swap tokens", "trade USDC for WETH".
|
|
4
|
-
user-invocable: true
|
|
5
|
-
disable-model-invocation: false
|
|
6
|
-
allowed-tools: ["Bash(npx agnic@latest status*)", "Bash(npx agnic@latest trade *)", "Bash(npx agnic@latest balance*)"]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Trading Tokens
|
|
10
|
-
|
|
11
|
-
Use the `npx agnic@latest trade` command to swap tokens on Base network. You must be authenticated to trade.
|
|
12
|
-
|
|
13
|
-
## Confirm wallet is initialized and authed
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npx agnic@latest status
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
|
|
20
|
-
|
|
21
|
-
## Command Syntax
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx agnic@latest trade <amount> <from> <to> [options]
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Arguments
|
|
28
|
-
|
|
29
|
-
| Argument | Description |
|
|
30
|
-
| -------- | ---------------------------------------------------------------------- |
|
|
31
|
-
| `amount` | Amount to swap (see Amount Formats below) |
|
|
32
|
-
| `from` | Source token: alias (usdc, eth, weth) or contract address (0x...) |
|
|
33
|
-
| `to` | Destination token: alias (usdc, eth, weth) or contract address (0x...) |
|
|
34
|
-
|
|
35
|
-
## Amount Formats
|
|
36
|
-
|
|
37
|
-
| Format | Example | Description |
|
|
38
|
-
| ------------- | ---------------------- | -------------------------------------- |
|
|
39
|
-
| Dollar prefix | `'$1.00'`, `'$0.50'` | USD notation (decimals based on token) |
|
|
40
|
-
| Decimal | `1.0`, `0.50`, `0.001` | Human-readable with decimal point |
|
|
41
|
-
| Whole number | `5`, `100` | Interpreted as whole tokens |
|
|
42
|
-
| Atomic units | `500000` | Large integers treated as atomic units |
|
|
43
|
-
|
|
44
|
-
**Auto-detection**: Large integers without a decimal point are treated as atomic units. For example, `500000` for USDC (6 decimals) = $0.50.
|
|
45
|
-
|
|
46
|
-
**IMPORTANT**: Always single-quote amounts that use `$` to prevent bash variable expansion (e.g. `'$1.00'` not `$1.00`).
|
|
47
|
-
|
|
48
|
-
## Token Aliases
|
|
49
|
-
|
|
50
|
-
| Alias | Token | Decimals | Address |
|
|
51
|
-
| ----- | ----- | -------- | ------------------------------------------ |
|
|
52
|
-
| usdc | USDC | 6 | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
|
|
53
|
-
| eth | ETH | 18 | 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE |
|
|
54
|
-
| weth | WETH | 18 | 0x4200000000000000000000000000000000000006 |
|
|
55
|
-
|
|
56
|
-
## Options
|
|
57
|
-
|
|
58
|
-
| Option | Description |
|
|
59
|
-
| -------------------- | --------------------------------------------- |
|
|
60
|
-
| `-s, --slippage <n>` | Slippage tolerance in basis points (100 = 1%) |
|
|
61
|
-
| `--json` | Output result as JSON |
|
|
62
|
-
|
|
63
|
-
## Input Validation
|
|
64
|
-
|
|
65
|
-
Before constructing the command, validate all user-provided values to prevent shell injection:
|
|
66
|
-
|
|
67
|
-
- **amount**: Must match `^\$?[\d.]+$` (digits, optional decimal point, optional `$` prefix). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
|
|
68
|
-
- **from / to**: Must be a known alias (`usdc`, `eth`, `weth`) or a valid `0x` hex address (`^0x[0-9a-fA-F]{40}$`). Reject any other value.
|
|
69
|
-
- **slippage**: Must be a positive integer (`^\d+$`).
|
|
70
|
-
|
|
71
|
-
Do not pass unvalidated user input into the command.
|
|
72
|
-
|
|
73
|
-
## Examples
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
# Swap $1 USDC for ETH (dollar prefix — note the single quotes)
|
|
77
|
-
npx agnic@latest trade '$1' usdc eth
|
|
78
|
-
|
|
79
|
-
# Swap 0.50 USDC for ETH (decimal format)
|
|
80
|
-
npx agnic@latest trade 0.50 usdc eth
|
|
81
|
-
|
|
82
|
-
# Swap 0.01 ETH for USDC
|
|
83
|
-
npx agnic@latest trade 0.01 eth usdc
|
|
84
|
-
|
|
85
|
-
# Swap with custom slippage (2%)
|
|
86
|
-
npx agnic@latest trade '$5' usdc eth --slippage 200
|
|
87
|
-
|
|
88
|
-
# Get JSON output
|
|
89
|
-
npx agnic@latest trade '$1' usdc eth --json
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## Prerequisites
|
|
93
|
-
|
|
94
|
-
- Must be authenticated (`npx agnic@latest status` to check)
|
|
95
|
-
- Wallet must have sufficient balance of the source token
|
|
96
|
-
- Trading is only available on Base mainnet
|
|
97
|
-
|
|
98
|
-
## Error Handling
|
|
99
|
-
|
|
100
|
-
Common errors:
|
|
101
|
-
|
|
102
|
-
- "Not authenticated" — Run `npx agnic@latest auth login` first
|
|
103
|
-
- "Invalid token" — Use a valid alias (usdc, eth, weth) or 0x address
|
|
104
|
-
- "Cannot swap a token to itself" — From and to must be different
|
|
105
|
-
- "Swap failed: TRANSFER_FROM_FAILED" — Insufficient balance or approval issue
|
|
106
|
-
- "No liquidity" — Try a smaller amount or different token pair
|
|
107
|
-
- "Amount has X decimals but token only supports Y" — Too many decimal places
|
package/skills/trade-tokens.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: trade-tokens
|
|
3
|
-
description: Trade/swap tokens on Base. Use when the user wants to buy, sell, swap, trade, or exchange tokens like ETH, USDC, DAI, AERO, cbETH.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Instructions
|
|
7
|
-
|
|
8
|
-
1. Confirm which tokens to trade and the amount
|
|
9
|
-
2. Check balance: `npx agnic balance --network base --json`
|
|
10
|
-
3. Optionally preview: `npx agnic trade <amount> <sellToken> <buyToken> --dry-run --json`
|
|
11
|
-
4. Execute trade: `npx agnic trade <amount> <sellToken> <buyToken> --json`
|
|
12
|
-
5. Report results: tokens received, price, transaction hash
|
|
13
|
-
|
|
14
|
-
Supported tokens: USDC, ETH, WETH, cbETH, DAI, AERO
|
|
15
|
-
|
|
16
|
-
Optional flags:
|
|
17
|
-
- `--slippage <percent>` — max slippage percentage (default: 1.0)
|
|
18
|
-
- `--dry-run` — show quote without executing
|
|
19
|
-
|
|
20
|
-
## Allowed Tools
|
|
21
|
-
- npx agnic balance
|
|
22
|
-
- npx agnic trade
|