Hope
Hope Wallet SDK

Docs

Hope Wallet SDK

npm @hopenetwork/wallet — connect, message QR, Node PQ sign+broadcast.

npm

npm install @hopenetwork/wallet   # latest: 0.3.5

Package: @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.

PathImportKeysResult
Connect@hopenetwork/walletnonehope1… + pubkey
Messagesame + /reactnonewallet signs & broadcasts
Node@hopenetwork/wallet/node24-word mnemonicPQ signature + txhash

Use the SDK in three layers:

  • connect() or VerifyWalletPanel: verify a wallet address and keep the key in Hope Wallet.
  • message() or MessagePanel: 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.

  • Start here (quickstart)

  • Connect

  • Message

  • Session API

  • Node signing

  • Wallet lab