Last updated
Last updated
is an open source protocol for connecting DAPPs to mobile wallets with QR code scanning or deep linking.
There are two common ways to integrate:
is an easy-to-use library to help developers add support for multiple providers (including WalletConnect) in their apps with a simple customizable configuration.
Sample code for configuring WalletConnect with Bitrock Blockchain
Bitrock Wallet extends WalletConnect 1.x with aditional JSON-RPC methods to support multi-chain dApps. Currently, you can get all accounts and sign transactions for Bitrock Blockchain implements signJSON
method in wallet core.
Before you can sign transactions, you have to initiate a connection to a WalletConnect bridge server, and handle all possible states:
code snippet above is copied from https://docs.walletconnect.org/quick-start/dapps/client#initiate-connection, please check out the original link for standard methods.
Once you have walletconnect client
set up, you will be able to get user's accounts:
The result is an array with following structure:
Need more details about Wallet Connect set up for your dApp to connect to Bitrock Wallet smoothly find it