Glyph Connect

A framework-agnostic TypeScript package for creating Glyph Wallet requests and handling approval, rejection, callback, and redirect results.

A request you can inspect

The example follows the published v4.0.1 API, creates a hash-bound glyph://v2/request envelope, and binds it explicitly to Qubic mainnet.

import {
  GLYPH_MAINNET,
  createConnectRequest,
  createEnvelope,
  launchGlyphRequest,
} from "@glyph-oss/connect";

const request = createConnectRequest({
  type: "connect",
  dapp: { name: "My App", origin: "https://my.app" },
  permissions: ["transfer", "sign_message"],
});

const envelope = createEnvelope(request, {
  redirect_uri: "https://my.app/__glyph__",
  network: GLYPH_MAINNET,
});

console.info(envelope.request_hash);
launchGlyphRequest(envelope);

Application creates intent

The dApp defines the requested action and its return path.

Connect builds the request

Glyph Connect encodes a typed envelope for Glyph Wallet.

Wallet validates and explains

Wallet checks the request boundary and presents the action for review.

User makes the decision

Approval signs locally. Rejection returns an explicit result.

A typed request moves from application intent to a decision inside Glyph Wallet. Keys never cross into the application.

A working part of the system.

Explicit request envelopes. HTTPS origins and constrained callbacks. Typed results for approval and rejection.

Related products

Glyph Wallet

Self-custodial Qubic desktop wallet

Available

Glyph SDK

Coherent libraries for Qubic applications

In development