near-api-js - v7.0.4
    Preparing search index...

    Type Alias ShardLayoutV1

    type ShardLayoutV1 = {
        boundary_accounts: AccountId[];
        shards_split_map?: ShardId[][] | null;
        to_parent_shard_map?: ShardId[] | null;
        version: number;
    }
    Index

    Properties

    boundary_accounts: AccountId[]

    The boundary accounts are the accounts on boundaries between shards. Each shard contains a range of accounts from one boundary account to another - or the smallest or largest account possible. The total number of shards is equal to the number of boundary accounts plus 1.

    shards_split_map?: ShardId[][] | null

    Maps shards from the last shard layout to shards that it splits to in this shard layout, Useful for constructing states for the shards. None for the genesis shard layout

    to_parent_shard_map?: ShardId[] | null

    Maps shard in this shard layout to their parent shard Since shard_ids always range from 0 to num_shards - 1, we use vec instead of a hashmap

    version: number

    Version of the shard layout, this is useful for uniquely identify the shard layout