You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i can't resolve from my address, my ens domain.
I am using React.
This is my code:
import ENS from '@ensdomains/ensjs'
async getENS(address){
var Web3 = require('web3');
var provider= new Web3.providers.HttpProvider("https://mainnet.infura.io/v3/key");
var ens = new ENS({provider, ensAddress: '0x314159265dd8dbb310642f98f50c066173c1259b' });
console.log(await ens.getName(address));
}
Hello i can't resolve from my address, my ens domain.
I am using React.
This is my code:
The result is:
{name: null}What's the problem?