Skip to content

Instantly share code, notes, and snippets.

View radoush's full-sized avatar
🌴
Na dovolené

Radoush88 radoush

🌴
Na dovolené
View GitHub Profile
@radoush
radoush / connectweb3wallet.js
Created February 6, 2026 14:24 — forked from dabit3/connectweb3wallet.js
Connecting a web3 wallet
import { ethers } from 'ethers'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
async function getWeb3Modal() {
const web3Modal = new Web3Modal({
network: 'mainnet',
cacheProvider: false,
providerOptions: {
walletconnect: {