Skip to content

Wallet Adapter Plugin for SDK Wallet Builders

A wallet adapter plugin allows dapps to use your wallet. With the AIP-62 Wallet standard, dapps can simply update their version of aptos-wallet-adapter to connect to newly added Wallet plugins.

Implementing a wallet plugin for an SDK wallet which can be imported via npm has three main steps:

  1. Implement a wallet adapter plugin for your SDK wallet.
  2. Publish your plugin on npm.
  3. Update the aptos-wallet-adapter package to let dapps know about your wallet.

You can use the wallet-standard repo’s example to implement an AIP-62 compatible wallet adapter plugin that dapps can automatically recognize.

  1. Create a new typescript repository.

  2. Copy the into that new repo.

  3. Follow the instructions in that example to make it use your wallet to execute the AIP-62 functions.

  1. Clone the repository.

  2. Navigate to in the example dapp.

  3. Replace with your implementation of the AIP-62 standard.

    1. You will have to update the import in aptos-wallet-adapter/apps/nextjs-example/src/app/page.tsx to use your Wallet instead of MyWallet.
    2. For local testing purposes, you can leave the registerWallet code, but SDK wallets do not need that once they have been added to the aptos-wallet-standard core package.
  4. Run a local version of the dapp by following the instructions in the .

  5. Click “Connect a Wallet”

    You should see your wallet on the list of connections.

  6. Connect to your wallet.

    1. You can then use the demo dapp features to verify your other wallet features work as expected.
    2. This simulates how a real dapp will interact with your wallet.

In order for dapp users who are not already using your wallet to get the option to create an account with your wallet, you need to update wallet-adapter-core with your browser extension’s download link.

  1. Fork the monorepo. ()

  2. Open your fork in a local editor such as VSCode.

  3. Create a new branch for your changes.

    Terminal window
    git checkout -b your-wallet
  4. Navigate to .

  5. Import your SDK wallet npm package.

    Terminal window
    pnpm i @yourpackage
  6. Import your wallet in .

    For example with AptosConnect:

    import { AptosConnectWallet } from "@aptos-connect/wallet-adapter-plugin";
  7. Add code to push an instance of your wallet to sdkWallets inside getSDKWallets (in sdkWallets.ts).

    sdkWallets.push(new YourWallet(dappConfig));
  8. In type.ts, update the type AvailableWallets to include your wallet’s name.

    export type AvailableWallets = "Nightly" | "Petra" | "T wallet" | "Your Wallet's Name";
  9. Update the at the top-level of the aptos-wallet-adapter to include your wallet in the list of AIP-62 compatible wallets.

  10. Commit and push your changes to your fork.

  11. Follow to open a pull request for the repo.