Browser-first Wallet ABI SDK for frontend apps integrating with the
lwk_simplicity Wallet ABI over WalletConnect.
WalletAbiClientfor the 3 supported Wallet ABI RPC methodsprotocolhelpers for Wallet ABI JSON-RPC envelopesschematypes aligned to the Rust wire contractbuildersfor request constructionhelpersfor lazylwk_wasmbrowser helperswalletbridge types for wallet/provider implementationswalletconnecthelpers for namespace, chain, and requester wiringvendorfor directlwk_wasmre-exports when low-level access is needed
import {
WalletAbiClient,
createWalletConnectRequester,
walletAbiNetworkToWalletConnectChain,
} from "wallet-abi-sdk-alpha";
const requester = createWalletConnectRequester({
chainId: walletAbiNetworkToWalletConnectChain("testnet-liquid"),
client: {
async request({ chainId, topic, request }) {
return await universalProvider.request({
chainId,
topic,
request,
});
},
},
});
const client = new WalletAbiClient({
requester,
});
await client.connect();
const receiveAddress = await client.getSignerReceiveAddress();
const pubkey = await client.getRawSigningXOnlyPubkey();