canton-network-docs/SDKsWallet SDKUsing the SDKv0 to v1 migration
Party Namespace
The party namespace provides methods to manage wallet parties on the Canton Network. In v1, the party namespace replaces the stateful party management from v0.
Refer to Preparing and signing a transaction for more information.
The below example demonstrates the full usage of the feature:
External parties
An external party uses an external key pair for signing. You provide the public key, and the SDK generates the topology. You then sign the topology transaction with your private key and execute it on the ledger.
This method returns all parties where the user has
Availability
The party namespace is always available as part of the basic SDK interface. It’s initialized automatically when you create an SDK instance and doesn’t require additional configuration viaextend().
Key changes from v0 to v1
v0 used a stateful approach where you set a party context once withsdk.setPartyId(). All subsequent operations acted on that party.
v1 uses an explicit approach where you pass the party ID to each operation. This enables:
- Thread-safe concurrent operations
- Multi-party transactions within the same application
- Clearer code intent
Party types
Internal partiesFull example: allocate, list, and multi-host parties
See all 134 lines
We recommend always providing a
partyHint when creating a party. Refer to Choosing a party hint for more details.Listing parties
CanActAs, CanReadAs, or CanExecuteAs rights. If the user has admin rights, all local parties are returned.
Offline signing workflow
Migration reference
See also
- v0 to v1 migration overview
- Migration cheat sheet
- Configuration — SDK configuration
- Creating an external party — External party onboarding
- Preparing and signing a transaction — Transaction lifecycle