Additionally, there is an option from the Wallet side to subscribe for push notifications using a Push Server. This push notification subscription will be registered only when connection request has been approved by the user. This subscription can be customized with varying degrees of privacy. It can either display a generic message, include the name of the peer making the request or even display a localized message. (read Push Notifications sections for more details)
The second peer (Wallet) will read the URI using either a QR Code or a deep link. After reading the URI the peer will immediately receive and decrypt the connection request payload.
The Wallet will then display to the user request details provided by the Dapp. The user will then approve or reject the connection. If rejected, the Dapp will disconnect from the Bridge Server immediately and throw an error message if provided by the Wallet. If approved, the Dapp will receive provided account and chainId from the Wallet.
Once the connection is established, the Dapp will be able to send any JSON-RPC call requests to be handled by the Wallet either to read data from its node or make signing requests for transactions or messages.
Establishing Connection
CodeRequesting Connection
// Example URL
wc:8a5e5bdc-a0e4-4702-ba63-8f1a5655744f@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key=41791102999c339c844880b23950704cc43aa840f3739e365323cda4dfa89e7a
Other query string parameters are all optional.
Multiple protocol is a DeFi protocol based on Ethereum
Multiple protocol is a DeFi protocol based on Ethereum that allows GP to provide AMM liquidity strategies which in turn ensures LP benefit from the yielding products.
Users can participate in Multiple Protocol in the following four ways
Liquidity Provider (LP): Multiple Protocol allows you to deposit your funds into the corresponding fund pool to gain returns. These funds will be allocated to GPs for their liquidity strategy positions.
General Partner(GP):As a GP, you can set up multiple liquidity strategy positions on Multiple Protocol to earn fee, which, of course, is risky. For example, the position may be exposed to the risk of loss-led liquidation, in which, you are no longer entitled to use the platform for fund allocation.
MUL DAO community:DAO community initiated by the on-chain governance core in the early stage of MUL Protocol.
Strategy Regulator: A key role in the process of operating MUL liquidity strategies. Participants are able to become strategy regulators by staking a certain amount of MUL.
Code
The initiator, is the first peer who requests connection (Dapp). Dapp posts an encrypted payload consisting of one-time topic (used for handshake only) and connection request details to the Bridge Server. Then using the WalletConnect Standard URI format (EIP-1328) Dapp assembles together the required parameters to establish the connection: (handshake) topic, bridge (url) and (symmetric) key.
The architecture consists essentially of a websocket server (Bridge) between two peers (Dapp and Wallet) that use the Client.