Checking data on DA
Stackr posts the batched blocks to the DA layer as configured in the stackr.config.ts.
The DA metadata from the C3A
event can be used to form the DA explorer link and inspect the blob and data posted in it.
Retrieve DA metadata
To retrieve the DA metadata for your block, either you can subscribe to the C3A events by following the guide here or can query blocks using methods in chain object or can directly query actions which comes with their block and batch data.
C3A events have an element vulcanResponse
that contains the daMetadata
. You can retrieve it as follows:
events.subscribe(ConfirmationEvents.C3A, (args) => {
const { vulcanResponse } = args;
const daMetadata = vulcanResponse?.batchInfo?.daMetadata;
});
Creating the Explorer link
Once you get your hands on daMetadata
, it can now be used to form the DA Explorer link depending on the DA Provider and by extracting the respective arguments.
An example of such process can be seen in Comet's implementation.
Below is the process to form the explorer link for each DA provider, given daMetadata
from Block.
Avail
https://avail-turing.subscan.io/extrinsic/${daMetadata.blockHeight}-${daMetadata.extIdx}
Celestia
https://mocha-4.celenium.io/tx/${daMetadata.txHash}
Eigen
https://blobs-holesky.eigenda.xyz/blobs/${daMetadata.requestID}