WeaveVM Data Retriever (wvm://
) is a protocol for retrieving data from WeaveVM network. It leverages the WeaveVM DA layer and Arweave's permanent storage to access and retrieve WeaveVM transaction data through both networks.
git clone https://github.com/weaveVM/wvm-data-retriever.git
cd wvm-data-retriever
cargo shuttle run
curl -X GET https://gateway.wvm.dev/calldata/$WVM_TXID
Returns
pub struct HandlerGetCalldata {
pub calldata: String,
pub arweave_block_hash: String,
pub wvm_block_hash: String,
pub war_decoded_calldata: Option<String>, // default to Some("")
pub wvm_data_da: bool,
pub ar_data_archive: bool,
pub da_archive_is_equal_data: bool,
}
curl -X GET https://gateway.wvm.dev/war-calldata/$WVM_TXID
Returns
pub struct HandlerGetCalldata {
pub calldata: String,
pub arweave_block_hash: String,
pub wvm_block_hash: String,
pub war_decoded_calldata: Option<String>, // the decoded JSON representation of `calldata`
pub wvm_data_da: bool,
pub ar_data_archive: bool,
pub da_archive_is_equal_data: bool,
}
The latency includes the time spent fetching data from WeaveVM RPC and the Arweave gateway, as well as the processing time for Brotli decompression, Borsh deserialization, and data validity verification.
This project is licensed under the MIT License