matthias pfp
matthias
@iammatthias
From a smart contract on Base, how can you look up an ENS onchain for a given address?
3 replies
0 recast
5 reactions

Steve pfp
Steve
@stevedylandev.eth
Like a Basename? I think you could do that through the Resolver on Base. If you're trying to bridge an ENS on mainnet you might need an offchain gateway
1 reply
0 recast
0 reaction

matthias pfp
matthias
@iammatthias
Hoping for both. ENS, with a graceful fallback to Basename, then address. fname might be a better option for this
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
You can definitely make it happen by following some resolver examples, but it would require some offchain API work to bridge Base with Mainnet. That's what we had to do with Orbiter, and it's technically what Base does with Basenames to a point
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
I think you could try doing it all mainnet with a flow like: - Query Mainnet ENS resolver - Query ENS subname on base.eth Something like that
1 reply
0 recast
0 reaction

matthias pfp
matthias
@iammatthias
Might need to go down that road. Hoping to keep it all on Base somehow, this doesn't need a lot of overhead...
0 reply
0 recast
1 reaction