The top-up payment coin (counter_offer_value - original_offer_value)
The coin type of the counter offer
The domain name
Accepts an offer on a domain the caller owns.
Transfers the SuinsRegistration NFT to the buyer, deducts the service fee, and returns the remaining payment to the domain owner.
The address of the offer maker (buyer)
The coin type of the offer being accepted
The SuinsRegistration NFT to transfer to the buyer
The payment coin (minus service fee) as a TransactionObjectArgument
Buys a listed domain at the fixed listing price.
The payment coin must match the listing price exactly. The domain NFT is transferred to the buyer, and the payment (minus service fee) goes to the listing owner.
The buy parameters
The coin type the listing is priced in
The domain name (e.g. 'example.sui')
The payment coin (must match the listing price exactly)
The SuinsRegistration NFT as a TransactionObjectArgument
Cancels an auction before any bids are placed.
Only the original auction owner can cancel. Returns the SuinsRegistration NFT.
The coin type the auction is denominated in
The domain name to cancel the auction for
The SuinsRegistration NFT as a TransactionObjectArgument
Cancels an active listing and returns the domain NFT to the owner.
Only the original listing owner can cancel a listing.
The cancel parameters
The coin type the listing was created with
The domain name to cancel the listing for
The SuinsRegistration NFT as a TransactionObjectArgument
Cancels an offer and returns the payment coin to the caller.
Only the original offer maker can cancel their offer.
The coin type of the offer
The domain name the offer was placed on
The refunded coin as a TransactionObjectArgument
Creates a timed auction for a SuiNS domain.
The caller must own the SuinsRegistration NFT. The domain must not expire before the auction ends. An optional encrypted reserve price can be set using Seal encryption.
The coin type for the auction (e.g. '0x2::sui::SUI')
OptionalencryptedReservePrice?: number[] | Uint8ArrayOptional encrypted reserve price as a byte array (pre-encrypted using Seal). If not provided, the auction will have no reserve price.
Auction end time as a Unix timestamp in seconds
Minimum bid amount in base units of the coin
Auction start time as a Unix timestamp in seconds
The SuinsRegistration NFT to auction
Creates a fixed-price listing for a SuiNS domain.
The caller must own the SuinsRegistration NFT being listed. The domain must not be expired, and if an expiry is set, the domain must not expire before the listing does.
The listing parameters
The coin type to list in (e.g. '0x2::sui::SUI')
OptionalexpiresAt?: numberOptional expiration timestamp in seconds
The fixed price for the listing (in base units of the coin)
The SuinsRegistration NFT to list
Declines an offer on a domain the caller owns.
Refunds the payment coin to the offer maker.
The address of the offer maker to refund
The coin type of the offer being declined
The SuinsRegistration NFT (read-only reference)
Finalizes an auction after its end time has passed.
If the auction has an encrypted reserve price, derived keys and key server addresses must be provided for on-chain decryption. If the highest bid meets the reserve (or there is no reserve), the domain is transferred to the winner and payment to the owner.
The coin type the auction is denominated in
OptionalderivedKeys?: number[][]Optional derived keys from Seal key servers for decrypting the reserve price. Required only if the auction has an encrypted reserve price.
The domain name to finalize (e.g. 'example.sui')
OptionalkeyServers?: string[]Optional key server addresses corresponding to the derived keys. Required only if the auction has an encrypted reserve price.
Makes a counter offer on an existing offer.
The counter offer value must be higher than the current offer. Only the domain owner can make a counter offer.
The address of the original offer maker
The coin type of the original offer
The counter offer value (must be higher than original offer)
The SuinsRegistration NFT (read-only reference)
Places a bid on an active auction.
The bid must be at least 5% higher than the current highest bid. If the bid is placed within the last 5 minutes, the auction is automatically extended.
The bid payment coin
The coin type the auction is denominated in
The domain name being auctioned (e.g. 'example.sui')
Places an offer on a registered domain.
The domain must exist and not be expired. The caller attaches a payment coin as the offer value. An optional expiration timestamp can be set.
The payment coin for the offer
The coin type for the offer (e.g. '0x2::sui::SUI')
The domain name to make an offer on (e.g. 'example.sui')
OptionalexpiresAt?: numberOptional expiration timestamp in seconds
Builds the seal_approve moveCall used for Seal key derivation.
This is needed when finalizing an auction that has an encrypted reserve
price. The caller builds a transaction containing this moveCall, then
passes the transaction bytes to SealClient.getDerivedKeys() to obtain
the derived keys needed for finalizeAuction.
The encryption ID is constructed as: BCS(start_time as u64) ++ domain_name_bytes,
matching the format in decryption.move::get_encryption_id.
The coin type the auction is denominated in
The domain name being auctioned
The auction start time in seconds (must match the on-chain auction)
Accepts a counter offer by topping up the payment.
The payment coin must equal
counter_offer_value - original_offer_value. Only the original offer maker can accept the counter offer.