Agent Skills
› NeverSight/learn-skills.dev
› aave-viem-integration
aave-viem-integration
GitHub提供基于 viem 的 AAVE EVM 集成模式,涵盖客户端配置、链 RPC 选择、ERC20 余额读取及合约交易发送。适用于需与以太坊或 Arbitrum 进行交互的脚本开发场景。
触发场景
用户需要设置 viem 客户端
查询 AAVE 相关代币余额
执行合约读写操作
发送链上交易
安装
npx skills add NeverSight/learn-skills.dev --skill aave-viem-integration -g -y
SKILL.md
Frontmatter
{
"name": "aave-viem-integration",
"license": "MIT",
"metadata": {
"author": "AAVE AI Contributors",
"version": "1.0.0"
},
"description": "Foundational EVM integration for AAVE-related scripts using viem. Use when user asks to read balances, read\/write contracts, send transactions, or set up typed viem clients for Ethereum and Arbitrum."
}
AAVE viem Integration
Provide reusable viem patterns for AAVE skill scripts and custom integrations.
Scope
- Public client and wallet client setup
- Chain-specific RPC selection
- Reading ERC20 balances and allowances
- Simulating and sending contract transactions
- Waiting for receipts and formatting execution output
Quick Start
import { createPublicClient, createWalletClient, http } from 'viem';
import { mainnet } from 'viem/chains';
const publicClient = createPublicClient({
chain: mainnet,
transport: http(process.env.ETHEREUM_RPC_URL),
});
References
references/clients-and-transports.mdreferences/contract-read-write.md
版本历史
- e0220ca 当前 2026-07-05 20:39


