grimoire-uniswap
Original:🇺🇸 English
Translated
Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.
5installs
Sourcefranalgaba/grimoire
Added on
NPX Install
npx skill4agent add franalgaba/grimoire grimoire-uniswapTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Grimoire Uniswap Skill
Use the Grimoire CLI to read public Uniswap adapter data.
Preferred:
grimoire venue uniswap ...
If you installed directly, you can also use .
@grimoirelabs/venuesgrimoire-uniswapWhen to use
- Fetch Uniswap router metadata, tokens, or pools for quick VM prototyping.
- Produce snapshot blocks with
paramsfor VM runs.--format spell
Prerequisites
- Global CLI:
npm i -g @grimoirelabs/cli - No install:
npx -y @grimoirelabs/cli venue uniswap ...
VM snapshot usage
Use to emit a VM-ready block you can paste into a spell.
--format spellparams:Commands
grimoire venue uniswap info [--format <json|table>]grimoire venue uniswap routers [--chain <id>] [--format <json|table>]grimoire venue uniswap tokens [--chain <id>] [--symbol <sym>] [--address <addr>] [--source <url>] [--format <json|table|spell>]grimoire venue uniswap pools --chain <id> --token0 <address|symbol> --token1 <address|symbol> [--fee <bps>] [--limit <n>] [--source <url>] [--format <json|table|spell>] [--endpoint <url>] [--graph-key <key>] [--subgraph-id <id>] [--rpc-url <url>] [--factory <address>]
If you provide (or ) and omit /, pools uses onchain factory lookups instead of The Graph.
--rpc-urlRPC_URL--endpoint--graph-keyExamples
bash
grimoire venue uniswap info --format table
grimoire venue uniswap routers
grimoire venue uniswap routers --chain 1
grimoire venue uniswap tokens --chain 1 --symbol USDC --format spell
grimoire venue uniswap pools --chain 1 --token0 USDC --token1 WETH --fee 3000 --format spell
grimoire venue uniswap pools --chain 8453 --token0 USDC --token1 WETH --fee 500 --rpc-url $RPC_URL --format table
grimoire venue uniswap pools --chain 8453 --token0 USDC --token1 WETH --fee 500 --graph-key $GRAPH_API_KEY --subgraph-id <id> --format tableSupported Adapters
| Adapter | Router | Approval Flow |
|---|---|---|
| SwapRouter02 | Standard ERC20 approve |
| Universal Router | Permit2 |
Notes
- CLI currently exposes V3 metadata. V4 adapter is available programmatically via .
createUniswapV4Adapter() - Outputs JSON plus a human-readable table.
- Only metadata is exposed (no on-chain quote endpoints).