Canton wallets / 5N Loop
5N Loop wallet integration
Loop opens its own QR or popup connection flow. PartyLayer loads the official SDK when the user connects or restores a session. Testnet requires an SDK and Loop adapter with Testnet support.
What the registry declares
| Transport | Not declared |
|---|---|
| Release channel | stable |
| Integration | @partylayer/adapter-loop |
| SDK version | >=0.1.0 |
| Networks | devnet, mainnet, testnet |
| CIP-0103 | Not declared |
Install
npm install @partylayer/react @tanstack/react-queryConnect with the default catalog
Supported wallet SDKs are included. Choose a supported network and channel; no wallet-specific import or registration is required.
import { PartyLayerKit, ConnectButton } from '@partylayer/react';
export default function App() {
return (
<PartyLayerKit network="devnet" appName="My dApp">
<ConnectButton />
</PartyLayerKit>
);
}Advanced: custom provider construction
Only for applications replacing the default catalog.
import { LoopAdapter } from '@partylayer/adapter-loop';
// No configuration required.
const loop = new LoopAdapter();Connection flow
The official SDK opens the Loop connection window. On a return visit PartyLayer tries to restore the existing vendor session. If restoration fails, the user can connect again.
What the transport means for you
There is no install state to render, which changes the shape of your picker: selecting this wallet always opens a flow, and a user with no Loop account discovers that only after the window appears. Budget for a visible cancel path and a retry, because a QR flow that the user abandons is a normal outcome here rather than an error condition.
What this adapter supports
| Capability | Call | Through this adapter |
|---|---|---|
| Sign message | useSignMessage() | Yes |
| Sign transaction | useSignTransaction() | Not available |
| Submit transaction | useSubmitTransaction() | Yes |
| Report transaction status | submit result | Not available |
| Switch network | client.switchNetwork() | Not available |
| Multi-party | multi-party flows | Not available |
Not available, and why
- signTransaction
- The registry entry declares signTransaction: false. LoopAdapter offers submit but no detached sign-only path.
Things that will catch you out
Troubleshooting
These examples cover the adapter in the advanced setup above, @partylayer/adapter-loop.
| Symptom | Cause | What to do |
|---|---|---|
| "Connection timeout, user did not complete QR scan" | The connect flow opened and no scan completed inside the adapter's window. | This is a user outcome, not a fault. Keep the modal open, offer a retry, and do not log it as an error. |
| "Loop Wallet auto-connect timed out, session not restorable" | The restore path ran on a return visit and did not complete in time. | Fall back to a fresh connect. Treat restore as an optimisation that may not land, not as a step that must succeed. |
| "Browser environment required" | A connect or restore call ran where there is no window, typically during server-side rendering. | Guard the call behind a client-side effect. The wallet UI in this repository already does this; a custom picker has to do it too. |
| "Not connected to Loop Wallet" | signMessage, submitTransaction or a ledger read was called before connect resolved. | Gate those calls on session state rather than firing them optimistically after opening the modal. |
Related
- Quick Start builds a working app around this adapter.
- Wallets and adapters covers registration, discovery and custom adapters.
- CIP-0103 provider is the standard behind the transports above.
- 5N Loop homepage for anything about the wallet itself. This page describes the PartyLayer adapter, not the wallet's own SDK.
Other wallets
Console Wallet · Cantor8 · Bron · Nightly · WalletConnect