@lelantos-org/sdk / watch / connectWatch
Function: connectWatch()
ts
function connectWatch(options): Promise<ReadOnlyWalletApi>;Defined in: @lelantos-org/sdk/dist/wallet/watch/connect.d.ts:11
Connect a watch-only wallet from a viewing key.
ts
const watch = await connectWatch({ network: "base", viewingKey: "lelantosfvk1…", rpcUrl });
await watch.sync();Parameters
| Parameter | Type |
|---|---|
options | ConnectWatchOptions |
Returns
Promise<ReadOnlyWalletApi>