Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bankrbot avatar

Ens Primary Name

  • 14 installs
  • 1.2k repo stars
  • Updated August 1, 2026
  • bankrbot/moltbot-skills

ENS Primary Name is a Claude skill that sets an address's primary ENS name (reverse resolution) on Base and other L2s via the ENS Reverse Registrar.

About

ENS Primary Name sets an address's primary ENS name via the ENS Reverse Registrar on Base and other L2 chains. A developer or agent uses it to configure reverse resolution so an address resolves back to a name.eth, and to optionally set an avatar. It requires the Bankr CLI for signing and Node.js with viem for ENS namehash encoding.

  • Sets primary ENS name (reverse resolution) on Base, Arbitrum, Optimism, and Ethereum
  • Creates a bi-directional name link and verifies it automatically
  • Can set an ENS avatar text record on L1

Ens Primary Name by the numbers

  • 14 all-time installs (skills.sh)
  • Ranked #280 of 479 Web3 & Blockchain skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

ens-primary-name capabilities & compatibility

Requires the Bankr CLI and gas (ETH) on the target chain; no service fee stated.

Capabilities
ens primary name · reverse resolution · ens avatar
Pricing
Bring your own API key
From the docs

What ens-primary-name says it does

Set your primary ENS name on Base and other L2 chains via the ENS Reverse Registrar.
SKILL.md
Encodes `setName(string)` calldata
SKILL.md
npx skills add https://github.com/bankrbot/moltbot-skills --skill ens-primary-name

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14
repo stars1.2k
Last updatedAugust 1, 2026
Repositorybankrbot/moltbot-skills

What it does

Set a primary ENS name (reverse resolution) for an address on Base and other L2s via the ENS Reverse Registrar.

Who is it for?

Agents or wallets that need to make an address resolve to an ENS name across Base, Arbitrum, Optimism, or Ethereum.

Skip if: Registering a new ENS name or configuring forward resolution, which must already exist.

When should I use this skill?

The user wants to set their ENS primary name, configure reverse resolution, or make their address resolve to name.eth.

What you get

A verified primary ENS name so the address resolves to name.eth on the chosen chain.

  • Verified primary ENS name (reverse record) for an address

By the numbers

  • 4 supported chains with Reverse Registrar addresses

Files

SKILL.mdMarkdownGitHub ↗

ENS Primary Name

Set your primary ENS name on Base and other L2 chains via the ENS Reverse Registrar.

A primary name creates a bi-directional link:

  • Forward: name.eth0x1234... (set in ENS resolver)
  • Reverse: 0x1234...name.eth (set via this skill)

Requirements

Required: Bankr CLI

This skill requires the Bankr CLI for transaction signing:

bun install -g @bankr/cli
bankr login

The scripts use bankr prompt to submit transactions like:

Submit this transaction: {"to": "0x...", "data": "0x...", "value": "0", "chainId": 8453}

Required: Node.js

Scripts use Node.js with viem for ENS namehash calculation and ABI encoding.

npm install -g viem

Quick Start

# Set primary name on Base
./scripts/set-primary.sh myname.eth

# Set on specific chain
./scripts/set-primary.sh myname.eth arbitrum

# Verify primary name is set
./scripts/verify-primary.sh 0x1234... base

# Set avatar (L1 only)
./scripts/set-avatar.sh myname.eth https://example.com/avatar.png

Supported Chains

ChainReverse Registrar
Base0x0000000000D8e504002cC26E3Ec46D81971C1664
Arbitrum0x0000000000D8e504002cC26E3Ec46D81971C1664
Optimism0x0000000000D8e504002cC26E3Ec46D81971C1664
Ethereum0x283F227c4Bd38ecE252C4Ae7ECE650B0e913f1f9

Prerequisites

1. Own or control an ENS name - The name must be registered 2. Forward resolution configured - The name must resolve to your address 3. Native tokens for gas - ETH on the target chain

How It Works

1. Checks forward resolution exists (name → address) 2. Warns if chain-specific address is not set 3. Encodes setName(string) calldata 4. Submits transaction to the Reverse Registrar 5. Verifies the primary name is correctly set

Verification

The skill automatically verifies after setting. You can also verify manually:

./scripts/verify-primary.sh 0xYourAddress base

Output:

✅ Reverse record: 0x1234... → myname.eth
✅ Forward resolution: myname.eth → 0x1234...
🎉 PRIMARY NAME VERIFIED: myname.eth

Setting Avatars

# Set avatar (requires L1 transaction + ETH for gas)
./scripts/set-avatar.sh myname.eth https://example.com/avatar.png

Supported avatar formats:

  • HTTPS: https://example.com/image.png
  • IPFS: ipfs://QmHash
  • NFT: eip155:1/erc721:0xbc4ca.../1234

Note: Avatars are text records stored on Ethereum mainnet. The script automatically looks up the resolver for your ENS name (works with both public and custom resolvers).

Troubleshooting

IssueSolution
"Transaction reverted"Ensure the ENS name resolves to your address
"Name not showing"Forward resolution may not be set for that chain's cointype
"Not authorized"You must call from the address the name resolves to
"Bankr CLI not found"Install with bun install -g @bankr/cli && bankr login
"Chain-specific address not set"Set the address for the target chain via app.ens.domains
"Could not find resolver"Ensure the ENS name exists and has a resolver set

Links

  • ENS Docs: https://docs.ens.domains/web/reverse
  • ENS App: https://app.ens.domains
  • Primary Names UI: https://primary.ens.domains
  • Bankr CLI: https://www.npmjs.com/package/@bankr/cli

Related skills

FAQ

Which chains are supported?

Base, Arbitrum, Optimism, and Ethereum mainnet, each with a Reverse Registrar address.

What must already be set up?

You must own the ENS name, have forward resolution configured, and hold native tokens for gas.

Web3 & Blockchainintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.