Docs
Hope Wallet SDK
npm @hopenetwork/wallet — connect, message QR, Node PQ sign+broadcast.
npm install @hopenetwork/wallet # latest: 0.3.5Package: @hopenetwork/wallet on npm. Source of truth for install copy is the package README; this site adds Hope-specific tools and hosted-node context.
New here? Start with the quickstart — Connect → Message → Sessions → Node in one pass.
| Path | Import | Keys | Result |
|---|---|---|---|
| Connect | @hopenetwork/wallet | none | hope1… + pubkey |
| Message | same + /react | none | wallet signs & broadcasts |
| Node | @hopenetwork/wallet/node | 24-word mnemonic | PQ signature + txhash |
Use the SDK in three layers:
connect()orVerifyWalletPanel: verify a wallet address and keep the key in Hope Wallet.message()orMessagePanel: ask Hope Wallet to sign and broadcast one or more messages.signAndBroadcast()from@hopenetwork/wallet/node: server-side automation only.
QR images are drawn locally (qrcode). Never send payloads to a public QR CDN. Never import ./node in a webpage — it throws if window.document exists.
Peers: react optional. @hope/pq and @hope/tx optional, required for ./node, not on npm yet.
Important behavior:
-
In Hope Wallet's in-app browser, connect and sign use a native approval overlay instead of the camera.
-
On desktop or normal mobile web, the SDK shows a QR plus Open Hope Wallet.
-
Camera-scan signing does not return a tx hash directly to the page; poll Explorer / LCD / RPC yourself after approval.
-
Sign QR payloads are capped at about 2800 characters and are rendered larger for reliable phone-camera scans.
