To Share and +4 nLEARNs

import Tabs from ‘@theme/Tabs’;
import TabItem from ‘@theme/TabItem’;

Shard structure


IndexerShard struct is ephemeral structure, there is no such entity in nearcore. We’ve introduces it as a container in near-indexer-primitives. This container includes:


“`rust links=1
pub struct IndexerShard {
pub shard_id: types::ShardId,
pub chunk: Option,
pub receipt_execution_outcomes: Vec,
pub state_changes: views::StateChangesView,

“`ts links=1
export interface Shard {
shard_id: number;
chunk?: Chunk;
receiptExecutionOutcomes: ExecutionOutcomeWithReceipt[];
stateChanges: StateChange[];

Generate comment with AI 2 nL
Scroll to Top
Report a bug👀