glyphdocs
Start

Glyph Connect overview

Build a verified Qubic mainnet connection with the released v2 protocol.

Build the supported connection flow with @glyph-oss/connect@4.0.1, @qubic.org/crypto@1.0.0 for dApp-side verification, Relay v2, and Glyph Wallet v0.16.5.

The released v2 flow

  1. Build a typed request with a nonce and expiry.
  2. Create a glyph-connect-request/2 envelope with an explicit qubic:mainnet network binding. The deep link starts with glyph://v2/request?d= and includes a request_hash.
  3. Prepare and register a Relay v2 session before the user action. Give the wallet its callback URL, keep the read capability in the dApp, and launch synchronously from the user's click or tap.
  4. Accept the result only after verifying the signed glyph-connect-callback-envelope/2 against the request hash, network, dApp origin, expiry, callback binding, deterministic issued_at, and result_hash (sha256:<base64url>).

The starter-dapp repository is the canonical runnable example.

Continue

On this page