Skip to content

vela-ventures/quick-wallet-strategy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickWallet Strategy

A wallet strategy for Arweave Wallet Kit that integrates QuickWallet - a headless Arweave browser wallet.

Features

  • Instant account creation - No waiting for Arweave transaction confirmation
  • Automatic account management - Uses existing accounts or generates new ones seamlessly
  • Spontaneous identities - Perfect for dApps that need quick wallet access
  • Local storage persistence - Accounts persist across browser sessions

Installation

npm install @vela-ventures/quick-wallet-strategy

Usage

import { ArweaveWalletKit } from '@arweave-wallet-kit/react'
import { QuickWalletStrategy } from '@vela-ventures/quick-wallet-strategy'

const strategies = [
  new QuickWalletStrategy(),
  // ... other strategies
]

function App() {
  return (
    <ArweaveWalletKit
      config={{
        strategies,
        permissions: ['ACCESS_ADDRESS', 'SIGN_TRANSACTION'],
        ensurePermissions: true,
      }}
    >
      {/* Your app */}
    </ArweaveWalletKit>
  )
}

How it works

QuickWallet automatically handles account creation and management:

  1. First connection: Generates a new anonymous account instantly
  2. Subsequent connections: Uses the existing account from local storage
  3. No user interaction: Seamless wallet experience for your users

Dependencies

  • quick-wallet ^0.6.2 - The underlying headless wallet implementation
  • @arweave-wallet-kit/core - Core wallet kit functionality

About

Quick Wallet strategy for the Arweave Wallet Kit

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors