Packages¶
Introduction¶
A Product developer rarely calls TrUAPI directly. The @parity/product-sdk family of packages is the typed wrapper, and most Products will install one of them per capability they consume. This page maps which package wraps which TrUAPI method group. Each Product SDK page links on to the how-to guides that use it.
Provisional
Package names and version pins remain provisional while the SDK matures. This page documents known packages and boundaries; exact versions and future package splits are outside the current scope.
Package Map¶
Each row links to the Product SDK page for the package that wraps the group. Groups without a dedicated capability package are reached through the host package, the foundation the other packages build on.
| TrUAPI Method Group | SDK Package |
|---|---|
| TrUAPI Calls | @parity/product-sdk (core, used implicitly by every package) |
| Permissions | @parity/product-sdk-host (requestPermission, requestDevicePermission); @parity/product-sdk-signer requests ChainSubmit on connect |
| Local Storage | @parity/product-sdk-local-storage |
| Account Management | @parity/product-sdk-signer and @parity/product-sdk-address |
| Signing | @parity/product-sdk-signer and @parity/product-sdk-tx |
| Chat | @parity/product-sdk-host (getChatManager) |
| Statement Store | @parity/product-sdk-statement-store |
| Preimage | @parity/product-sdk-host (getPreimageManager) |
| Chain Interaction | @parity/product-sdk-chain-client and polkadot-api (PAPI) |
| Payment | @parity/product-sdk-tx and @parity/product-sdk-utils; @parity/product-sdk-host (getPaymentManager) |
| Entropy | @parity/product-sdk-host |
address and utils are supporting packages without their own Product SDK page; their links go to the generated API reference.
The Boundary Between Product Code and Host Code¶
A useful way to read the package map is by where the package executes:
- Pure Product packages: Packages such as
@parity/product-sdk-local-storage,@parity/product-sdk-signer,@parity/product-sdk-chain-client, and@parity/product-sdk-txexecute inside the Product sandbox. They are typed wrappers that build a TrUAPI call and dispatch it through the Host API. Your Product depends on them at compile time. - Product-SDK umbrella:
@parity/product-sdkties them together at the top of a Product and wires up the App / chain / storage surfaces with consistent defaults. - Host implementations of TrUAPI: Host implementations live in the Hosts themselves, not in any Product-side package. A Product does not depend on Host code at compile time; it depends on the Host honoring the TrUAPI contract at run time.
Where to Go Next¶
-
Learn Versioning
How package versions map to TrUAPI protocol versions.
| Created: November 17, 2026