How to send a proposal request to a users walletconnect session using node.js backend…
Jump to turn (9)
- 1How to send a proposal request to a users walletconnect session using node.js ba
- 2will onconnect be called for all users who connect their wallet? or just 1
- 3how does a user connect their wallet to my backend server?
- 4how does walletConnect.on("connect") know that the user that just connected was
- 5Can you tell me an example of a URL that should be encoded in the QR code?
- 6But this url does not contain any data of our backend server
- 7in walletconnect for node.js const provider = new WalletConnectProvider({ infura
- 8what is an example of this rpc for Aurora Blockchain
- 9walletConnect.sendCustomRequest can this be used to send a transaction request t
- User
How to send a proposal request to a users walletconnect session using node.js backend server
- Assistant
const { WalletConnectProvider } = '@ethersproject/providers'; const { ethers } = require('ethers');
// ... (rest of your setup code)
const provider = new WalletConnectProvider({ rpcUrl: 'http://localhost:8545', networkId: 1337, // Replace with your network ID });
// ... (rest of your setup code)
const connectButton = document.getElementById('connect-button');
connectButton.addEventListener('click', async () => { const { provider: walletConnectProvider } = await ethers.getSigners(); const { address, chainId } = await walletConnectProvider.request({ method: 'walletconnect:request', params: [ { chainId: chainId, rpcUrls: ['http://localhost:8545'], request: { id: Date.now(), params: ['0xYourContractAddress', '0xYourABI'], }, }, ], });
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.