System
Calls
fillBlock
A dispatch that will fill the block weight up to the given ratio.
Namespace
Type
killPrefix
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.
Namespace
Type
killStorage
Kill some items from storage.
Namespace
Type
remark
Make some on-chain remark.
Namespace
Type
remarkWithEvent
Make some on-chain remark and emit event.
Namespace
Type
setCode
Set the new runtime code.
Namespace
Type
setCodeWithoutChecks
Set the new runtime code without doing any checks of the given code
.
Namespace
Type
setHeapPages
Set the number of pages in the WebAssembly environment's heap.
Namespace
Type
setStorage
Set some items of storage.
Namespace
Type
Storage
account
The full account information for a particular account ID.
Namespace
Type
allExtrinsicsLen
Total length (in bytes) for all extrinsics put together, for the current block.
Namespace
Type
blockHash
Map of block numbers to block hashes.
Namespace
Type
blockWeight
The current weight for the block.
Namespace
Type
digest
Digest of the current block, also part of the block header.
Namespace
Type
eventCount
The number of events in the Events<T>
list.
Namespace
Type
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.
Namespace
Type
eventTopics
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
Type
executionPhase
The execution phase of the block.
Namespace
Type
extrinsicCount
Total extrinsics count for the current block.
Namespace
Type
extrinsicData
Extrinsics data for the current block (maps an extrinsic's index to its data).
Namespace
Type
lastRuntimeUpgrade
Stores the spec_version
and spec_name
of when the last runtime upgrade happened.
Namespace
Type
number
The current block number being processed. Set by execute_block
.
Namespace
Type
parentHash
Hash of the previous block.
Namespace
Type
upgradedToTripleRefCount
True if we have upgraded so that AccountInfo contains three types of RefCount
. False (default) if not.
Namespace
Type
upgradedToU32RefCount
True if we have upgraded so that type RefCount
is u32
. False (default) if not.
Namespace
Type
Events
CodeUpdated
:code
was updated.
Namespace
Type
ExtrinsicFailed
An extrinsic failed.
Namespace
Type
ExtrinsicSuccess
An extrinsic completed successfully.
Namespace
Type
KilledAccount
An account was reaped.
Namespace
Type
NewAccount
A new account was created.
Namespace
Type
Remarked
On on-chain remark happened.
Namespace
Type
Errors
CallFiltered
The origin filter prevent the call to be dispatched.
Namespace
FailedToExtractRuntimeVersion
Failed to extract the runtime version from the new runtime.
Either calling Core_version
or decoding RuntimeVersion
failed.
Namespace
InvalidSpecName
The name of specification does not match between the current runtime and the new runtime.
Namespace
NonDefaultComposite
Suicide called when the account has non-default composite data.
Namespace
NonZeroRefCount
There is a non-zero reference count preventing the account from being purged.
Namespace
SpecVersionNeedsToIncrease
The specification version is not allowed to decrease between the current runtime and the new runtime.
Namespace
Constants
blockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
Namespace
Type
blockLength
The maximum length of a block (in bytes).
Namespace
Type
blockWeights
Block & extrinsics weights: base values and limits.
Namespace
Type
dbWeight
The weight of runtime database operations the runtime can invoke.
Namespace
Type
ss58Prefix
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.
Namespace
Type
version
Get the chain's current version.
Namespace
Type
JSON-RPC Methods
accountNextIndex
accountNextIndex
Retrieves the next accountIndex as available on the node
Interface
JSON
addLogFilter
addLogFilter
Adds the supplied directives to the current log filter
:::info This method is only active with appropriate flags :::
Interface
JSON
addReservedPeer
addReservedPeer
Adds a reserved peer
:::info This method is only active with appropriate flags :::
Interface
JSON
chain
chain
Retrieves the chain
Interface
JSON
chainType
chainType
Retrieves the chain type
Interface
JSON
dryRun
dryRun
Dry run an extrinsic at a given block
:::info This method is only active with appropriate flags :::
Interface
JSON
health
health
Return health status of the node
Interface
JSON
localListenAddresses
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
JSON
localPeerId
localPeerId
Returns the base58-encoded PeerId of the node
Interface
JSON
name
name
Retrieves the node name
Interface
JSON
nodeRoles
nodeRoles
Returns the roles the node is running as
Interface
JSON
peers
peers
Returns the currently connected peers
:::info This method is only active with appropriate flags :::
Interface
JSON
properties
properties
Get a custom set of properties as a JSON object, defined in the chain spec
Interface
JSON
removeReservedPeer
removeReservedPeer
Remove a reserved peer
:::info This method is only active with appropriate flags :::
Interface
JSON
reservedPeers
reservedPeers
Returns the list of reserved peers
Interface
JSON
resetLogFilter
resetLogFilter
Resets the log filter to Substrate defaults
:::info This method is only active with appropriate flags :::
Interface
JSON
syncState
syncState
Returns the state of the syncing of the node
Interface
JSON
version
version
Retrieves the version of the node
Interface
JSON
Last updated