Use with WalletConnect
Auro Mobile supports WalletConnect, allowing seamless integration of zkApp with Auro Mobile with QR code scanning or deep linking.
Step
const client = await SignClient.init({
projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECY_ID,
metadata: {
name: "Auro Wallet Demo",
description: "A Mina Protocol dApp with WalletConnect",
url: window.location.origin,
icons: ["https://www.aurowallet.com/imgs/auro_icon.png"],
},
logger: "warn",
});const connectParams = {
requiredNamespaces: {
mina: {
chains: ["mina:mainnet", "mina:devnet", "zeko:testnet"], // Chains currently supported by the zkApp, requiring Auro Wallet support.
methods: [
// The current zkApp requires the following methods, consistent with other methods supported by Auro Wallet.
// The supported methods are listed below:
// List only the required methods:
"mina_sendPayment",
"mina_sendStakeDelegation",
"mina_sendTransaction",
"mina_signMessage",
"mina_sign_JsonMessage",
"mina_signFields",
"mina_createNullifier",
"mina_verifyMessage",
"mina_verify_JsonMessage",
"mina_verifyFields",
"wallet_info",
],
events: ["accountsChanged", "chainChanged"],
},
},
};Reference Links
Last updated