Abstraction wallet SDK allow developers connect their Dapps to Abstraction Wallet via EIP-6963
# yarn
yarn add @abstraction-hq/wallet-skd
# npm
npm install @abstraction-hq/wallet-sdk
- Initialize Wallet
import { initAbstractionWallet } from "@abstraction-hq/wallet-sdk"
initAbstractionWallet()
- Create provider
import { createAbstractionProvider } from "@abstraction-hq/wallet-sdk"
const provider = createAbstractionProvider()
2 Use provider
const addresses = provider.request({
method: 'eth_requestAccounts',
});