Sns

class Sns(val config: SuiConfig) : Sns

The concrete implementation of the Sns interface.

This class provides methods for interacting with the Sui Name Service (SNS).

Parameters

config

The SuiConfig object specifying the RPC endpoint and connection settings.

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun resolveNameServiceAddress(domain: String): Result<ResolveNameServiceAddressQuery.Data?, SuiError>

Resolves a .sui domain name to its corresponding Sui address.

Link copied to clipboard
open suspend override fun resolveNameServiceNames(address: AccountAddress, limit: Int?, cursor: String?): Result<ResolveNameServiceNamesQuery.Data?, SuiError>

Performs a reverse lookup to find all .sui domain names associated with a given address.