TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/availproject/avail/llms.txt
Use this file to discover all available pages before exploring further.
kate_queryRows method retrieves complete rows from the Kate commitment data availability matrix for a specified block.
Method Signature
Parameters
Array of row indices to query from the data matrix.Type:
BoundedVec<u32, MaxRows> where MaxRows = 64Maximum: 64 rows per requestExample: [0, 1, 5] to query rows 0, 1, and 5Block hash at which to query the rows. If not provided, uses the best (latest finalized) block.Format: 32-byte hexadecimal hash prefixed with
0xExample: "0x1234...abcd"Returns
Array of rows, where each row is a vector of 256-bit scalars representing the data cells.Type Definition:Each
GRow contains the complete data for one row of the matrix, with each element representing a cell in that row.Example Request
Example Response
Query Without Block Hash
If you don’t specify a block hash, the method queries the latest finalized block:Error Responses
Block Not Finalized
If the requested block is not yet finalized:Empty Commitments
If the block has no data commitments (e.g., contains only system extrinsics):Invalid Block Number
If the block hash doesn’t exist:Missing Block
If the block is not available:Too Many Rows
If requesting more than 64 rows:Implementation Details
Source Code Reference
From/rpc/kate-rpc/src/lib.rs:205-224:
Validation Steps
- Block Finalization: Ensures the requested block is finalized
- Commitment Check: Verifies the block has non-empty data commitments
- Row Retrieval: Fetches the requested rows from the Kate API
- Metrics: Records query performance metrics (if enabled)
Use Cases
Data Availability Sampling
Validators can sample entire rows to verify data availability:Block Reconstruction
Light clients can reconstruct portions of a block:Row Verification
Verify specific rows against commitments:Related Methods
- kate_queryProof - Query individual cell proofs
- kate_queryMultiProof - Query optimized multi-proofs
- kate_blockLength - Get block dimensions