Skip to main content
The builders return a @mysten/sui Transaction you sign and submit yourself (with an Executor, dapp-kit, or guardedSubmit). AltheiaSui wraps them; reach for the builders when you want to inspect, dry-run, or compose a PTB before submitting. All agent-action builders take a SuiRefs (from agentRefs).

Agent actions

LimitParams

Owner lifecycle

Signed with the owner key; refs must carry ownerCap. buildKillDrain drains the held coin types. Pass coinTypes from vaultBalances to drain exactly what the vault holds — draining a type with no balance aborts.

Provisioning

provisionAgentMulti(exec, params) composes the whole agent in one owner signature: vault, deposit, policy, asset cap, value-guard, agent cap, and an agent gas top-up. It returns { vault, ownerCap, policy, cap }. The dashboard does this for you; the builder is for programmatic provisioning.

SuiPolicyConfig

SUI_ACTIONS

Chain reads

Read the live policy, vault balances, and the audit log straight from chain.