Socket
Socket
Sign inDemoInstall

arweavedb

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arweavedb

Read and write data to the Arweave Blockchain Database


Version published
Weekly downloads
5
increased by25%
Maintainers
2
Weekly downloads
 
Created
Source

ArweaveDB

ArweaveDB is used to write and read the arweave blockchain database.

Known Vulnerabilities

Arweave uses an unique way of storing it's data, and this package can be used on servers or any other application that interacts with the blockchain.

ArweaveDB uses fs to write files and fast-glob to find blocks by height or by ID.

Installation

npm install arweavedb --save

Initialisation

import { ArweaveDB } from 'arweavedb';

const arweaveDB = new ArweaveDB(__dirname);

Getting started

And enjoy

// Add a block
await arweaveDB.addBlock(myBlock);

// Add a transaction
await arweaveDB.addTransaction(myTx);

// Get a block by ID
const block = await arweaveDB.getBlockById(blockId);

// Get a block by height
const block = await arweaveDB.getBlockByHeight(height);

Keywords

FAQs

Package last updated on 15 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc