Hello again, thank you for the useful tips.
Right now I’m trying to do this with the API (create a new dApp connection and then approve).
I’m generating a link using the walletconnect javascript tutorial. When I call the APIs I can see in my web3access page section that the connection has been created with hyperliquid, but if I click on this connection I’m redirected toward the hyperliquid testnet and I can see that I’m not connected, as it appear in the allegated images.
This is what I should see on Hyperliquid:
This is my js code used to generate the link:
import { createWeb3Modal, defaultConfig } from ‘@web3modal/ethers5’
// 1. Get projectId at https://cloud.walletconnect.com
const projectId = ‘’
const openConnectModalBtn = document.getElementById(‘open-connect-modal’)
const openNetworkModalBtn = document.getElementById(‘open-network-modal’)
openConnectModalBtn?.addEventListener(‘click’, () => modal.open({ view: ‘Connect’ }))
openNetworkModalBtn?.addEventListener(‘click’, () => modal.open({ view: ‘Networks’ }))
// 2. Set chains
const mainnet = {
chainId: 421614,
name: ‘Arbitrum Sepolia’,
currency: ‘SEP’,
explorerUrl: ‘https://sepolia.arbiscan.io’,
rpcUrl: ‘https://sepolia-rollup.arbitrum.io/rpc’
}
// 3. Create your application’s metadata object
const metadata = {
name: ‘HyperLiquid2’,
description: ‘’,
url:‘https://app.hyperliquid-testnet.xyz’,
icons:‘https://sandbox-static.fireblocks.io/wcs/dappIcon/dc721dfcb9d92c53c7ccca33030d4769b22a62453b09abd8c05b8c3c378ea7f6’
}
// 4. Create Ethers config
const ethersConfig = defaultConfig({
/Required/
metadata,
/Optional/
enableEIP6963: true, // true by default
enableInjected: true, // true by default
enableCoinbase: true, // true by default
rpcUrl: ‘https://sepolia-rollup.arbitrum.io/rpc’, // used for the Coinbase SDK
defaultChainId: 421614, // used for the Coinbase SDK
})
// 5. Create a Web3Modal instance
const modal = createWeb3Modal({
ethersConfig,
chains: [mainnet],
projectId,
enableAnalytics: true, // Optional - defaults to your Cloud configuration
enableOnramp: true // Optional - false as default
})
from this code I’ve intentionally removed the projectId, but it’s present in my code. Thank you kindly for the help