Beacon
  • Get Started
  • AO-Sync
    • Standalone integration
    • Arweave-Wallet-Kit
Powered by GitBook
On this page
  • Arweave-Wallet-Kit Setup
  • Adding the AO-Sync strategy
  • Install package
  • Providing AO-Sync to Wallet Kit
  • Usage
  1. AO-Sync

Arweave-Wallet-Kit

A step-by-step guide for implementing Beacon Wallet to your AO application using Arweave-Wallet-Kit.

Arweave-Wallet-Kit Setup

npm install @arweave-wallet-kit/core @arweave-wallet-kit/react @arweave-wallet-kit/styles

the implement Arweave-Wallet-Kit as outlined below.

import { ArweaveWalletKit } from "@arweave-wallet-kit/react";

function App () {
    return (
      <ArweaveWalletKit
          config={{
            permissions: [
              "ACCESS_ADDRESS",
              "ACCESS_PUBLIC_KEY",
              "SIGN_TRANSACTION",
              "DISPATCH",
            ],
            ensurePermissions: true,
            strategies: [
            //... other strategies
            ],
          }}
        >
          <YourApp />
      </ArweaveWalletKit>
    )
}

Adding the AO-Sync strategy

Install package

npm install @vela-ventures/aosync-strategy

Providing AO-Sync to Wallet Kit

import AoSyncStrategy from "@vela-ventures/aosync-strategy";

strategies: [
    new AoSyncStrategy()
    //... other strategies
],

Usage

Connect with Beacon option will now be displayed as an option in the Arweave-Wallet-Kit modal.

PreviousStandalone integration

Last updated 2 months ago