@meteorwallet/connect
v0.2.0
Published
Downloads
132
Readme
@meteorwallet/connect
Client library for connecting applications to Meteor Wallet over the Meteor Connect bridge.
Two client flavours are provided over the same bridge:
PartnerBridgeClient— for dApps / partner apps requesting a connection to a wallet, and sending actions to it once paired.WalletBridgeClient— for the wallet side, claiming a pairing and fulfilling those actions.
Both are typed end to end: actions, realm state, and errors keep their types across the network boundary.
Installation
npm install @meteorwallet/connect
# or
bun add @meteorwallet/connectUsage
import { PartnerBridgeClient } from "@meteorwallet/connect";
const client = new PartnerBridgeClient({
backendUrl: "https://mc.meteorwallet.app",
partnerMetadata: {
name: "My App",
origin: `${EPartnerOrigin.web_url}::${window.location.origin}`,
},
storageAdapter: new StorageAdapter({
/* … */
}),
});See the demo applications in the repository for complete partner and wallet integrations.
The package ships both ESM and CommonJS builds with full type declarations for each.
License
MIT
