https://github.com/0xintuition/rust-ens-example
Simple Rust CLI app to retrieve ENS information
https://github.com/0xintuition/rust-ens-example
Last synced: 12 months ago
JSON representation
Simple Rust CLI app to retrieve ENS information
- Host: GitHub
- URL: https://github.com/0xintuition/rust-ens-example
- Owner: 0xIntuition
- License: mit
- Created: 2024-12-27T15:15:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T15:19:54.000Z (over 1 year ago)
- Last Synced: 2024-12-27T16:24:36.113Z (over 1 year ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This is a CLI app to get the ENS name and avatar for an address
Before running the app, you need to export the following environment variables:
## Export the RPC url
```bash
export RPC_URL_MAINNET=https://your-rpc-url.com
```
## Export the ENS contract address
```bash
export ENS_CONTRACT_ADDRESS=0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
```
## Running the app
```bash
RUST_LOG=info cargo run -- --address 0x0000000000000000000000000000000000000000
```