Creates a helper bound to an AftermathApi provider.
Provider containing the configured referral-vault addresses and inspection transport.
Appends a read-only Move call that returns a referrer's rebate balance.
The Move function returns a u64; the result is not fetched until the
transaction is executed or inspected.
Transaction, coin type, and referrer address.
Fully qualified coin type for the rebate balance.
Address whose rebate balance to read.
Transaction to mutate.
A transaction result handle containing the Move u64 value.
Inspects the rebate balance for a referrer and decodes the returned u64.
Coin type and referrer address.
Fully qualified coin type for the rebate balance.
Address whose rebate balance to fetch.
The raw rebate balance as a bigint-backed Balance value.
Inspects the referrer of an address and decodes the returned optional address.
Referee address to query.
Address whose referrer to fetch.
The referrer address, or undefined when the Move option is
empty.
Appends a read-only Move call that checks whether an address has a referrer.
The method name preserves the SDK's historical Refferer spelling.
Transaction and referee address.
Address to check.
Transaction to mutate.
A transaction result handle containing the Move bool value.
Appends a read-only Move call that returns the referrer of an address.
The Move function returns Option<address>. Use an inspection helper or
execute the transaction to read the value.
Transaction and referee address.
Address whose referrer to look up.
Transaction to mutate.
A transaction result handle containing Option<address>.
Appends a Move call that records a referee's referrer.
If the transaction sender already matches referrer, this method leaves
the transaction unchanged. The method also suppresses malformed-address
errors to preserve the historical SDK behavior; validate addresses before
calling it when you need deterministic failure handling.
Transaction and referrer address to record.
Sui address of the referrer.
Transaction to mutate.
The result of tx.moveCall, or undefined when the sender is the
referrer or the input address cannot be encoded.
Appends a Move call that withdraws accrued rebate for a coin type.
Transaction, coin type, and transfer behavior.
Fully qualified coin type whose rebate is withdrawn.
Transaction to mutate.
OptionalwithTransfer?: booleanWhen true, transfers the withdrawn coins to
the transaction sender; when omitted or false, returns the Move result.
The Move call result, which is a transaction result handle.
Builds referral-vault Move calls and evaluates referral-vault inspection results.
This low-level helper requires the referral-vault package and object addresses in the provider configuration. Use it when composing a larger transaction or when the high-level referral facade does not expose the operation you need.