Sign-In with Ethereum
// Sign-in with Ethereum
export async function addNetwork() {
try {
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: `0x75`,
chainName: `Uptick Network`,
nativeCurrency: {
name: 'UptickToken',
symbol: `Uptick`,
decimals: 18,
},
rpcUrls: [`https://json-rpc.uptick.network`],
blockExplorerUrls: [`https://evm-explorer.uptick.network/`],
}],
});
}
catch (error) {
console.error(error);
}
}Last updated

