Comment on page
🕹
BNS SDK
Base Name Service core sdk
npm install @basename/core
import { BNS } from '@basename/core';
// Create an instance of BNS
const bns = new BNS({
rpcEndpoint: 'https://mainnet.base.org'
});
const address = await bns.getAddress('hello.base');
const name = await bns.getName('0x4fb3f133951bF1B2d52fF6CEab2c703fbB6E98cC');
Last modified 28d ago