From 931eab5ffd882d8a715dbf1766bf58d0dd80fc7f Mon Sep 17 00:00:00 2001 From: Jadonamite Date: Mon, 29 Dec 2025 02:28:48 +0100 Subject: [PATCH] Add CLI Resolution Example to README Added CLI resolution example for resolving a Basename to an address using Foundry. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 2958e83..8ec7926 100644 --- a/README.md +++ b/README.md @@ -146,3 +146,15 @@ $ forge --help $ anvil --help $ cast --help ``` +### CLI Resolution Example + +You can resolve a Basename directly from the CLI using [Foundry](https://getfoundry.sh/). + +**Resolve a Name to an Address (Base Mainnet):** + +```bash +# Query the L2 Resolver for 'jesse.base.eth' +cast call 0xC6d566A56A1aFf6508b41f6c90ff131615583BCD \ + "addr(bytes32)(address)" \ + $(cast namehash "jesse.base.eth") \ + --rpc-url [https://mainnet.base.org](https://mainnet.base.org)