Skip to content

APTOS Connect

Connection Example

typescript
import { Web3Kit, ChainType } from "@web3jskit/dapp";

interface IConnectRes {
  address: string;
}

async function connect() {
  const web3Kit = new Web3Kit();
  const serRes: IConnectRes = await web3Kit.request({
    chainType: ChainType.APTOS,
    methodName: "connect",
  });
}

Request Parameters

typescript
{
  chainType: ChainType.APTOS,
  methodName: "connect",
};

Return Value

typescript
{
  address: '0x123....2e2', // Authorized user wallet
}