Skip to content

asimov-modules/asimov-arweave-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ASIMOV Arweave Module

License Package on Crates.io Documentation

ASIMOV module for fetching Arweave blockchain block data.

Features

  • Fetch Arweave blocks by height via ar://mainnet/<height> URLs
  • Raw JSON output (default), newline-delimited JSONL (--output jsonl), or JSON-LD (--output jsonld)
  • Uses the public https://arweave.net gateway — no API key required

Prerequisites

  • Rust 1.85+ (2024 edition) if building from source code

Installation

Installation from Source Code

cargo install --path .

Examples

# Fetch block 1000000 on mainnet (raw JSON)
asimov-arweave-fetcher ar://mainnet/1000000

# Output as JSONL (single-line JSON)
asimov-arweave-fetcher --output jsonl ar://mainnet/1000000

# Output as JSON-LD (semantic/linked data)
asimov-arweave-fetcher --output jsonld ar://mainnet/1000000

# Fetch multiple blocks
asimov-arweave-fetcher ar://mainnet/1000000 ar://mainnet/1000001

Configuration

This module requires no configuration. It connects to the public Arweave gateway at https://arweave.net.

Reference

Installed Binaries

  • asimov-arweave-fetcher

asimov-arweave-fetcher

Fetch Arweave blocks by URL

Usage: asimov-arweave-fetcher [OPTIONS] [URLS]...

Arguments:
  [URLS]...  Arweave block URLs to fetch (e.g. ar://mainnet/1000000)

Options:
  -o, --output <FORMAT>  Output format: json (default), jsonl, jsonld
  -d, --debug            Enable debugging output
      --license          Show license information
  -v, --verbose...       Enable verbose output (may be repeated for more verbosity)
  -V, --version          Print version information
  -h, --help             Print help

URL Scheme

URL Description
ar://mainnet/<height> Fetch block at <height> from Arweave mainnet

Development

git clone https://github.com/asimov-modules/asimov-arweave-module.git
cd asimov-arweave-module
cargo build

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn

About

🚧 ASIMOV module for data import from the Arweave blockchain network.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors