PartyLayer

Canton wallets / 5N Loop

5N Loop logo

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

TransportNot declared
Release channelstable
Integration@partylayer/adapter-loop
SDK version>=0.1.0
Networksdevnet, mainnet, testnet
CIP-0103Not declared

Install

npm install @partylayer/react @tanstack/react-query

Connect 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

CapabilityCallThrough this adapter
Sign messageuseSignMessage()Yes
Sign transactionuseSignTransaction()Not available
Submit transactionuseSubmitTransaction()Yes
Report transaction statussubmit resultNot available
Switch networkclient.switchNetwork()Not available
Multi-partymulti-party flowsNot 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

updateId is the ledger update id, and is omitted when absentLoopAdapter previously reported the SDK's submission_id under updateId. A submission id identifies the request, not the committed update. It now reads the SDK's own update_id and omits the field entirely when there is none, so a caller can tell "no update id" apart from a substituted one. This was our defect, not the wallet's.

Troubleshooting

These examples cover the adapter in the advanced setup above, @partylayer/adapter-loop.

SymptomCauseWhat 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

Other wallets

Console Wallet · Cantor8 · Bron · Nightly · WalletConnect