Calls
fillBlock
A dispatch that will fill the block weight up to the given ratio. NamespacekillPrefix
Kill all storage items with a key that starts with the given prefix. NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function. NamespacekillStorage
Kill some items from storage. Namespaceremark
Make some on-chain remark. NamespaceremarkWithEvent
Make some on-chain remark and emit event. NamespacesetCode
Set the new runtime code. NamespacesetCodeWithoutChecks
Set the new runtime code without doing any checks of the givencode.
Namespace
setHeapPages
Set the number of pages in the WebAssembly environment’s heap. NamespacesetStorage
Set some items of storage. NamespaceStorage
account
The full account information for a particular account ID. NamespaceallExtrinsicsLen
Total length (in bytes) for all extrinsics put together, for the current block. NamespaceblockHash
Map of block numbers to block hashes. NamespaceblockWeight
The current weight for the block. Namespacedigest
Digest of the current block, also part of the block header. NamespaceeventCount
The number of events in theEvents<T> list.
Namespace
events
Events deposited for the current block. NOTE: The item is unbound and should therefore never be read on chain. It could otherwise inflate the PoV size of a block. Events have a large in-memory size. Box the events to not go out-of-memory just in case someone still reads them from within the runtime. NamespaceeventTopics
Mapping between a topic (represented by T::Hash) and a vector of indexes of events in the<Events<T>> list.
All topic vectors have deterministic storage locations depending on the topic. This allows light-clients to leverage the changes trie storage tracking mechanism and in case of changes fetch the list of events of interest.
The value has the type (T::BlockNumber, EventIndex) because if we used only just the EventIndex then in case if the topic has the same contents on the next block no notification will be triggered thus the event might be lost.
Namespace
executionPhase
The execution phase of the block. NamespaceextrinsicCount
Total extrinsics count for the current block. NamespaceextrinsicData
Extrinsics data for the current block (maps an extrinsic’s index to its data). NamespacelastRuntimeUpgrade
Stores thespec_version and spec_name of when the last runtime upgrade happened.
Namespace
number
The current block number being processed. Set byexecute_block.
Namespace
parentHash
Hash of the previous block. NamespaceupgradedToTripleRefCount
True if we have upgraded so that AccountInfo contains three types ofRefCount. False (default) if not.
Namespace
upgradedToU32RefCount
True if we have upgraded so thattype RefCount is u32. False (default) if not.
Namespace
Events
CodeUpdated
:code was updated.
Namespace
ExtrinsicFailed
An extrinsic failed. NamespaceExtrinsicSuccess
An extrinsic completed successfully. NamespaceKilledAccount
An account was reaped. NamespaceNewAccount
A new account was created. NamespaceRemarked
On on-chain remark happened. NamespaceErrors
CallFiltered
The origin filter prevent the call to be dispatched. NamespaceFailedToExtractRuntimeVersion
Failed to extract the runtime version from the new runtime. Either callingCore_version or decoding RuntimeVersion failed.
Namespace
InvalidSpecName
The name of specification does not match between the current runtime and the new runtime. NamespaceNonDefaultComposite
Suicide called when the account has non-default composite data. NamespaceNonZeroRefCount
There is a non-zero reference count preventing the account from being purged. NamespaceSpecVersionNeedsToIncrease
The specification version is not allowed to decrease between the current runtime and the new runtime. NamespaceConstants
blockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first). NamespaceblockLength
The maximum length of a block (in bytes). NamespaceblockWeights
Block & extrinsics weights: base values and limits. NamespacedbWeight
The weight of runtime database operations the runtime can invoke. Namespacess58Prefix
The designated SS58 prefix of this chain. This replaces the “ss58Format” property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain. Namespaceversion
Get the chain’s current version. NamespaceJSON-RPC Methods
accountNextIndex
Retrieves the next accountIndex as available on the node
Interface
addLogFilter
Adds the supplied directives to the current log filter
This method is only active with appropriate flags
addReservedPeer
Adds a reserved peer
This method is only active with appropriate flags
chain
Retrieves the chain
Interface
chainType
Retrieves the chain type
Interface
dryRun
Dry run an extrinsic at a given block
This method is only active with appropriate flags
health
Return health status of the node
Interface
localListenAddresses
The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
Interface
localPeerId
Returns the base58-encoded PeerId of the node
Interface
name
Retrieves the node name
Interface
nodeRoles
Returns the roles the node is running as
Interface
peers
Returns the currently connected peers
This method is only active with appropriate flags
properties
Get a custom set of properties as a JSON object, defined in the chain spec
Interface
removeReservedPeer
Remove a reserved peer
This method is only active with appropriate flags
reservedPeers
Returns the list of reserved peers
Interface
resetLogFilter
Resets the log filter to Substrate defaults
This method is only active with appropriate flags