Skip to content

WalletConnect Overview

Want to use the Puzzle Wallet, but don’t want to use our SDKs? You can directly use the wallet functions you want using any of the WalletConnect V2 packages.

WalletConnect methods

Methods are functions originating from a dApp.

export const wc_aleo_methods = [
'decrypt',
'disconnect',
'getSelectedAccount',
'getBalance',
'getRecords',
'requestCreateEvent',
'getEvent',
'getEvents',
'createSharedState',
'importSharedState',
'requestSignature',
];

WalletConnect events

Events are functions originating from the wallet.

export const wc_events = [
'chainChanged',
'accountSelected',
'selectedAccountSynced',
'sharedAccountSynced'
];

WalletConnect chain IDs

Puzzle only supports one chain ID right now. This is subject to change as Aleo gets official WalletConnect support.

export const wc_aleo_chains = ['aleo:1']; // subject to change

WalletConnect project Id

f0aaeffe71b636da453fce042d79d723

WalletConnect Web3Modal Props

export const web3modal_puzzle_props = {
standaloneChains: wc_aleo_chains,
enableExplorer: false,
enableAccountView: true,
enableNetworkView: true,
enableStandaloneMode: true,
mobileWallets: [
{
id: 'puzzle',
name: 'Puzzle Wallet',
links: {
native: 'puzzleapp://',
universal: '',
},
},
],
desktopWallets: [
{
id: 'puzzle',
name: 'Puzzle Wallet',
links: {
native: '',
universal: 'https://walletconnect.puzzle.online/',
},
},
],
walletImages: {
puzzle: 'https://i.imgur.com/p9tHaFC.png',
},
};

WalletConnect Sign Client Props

export const signClient_puzzleProps = {
requiredNamespaces: {
aleo: {
methods: wc_aleo_methods,
chains: wc_aleo_chains,
events: wc_events,
},
},
};