Skip to content

weaveVM/wvm-blobscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

wvm-blobscan is a data bridge built to archive Ethereum's blob data on Load Network. It grabs blocks containing eip-4844 transactions from Blobscan and archive them permanently on Load Network.

Prerequisites & Dependencies

While the core functionality of this ETL codebase can run without web2 component dependencies, this node implementation uses planetscale for cloud indexing and shuttle.dev for backend hosting. Check .env.example to set up your environment variables.

blobscan_pk="" // Load Blobscan archiver PK

DATABASE_HOST="" // planetscale
DATABASE_USERNAME="" // planetscale
DATABASE_PASSWORD="" // planetscale

Build & Run

git clone https://github.com/weaveVM/wvm-blobscan.git

cd wvm-blobscan

shuttle run

Workflow

graph TD
    A[Ethereum Block]
    B[Fetch Block Object from Blobscan API]
    C[Archive on WeaveVM]
    D[Index on PlanetScale]

    A --> B
    B --> C
    C --> D
    C -- Archive TxId --> D
Loading

Server Methods

Retrieve blob data and the associated archive txid by VersionedHash

curl -X GET https://blobscan.load.rs/v1/blob/$BLOB_VERSIONED_HASH

Returns the res in the format as in below:

pub struct PsGetBlockByVersionedHash {
    pub ethereum_block_number: u64,
    pub wvm_archive_txid: String,
    pub versioned_hash: String,
    pub blob_data: String,
}

Retrieve Archiver stats

curl -X GET https://blobscan.load.rs/v1/stats

License

This project is licensed under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages