@partylayer/registry-client
v0.2.5
Published
Wallet registry client for PartyLayer
Readme
@partylayer/registry-client
Wallet registry client for PartyLayer
Overview
@partylayer/registry-client fetches and validates the Canton Network wallet registry. It provides wallet metadata (names, icons, install URLs) with integrity verification and caching.
Features
- Signed Registry: Verifies registry signature to prevent tampering
- Automatic Caching: Reduces network requests with configurable TTL
- Schema Validation: Ensures registry entries match expected format
- Stale Fallback: Uses cached data when network is unavailable
Installation
npm install @partylayer/registry-clientNote: Most dApp developers should use
@partylayer/sdkinstead, which includes the registry client automatically.
Usage
import { RegistryClient } from '@partylayer/registry-client';
const registry = new RegistryClient({
url: 'https://registry.partylayer.xyz/v1/wallets.json',
});
const wallets = await registry.getWallets();
// [{ id: 'console', name: 'Console Wallet', icon: '...', ... }, ...]Links
License
MIT
