Skip to content

Commit 70ca764

Browse files
blakecduncanclaude
andcommitted
feat: update agent-prompt with wallet auth family and execution examples
Add "Wallet + API key" auth entry for send, contract call, swap, and approve commands. Add examples for send, contract read, swap quote, and status to the agent-prompt output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 265f852 commit 70ca764

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/commands/agent-prompt.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@ function buildAgentPrompt(program: Command): AgentPrompt {
179179
"debug",
180180
],
181181
},
182+
{
183+
method: "Wallet + API key",
184+
envVar: "ALCHEMY_WALLET_KEY",
185+
flag: "--wallet-key-file <path>",
186+
configKey: "wallet-key-file",
187+
commandFamilies: [
188+
"send",
189+
"contract call",
190+
"swap",
191+
"approve",
192+
],
193+
},
182194
],
183195
commands,
184196
errors,
@@ -189,6 +201,10 @@ function buildAgentPrompt(program: Command): AgentPrompt {
189201
"alchemy --json --no-interactive apps list --access-key $ALCHEMY_ACCESS_KEY",
190202
"alchemy --json --no-interactive rpc eth_blockNumber --api-key $ALCHEMY_API_KEY",
191203
"alchemy --json --no-interactive network list",
204+
"alchemy --json --no-interactive send 0xRecipient 0.001 -n eth-sepolia",
205+
"alchemy --json --no-interactive contract read 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \"balanceOf(address)(uint256)\" --args '[\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"]' -n eth-mainnet",
206+
"alchemy --json --no-interactive swap quote --from 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE --to 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 --amount 1.0 -n eth-mainnet",
207+
"alchemy --json --no-interactive status 0xCallId -n eth-mainnet",
192208
],
193209
docs: "https://www.alchemy.com/docs",
194210
};

0 commit comments

Comments
 (0)