Authorship
Calls
setUncles
Provide a set of uncles.
Namespace
api.tx.authorship.setUnclesType
function setUncles(
new_uncles: Vec<SpRuntimeHeader>
)Storage
author
Author of current block.
Namespace
api.query.authorship.authorType
function author(
): Option<SeedPrimitivesSignatureAccountId20>didSetUncles
Whether uncles were already set in this block.
Namespace
api.query.authorship.didSetUnclesType
function didSetUncles(
): booluncles
Uncles
Namespace
api.query.authorship.unclesType
function uncles(
): Vec<PalletAuthorshipUncleEntryItem>undefined## Errors
GenesisUncle
The uncle is genesis.
Namespace
api.errors.authorship.GenesisUncleInvalidUncleParent
The uncle parent not in the chain.
Namespace
api.errors.authorship.InvalidUncleParentOldUncle
The uncle isn't recent enough to be included.
Namespace
api.errors.authorship.OldUncleTooHighUncle
The uncle is too high in chain.
Namespace
api.errors.authorship.TooHighUncleTooManyUncles
Too many uncles.
Namespace
api.errors.authorship.TooManyUnclesUncleAlreadyIncluded
The uncle is already included.
Namespace
api.errors.authorship.UncleAlreadyIncludedUnclesAlreadySet
Uncles already set in the block.
Namespace
api.errors.authorship.UnclesAlreadySetConstants
uncleGenerations
The number of blocks back we should accept uncles. This means that we will deal with uncle-parents that are UncleGenerations + 1 before now.
Namespace
api.consts.authorship.uncleGenerationsType
type uncleGenerations = u32Source: https://docs.therootnetwork.com/build/substrate/api-reference/runtime-pallets/authorship · captured 2026-05-02 · part of TRN Docs source map