An open API service indexing awesome lists of open source software.

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

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
```