Skip to content

ParasShared


Storage functions


ActiveValidatorIndices

All the validators actively participating in parachain consensus. Indices are into the broader validator set.

Python

result = substrate.query(
    'ParasShared', 'ActiveValidatorIndices', []
)

Return value

['u32']

ActiveValidatorKeys

The parachain attestation keys of the validators actively participating in parachain consensus. This should be the same length as ActiveValidatorIndices.

Python

result = substrate.query(
    'ParasShared', 'ActiveValidatorKeys', []
)

Return value

['[u8; 32]']

AllowedRelayParents

All allowed relay-parents.

Python

result = substrate.query(
    'ParasShared', 'AllowedRelayParents', []
)

Return value

{'buffer': [('scale_info::12', 'scale_info::12')], 'latest_number': 'u32'}

CurrentSessionIndex

The current session index.

Python

result = substrate.query(
    'ParasShared', 'CurrentSessionIndex', []
)

Return value

'u32'