Installation

Installation guide for our application.

Setting up rimosafe wallet plugin is straightforward, with options to clone the repository or use the convenient npx command.

Rimosafe plugin for Aptos Wallet Adapter

A Rimosafe wallet plugin to be used with the Aptos Wallet Adapter.

Support standard functions:

connect
disconnect
connected
account
network
signAndSubmitTransaction

1

Step 1: Install Dependencies

Begin by install the @aptos-labs/wallet-adapter-react & rimosafe-plugin-wallet-adapter:

pnpm i @aptos-labs/wallet-adapter-react
pnpm i rimosafe-plugin-wallet-adapter

using npm

npm i @aptos-labs/wallet-adapter-react
npm i rimosafe-plugin-wallet-adapter
2

Step 2: Import dependencies

After installing, On the App.jsx file, Import the AptosWalletAdapterProvider and rimosafe wallets.

import { AptosWalletAdapterProvider } from "@aptos-labs/wallet-adapter-react";
import { RimoWallet } from "rimosafe-plugin-wallet-adapter";
3

Step 3: Rimosafe plugin integration

Wrap your app with the Provider, pass it the relevant props.

const wallets = [new RimoWallet()];

<AptosWalletAdapterProvider
  plugins={wallets}
  autoConnect={true}
  optInWallets={["Petra"]}
  dappConfig={{ network: network.MAINNET }}
  onError={(error) => {
    console.log("error", error);
  }}
>
  <App />
</AptosWalletAdapterProvider>