Working with PNS
import PNS, { getPnsAddress } from '@pnsdomains/pnsjs'
const pns = new PNS({ provider, pnsAddress: getPnsAddress('1028') })var ethers = require('ethers');
var provider = new ethers.providers.Web3Provider({
ensAddress: 'TBD'
});
// PNS functionality is provided directly on the core provider object.import (
pns "github.com/pulsedomains/go-pns/v2"
ethereum "github.com/ethereum/go-ethereum"
)
// Can dial up a connection through either IPC or HTTP/HTTPS
client, err := ethereum.Dial("/home/ethereum/.ethereum/geth.ipc")
registry, err := pns.Registry(client)Last updated