Creates a SuiFrens facade without making a request.
Optionalconfig: CallerConfig
Optional network, API host, endpoint, or access-token configuration.
Optionalapi: AftermathApi
Optional AftermathApi required by transaction builders.
Optional ReadonlyapiOptional AftermathApi required by transaction builders.
The mutable configuration used for subsequent requests.
Static ReadonlyconstantsFixed SuiFrens coin, protocol-fee, and mint-fee values. Balances are in MIST.
Coin type used to pay SuiFrens mixing fees.
Protocol fees and the staked-parent fee percentage.
Minimum extra fee per staked parent: 0.25 SUI, or 250_000_000 MIST.
Mint protocol fee: 0.25 SUI, or 250_000_000 MIST.
Mix fee when both parents are owned: 0.25 SUI, or 250_000_000 MIST.
Fraction of a staked parent's mixFee added to the internal fee.
SuiFren-specific fee values.
SuiFren mint fee: 8 SUI, or 8_000_000_000 MIST.
Fetches a paginated page of staked SuiFrens filtered by attributes.
attributes is serialized into the endpoint query string. cursor and
limit are passed as dynamic-field pagination inputs, and nextCursor is
null when the source has no later page. sortBy is serialized as the
sort query parameter.
Attribute filters, optional sort, cursor, and page limit.
Staked wrappers and the endpoint's nullable next cursor.
Fetches the configured CapyLabs application object.
Current CapyLabs application values.
Fetches paginated fee-harvest events.
The cursor and limit use EventsInputs; the returned nextCursor is null
when no later event page exists.
Event cursor and page limit.
Harvest events with a nullable cursor.
Builds an unsigned transaction that harvests fees from staked positions.
The returned transaction sets walletAddress as sender and transfers the
harvested coin to that address after processing every position.
Non-empty staked-position ID list and wallet address.
An unsigned Sui Transaction.
Fetches paginated SuiFren mix events.
Event cursor and page limit.
Mix events with a nullable cursor.
Builds an unsigned mix transaction for two SuiFrens.
The low-level builder selects the Move branch from the two optional parent
mixFee values, adds baseFee to the calculated internal fee, selects the
required SUI coin, and sets walletAddress as sender. The caller must sign
and execute the returned transaction.
Parent IDs and optional staked fees, base fee, SuiFren type, wallet, and sponsorship flag.
An unsigned Sui Transaction.
Fetches accessories owned by a wallet.
The wallet address whose accessory objects are listed.
Owned accessory objects.
Fetches staked SuiFrens owned by a wallet.
The wallet address whose owned positions are listed.
Staked wrappers with isOwned: true.
Fetches SuiFrens owned by a wallet.
The wallet address whose owned objects are listed.
Owned wrappers with isOwned: true.
Fetches staked SuiFrens by their metadata object IDs.
Staked SuiFren metadata object IDs.
Staked wrappers without owned-position data.
Fetches paginated SuiFren stake events.
Event cursor and page limit.
Stake events with a nullable cursor.
Fetches aggregate SuiFrens statistics.
The response includes vault totals and mix-event totals calculated over the previous 24 hours.
Current totals, 24-hour fee volume, and 24-hour mix count.
Fetches one SuiFren by object ID.
The SuiFren object ID.
The first matching SuiFren wrapper, or undefined when the API returns no object.
Fetches SuiFrens by object IDs and wraps the results as non-owned objects.
On-chain SuiFren object IDs.
The returned SuiFren wrappers in API response order.
Fetches paginated SuiFren unstake events.
Event cursor and page limit.
Unstake events with a nullable cursor.
StaticapiReturns the canonical Aftermath API host for a Sui network.
To target a custom or local host, pass baseUrl in CallerConfig to the
constructor instead.
The Sui network whose host to return.
The network's HTTPS or local HTTP API host.
StaticcalcCalculates the internal mix fee for two parent SuiFrens.
An undefined parent fee represents an owned, non-staked parent. When both
fees are undefined, the method returns the fixed mixOwned fee. For each
defined staked fee, it adds the greater of minMixStaked and 10% of that
fee. The result excludes baseFee from ApiMixSuiFrensBody.
Optional staked-parent fees in the payment coin's smallest unit.
The internal fee in MIST as a bigint.
StaticdefaultReturns the canonical Sui fullnode URL for a network.
The network whose fullnode URL to return. undefined
defaults to mainnet.
The network's fullnode URL.
StaticmixReturns the staked mix fee from a wrapper.
Plain SuiFrens and undefined return undefined.
Wrapper to inspect, or undefined.
The staked fee in the payment coin's smallest unit, or undefined.
StaticsuiUnwraps a SuiFren from either a plain or staked wrapper.
Wrapper to unwrap, or undefined.
The plain SuiFren wrapper, or undefined.
StaticsuiReturns the underlying SuiFren object ID from either wrapper type.
Wrapper to inspect, or undefined.
The SuiFren object ID, or undefined.
Provides high-level SuiFrens reads, event queries, fee calculations, and unsigned transaction builders.
Read and event methods use the configured Aftermath API host. Transaction methods require the optional
AftermathApiprovider and return unsignedTransactionobjects for the caller's wallet to sign and execute.