Skip to content

AuthorInherent


Calls


kick_off_authorship_validation

See [Pallet::kick_off_authorship_validation].

Attributes

No attributes

Python

call = substrate.compose_call(
    'AuthorInherent', 'kick_off_authorship_validation', {}
)

Storage functions


Author

Author of current block.

Python

result = substrate.query(
    'AuthorInherent', 'Author', []
)

Return value

'[u8; 20]'

InherentIncluded

Check if the inherent was included

Python

result = substrate.query(
    'AuthorInherent', 'InherentIncluded', []
)

Return value

'bool'

Errors


AuthorAlreadySet

Author already set in block.


CannotBeAuthor

The author in the inherent is not an eligible author.


NoAccountId

No AccountId was found to be associated with this author