Application creates intent
The dApp defines the requested action and its return path.
A framework-agnostic TypeScript package for creating Glyph Wallet requests and handling approval, rejection, callback, and redirect results.
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);The dApp defines the requested action and its return path.
Glyph Connect encodes a typed envelope for Glyph Wallet.
Wallet checks the request boundary and presents the action for review.
Approval signs locally. Rejection returns an explicit result.
Explicit request envelopes. HTTPS origins and constrained callbacks. Typed results for approval and rejection.
Self-custodial Qubic desktop wallet
AvailableCoherent libraries for Qubic applications
In development