pepudomains-sdk
Version:
Simple SDK to resolve .pepu domain names to wallet addresses
47 lines (33 loc) • 815 B
Markdown
Simple SDK to resolve .pepu domain names to wallet addresses.
```bash
npm install pepudomains-sdk
```
```javascript
const { PepuDomains } = require('pepudomains-sdk');
const pepu = new PepuDomains();
const wallet = await pepu.resolve('teck');
console.log(wallet);
```
```javascript
// Resolve a domain
const wallet = await pepu.resolve('teck');
if (wallet) {
console.log('Domain found:', wallet);
} else {
console.log('Domain not found');
}
```
```bash
node example.js
```
- **Contract Address**: `0x7Dd0f22672C9AC0B2a88C0a3C8fac1A517C7f324`
- **Network**: Pepe Unchained Mainnet
- **RPC**: `https://rpc-pepu-v2-mainnet-0.t.conduit.xyz`
MIT