Skip to main content

EVM Connect Wallet

Connection Example

import { Web3Kit, ChainType } from "@tokenup/web3kit";

type IConnectRes = string[];

async function connect() {
const web3Kit = new Web3Kit();
const serRes: IConnectRes = await web3Kit.request({
chainType: ChainType.EVM,
methodName: "eth_requestAccounts",
params: [
{
chainId: "0x1", // Specify the chainId of the connection
},
],
});
}

Request Parameters

{
chainType: ChainType.EVM,
methodName: "eth_requestAccounts",
params: [
{
chainId: "0x1", // Specify the chainId of the connection
},
],
};

Return Value

['adc....xyz', '...'], // Authorized user wallet addresses