ArweaveKit Docs
  • ArweaveKit
    • Introduction
  • 🔐Wallets
    • Introduction to Wallets
    • Create Wallet
    • Get Wallet Address
    • Get Wallet Balance
    • Wallet Plugins
  • 💳ARWEAVE WALLET KIT
    • Introduction to Arweave Wallet Kit
    • Setup
    • Connect Button
    • Hooks
    • Customization
  • 🏦Transactions
    • Introduction to Transactions
    • Create Transaction
    • Sign Transaction
    • Post Transaction
    • Get Transaction Status
    • Get Transaction
    • Create and Post Transaction with Othent
    • Transaction Plugins
  • 📄SMART CONTRACTS
    • Introduction to Smart Contracts
    • Create Contract
    • Write Contract
    • Read Contract State
    • View Contract State
    • Write Contract with Othent
    • Read Contract with Othent
    • Smart Contract Plugins
  • ✅AUTH
    • Introduction to Auth
    • Connect
    • Disconnect
    • Get Active Address
    • Get Permissions
    • Get Wallet Names
    • Get All Addresses
    • Get Active Public Key
    • Is Installed
    • Log In with Othent
    • Log Out with Othent
    • Get User Details with Othent
    • Auth Plugins
  • 🔐Encryption
    • Introduction to Encryption
    • Encrypt Data with AES
    • Decrypt Data with AES
    • Encrypt AES Key with RSA
    • Decrypt AES Key with RSA
    • Encryption Plugins
  • 🌐GRAPHQL
    • Introduction to GraphQL
    • Query All Arweave Transactions
    • Query Arweave Data
    • Query Arweave Transactions
    • GraphQL Plugins
  • 🗺️RoadMap
    • Features
  • 📘REFERENCES
    • ArweaveKit in Browser Environments
  • 🛠️SUPPORTING TOOLS
    • Arweave StarterKit
Powered by GitBook
On this page
  • Installing the Package
  • Using the Library
  • Types of functions available
  • Compatibility
  • Guide for understanding the docs
  • Example Application Ideas
  • Happy Building!

Was this helpful?

  1. ArweaveKit

Introduction

What is ArweaveKit

NextIntroduction to Wallets

Last updated 3 months ago

Was this helpful?

ArweaveKit aims to lower the barrier of onboarding and building on Arweave by creating a well documented one-stop library.

Installing the Package

For using any functions from the library, the package must be installed in the application.

npm install arweavekit
# or
yarn add arweavekit 

The latest stable version of ArweaveKit is 1.5.1.

Using the Library

After installation, individual functions from specific function types can be imported as follows:

import { createWallet } from 'arweavekit/wallet';

const wallet = await createWallet({params});

Types of functions available

In this library, the following types of functions are available:

  • Wallet Functions: Functions associated with creating and using wallets. Read more .

  • Transaction Functions: Functions associated with creating and interacting with transactions. Read more .

  • Contract Functions: Functions associated with creating and interacting with contracts. Read more .

  • Auth Functions: Functions associated with authentication. Read more .

  • Encryption Functions: Functions associated with encryption. Read more .

  • GraphQL query functions: Functions to query on-chain data using GraphQL. Read more .

Compatibility

While ArweaveKit continues to support Node.js v16, a few flags must be passed in while running any scripts in order to optimally use some of ArweaveKit's latest features. If using Node.js v16 we recommend using the following format:

node --experimental-fetch --no-warnings file-path

Guide for understanding the docs

Every function has a dedicated page with the following information associated with it:

  • A brief description of the function

  • The basic syntax for function calls

  • Any input parameters for the function

    • The syntax format for input parameters is name: type. Some parameters have the optional keyword which means they are optional. Parameters that do not have this keyword are required and must be passed in for successful function calls.

  • The returned data for function calls

    • The syntax format for returned data is name: type. Data returned can be different different depending on the combination of input parameters used.

Links provided in data type descriptions may themselves link to other data types in cases of complex data objects. The most relevant bits have been explained throughout these docs but for a further understanding feel free to jump in to the rabbit hole.

Example Application Ideas

Here's a list of example ideas for full-stack, end-user-facing applications you could build with arweavekit. These concepts leverage features of Arweave, such as decentralised data storage, pay-once store-forever pricing, transaction support, and smart contract and serverless function capabilities (using SmartWeave).

  • Decentralised Blogging Platform: Users could write and publish blog posts that are stored permanently on Arweave. It could have an interactive frontend for easy post creation, browsing, and reading.

  • Decentralised Social Media: A social media application where users can post text, images, and videos, create their profiles, and follow other users. All user data and interactions can be stored on Arweave.

  • Decentralised Document Collaboration: A collaborative document editing platform that lets users create, edit, and share documents in real-time with other collaborators. It securely stores all document data on Arweave so that multiple copies are accessible and maintained indefinitely.

Happy Building!

ArweaveKit is compatible with both Node.js and Browser environments. Node.js has deprecated for v16 and suggest upgrading applications to v18 and above, as per this .

here
here
here
here
here
here
announcement