Usage
Parameters
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
Example Implementation
Implementation Details
- Uses mysten/suins for resolve domain’s data
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to read domain Sui Name System
// Register Suins
const result = await agent.getSnsNameRecord("yourname");
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | The name of domain |
// with or without the .sui suffix
"Check for this domain suins customdomain"
"Check for this domain suins customdomain.sui"
// Register domain 1 year
{
"name": "customdomain",
}
import { SuiAgentKit } from "@getnimbus/sui-agent-kit";
async function getSnsNameRecord(agent: SuiAgentKit) {
try {
const result = await agent.getSnsNameRecord("customdomain");
console.log("Domain's data:", result);
} catch (error) {
console.error("Get domain's data failed:", error);
}
}
// Successful response
{
name: 'nimbus.sui',
nftId: '0xcefcd5c8ca143ba86566d5face2fffc1361d24d19deeb94a8576e83319731609',
targetAddress: '0x692853c81afc8f847147c8a8b4368dc894697fc12b929ef3071482d27339815e',
expirationTimestampMs: '1740448978459',
data: {},
avatar: undefined,
contentHash: undefined,
walrusSiteId: undefined,
humanReadableExpirationTimestampMs: '2025-02-25'
}
// Error response
{
null
}
