Opera Crypto Wallet Integration Guide (2024)

Opera is one of the most popular browsers in the world, with more than 350 million active users. Opera’s built-in Crypto Wallet helps users access the world of Web3 without the complicated setup of other wallet applications.

By supporting the Opera Crypto Wallet, Dapp developers can gain access to millions of crypto users on Opera platform. To do so, Dapp developers need simply add a few lines of code to set up integration with the Opera Crypto Wallet.

Best Practice

There are two steps in requesting a user connect their Opera Crypto Wallet to your dApp, without the need for SDK installation.

Step 1: Detect whether the user is using Opera

Check the global variable to see if the client is Opera.

let isOperaWallet = false;if(window.ethereum){ isOperaWallet = window.ethereum.isOpera;}if(isOperaWallet){ // add Opera Wallet as the first option in the wallet connection panel.}

Step 2: Prompt the user to connect their wallet

If they’re using the Opera Crypto Wallet, then you can request the user connect the wallet following EIP-1193. Opera Browser will then prompt the Opera Crypto Wallet and ask the user to connect the wallet to the dApp.

if(window.ethereum){ window.ethereum.request({method: 'eth_requestAccounts'})}

Opera Crypto Wallet Connection Button

When adding Opera Crypto Wallet as an option in the wallet connection panel, please use the official Opera Wallet logo.

Opera Crypto Wallet Integration Guide (1)

To download the Opera Crypto Wallet logo, please click here.

Interact with the wallet

The implementation of the Opera Crypto Wallet followsEIP-1193. You can connect the wallet with library implemented EIP-1193, such as web3.js or ether.js.

Download Opera Crypto Browser

You can access the Opera Crypto Wallet by downloading Opera’s Crypto Browser. You can download it here.

To set up the wallet, click the wallet icon on the left sidebar. You can set up a new wallet or restore your existing wallet with your recovery phrase.

Switch network for the user

The wallet also covers implementation on EIP-3326. As a result, you can use wallet_switchEthereumChain to request the user switch networks. The wallet will display a popup allowing users to switch networks in one click.

Add network for the user

The wallet also covers implementation on EIP-3085. As a result, you can use wallet_addEthereumChain to request the user add a new network.

Opera Crypto Wallet Integration Guide (2024)
Top Articles
Latest Posts
Article information

Author: Roderick King

Last Updated:

Views: 6401

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.