01
dApp
Application creates intent
The dApp defines the requested action and its return path.
Typed deep-link SDK for Glyph Wallet
A framework-agnostic TypeScript package for creating Glyph Wallet requests and handling approval, rejection, callback, and redirect results.
The example follows the published v2.0.0 API and includes a rejection path.
import { createConnectRequest, glyphRequest } from "@glyph-oss/connect";
try {
const result = await glyphRequest(createConnectRequest({
type: "connect",
dapp: { name: "My App", origin: "https://my.app" },
permissions: ["transfer", "sign_message"],
}));
if (result.status === "rejected") {
console.info(result.reason);
}
} catch (error) {
console.error("Glyph Wallet could not be opened", error);
}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.
Ecosystem role
Explicit request envelopes. HTTPS origins and constrained callbacks. Typed results for approval and rejection.