Ping Name Service (PNS)

Register and manage your .SOL domains using SNS

Register, resolve, and manage .SOL domains using the Ping Name Service. The documentation includes domain name registrations, resolution, and management functions.

  1. Domain Management

    • Register new domains

    • Resolve domains to addresses

    • Get primary domains

    • List registered domains

  2. Domain Operations

    • Custom space allocation

    • Domain resolution

    • Multi-TLD support

    • Primary domain lookup

Copy

const signature = await agent.methods.registerDomain(
  "mydomain",     // Domain name (without .sol)
  1               // Space in KB (optional)
);

Copy

Copy

Copy

Copy

Copy

Copy

Copy

Copy

Copy

Copy

  1. Domain Registration

    • Choose appropriate space

    • Verify domain availability

    • Check USDC balance

    • Plan for renewals

  2. Domain Resolution

    • Handle missing domains

    • Check staleness

    • Implement caching

    • Validate inputs

  3. Domain Management

    • Monitor expiration

    • Update records

    • Backup settings

    • Regular validation

  4. Performance

    • Cache resolutions

    • Batch operations

    • Handle timeouts

    • Monitor errors

  1. Registration

    • Insufficient USDC

    • Name taken

    • Invalid characters

    • Space limits

  2. Resolution

    • Stale records

    • Invalid domains

    • Missing records

    • Network issues

  3. Management

    • Expired domains

    • Update failures

    • Permission issues

    • Sync problems

Copy

Copy

Use Case
Recommended Space

Basic Domain

1KB

With Records

2KB

Full Profile

5KB

Maximum

10KB

  • getBalance: Check USDC balance

  • transfer: Transfer domains

  • createAssociatedTokenAccount: Setup USDC

  • getAllDomainsTLDs: List available TLDs

  1. Registration Cost

    • Based on name length

    • Space allocation fee

    • USDC payment required

    • Renewal considerations

  2. Resolution Process

    • Caching recommended

    • Handle timeouts

    • Validate responses

    • Multiple attempts

  3. Management Tips

    • Regular validation

    • Backup records

    • Monitor expiration

    • Update settings

Last updated