Deployed ids of the shared account package
Owner address and coin type
A function that takes a Transaction object
A function that takes a Transaction object
Coin to deposit and its coin type
A function that takes a Transaction object
First-time funding in ONE PTB: create the sender's wrapper, deposit
coin through the fresh handle, then share LAST (once shared, by-value use of the
handle is over). This cannot be split into createAccount + depositFunds: an object
input can only address an object that pre-exists the PTB, so a wrapper created inside
it is reachable only through new's result handle.
Wrapper id, coin to deposit, and its coin type
A function that takes a Transaction object
A function that takes a Transaction object
Wrapper id
A function that takes a Transaction object and returns the Account
Wrapper id, raw amount, and coin type
A function that takes a Transaction object and returns the Coin<T>
AccountContract — the reusable on-chain account primitive (
packages/account).An owner has one canonical
AccountWrapper, a derived object of the account registry, so its id is computable off-chain (no read). The wrapper holds anAccountwhose custody balances apps deposit into and withdraw from; app-specific data hangs off it under an app-keyed slot. Authority is a hot-potatoAuthminted from the tx sender and consumed by the very next account-loading call.