title: Storage
The following sections contain Storage methods are part of the default Substrate runtime. On the api, these are exposed via api.query.<module>.<method>
.
(NOTE: These were generated from a static/snapshot view of a recent Substrate master node. Some items may not be available in older nodes, or in any customized implementations.)
assets
account(u32, AccountId32
): Option<PalletAssetsAssetAccount>
- interface:
api.query.assets.account
- summary: The holdings of a specific account for a specific asset.
approvals(u32, AccountId32, AccountId32
): Option<PalletAssetsApproval>
- interface:
api.query.assets.approvals
- summary: Approved balance transfers. First balance is the amount approved for transfer. Second is the amount of
T::Currency
reserved for storing this. First key is the asset ID, second key is the owner and third key is the delegate.
asset(u32
): Option<PalletAssetsAssetDetails>
- interface:
api.query.assets.asset
- summary: Details of an asset.
metadata(u32
): PalletAssetsAssetMetadata
- interface:
api.query.assets.metadata
- summary: Metadata of an asset.
aura
authorities(): Vec<SpConsensusAuraSr25519AppSr25519Public>
- interface:
api.query.aura.authorities
- summary: The current authority set.
currentSlot(): u64
-
interface:
api.query.aura.currentSlot
-
summary: The current slot of this block.
This will be set in
on_initialize
.
auraExt
authorities(): Vec<SpConsensusAuraSr25519AppSr25519Public>
-
interface:
api.query.auraExt.authorities
-
summary: Serves as cache for the authorities.
The authorities in AuRa are overwritten in
on_initialize
when we switch to a new session, but we require the old authorities to verify the seal when validating a PoV. This will always be updated to the latest AuRa authorities inon_finalize
.
authorship
author(): Option<AccountId32>
- interface:
api.query.authorship.author
- summary: Author of current block.
didSetUncles(): bool
- interface:
api.query.authorship.didSetUncles
- summary: Whether uncles were already set in this block.
uncles(): Vec<PalletAuthorshipUncleEntryItem>
- interface:
api.query.authorship.uncles
- summary: Uncles
balances
account(AccountId32
): PalletBalancesAccountData
-
interface:
api.query.balances.account
-
summary: The Balances pallet example of storing the balance of an account.
Example
nocompile impl pallet_balances::Config for Runtime { type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>> }
You can also store the balance of an account in the
System
pallet.Example
nocompile impl pallet_balances::Config for Runtime { type AccountStore = System }
But this comes with tradeoffs, storing account balances in the system pallet stores
frame_system
data alongside the account data contrary to storing account balances in theBalances
pallet, which uses aStorageMap
to store balances data only. NOTE: This is only used in the case that this pallet is used to store balances.
locks(AccountId32
): Vec<PalletBalancesBalanceLock>
- interface:
api.query.balances.locks
- summary: Any liquidity locks on some account balances. NOTE: Should only be accessed when setting, changing and freeing a lock.
reserves(AccountId32
): Vec<PalletBalancesReserveData>
- interface:
api.query.balances.reserves
- summary: Named reserves on some account balances.
storageVersion(): PalletBalancesReleases
-
interface:
api.query.balances.storageVersion
-
summary: Storage version of the pallet.
This is set to v2.0.0 for new networks.
totalIssuance(): u128
- interface:
api.query.balances.totalIssuance
- summary: The total units issued in the system.
bounties
bounties(u32
): Option<PalletBountiesBounty>
- interface:
api.query.bounties.bounties
- summary: Bounties that have been made.
bountyApprovals(): Vec<u32>
- interface:
api.query.bounties.bountyApprovals
- summary: Bounty indices that have been approved but not yet funded.
bountyCount(): u32
- interface:
api.query.bounties.bountyCount
- summary: Number of bounty proposals that have been made.
bountyDescriptions(u32
): Option<Bytes>
- interface:
api.query.bounties.bountyDescriptions
- summary: The description of each bounty.
childBounties
childBounties(u32, u32
): Option<PalletChildBountiesChildBounty>
- interface:
api.query.childBounties.childBounties
- summary: Child bounties that have been added.
childBountyCount(): u32
- interface:
api.query.childBounties.childBountyCount
- summary: Number of total child bounties.
childBountyDescriptions(u32
): Option<Bytes>
- interface:
api.query.childBounties.childBountyDescriptions
- summary: The description of each child-bounty.
childrenCuratorFees(u32
): u128
- interface:
api.query.childBounties.childrenCuratorFees
- summary: The cumulative child-bounty curator fee for each parent bounty.
parentChildBounties(u32
): u32
- interface:
api.query.childBounties.parentChildBounties
- summary: Number of child bounties per parent bounty. Map of parent bounty index to number of child bounties.
collatorSelection
candidacyBond(): u128
-
interface:
api.query.collatorSelection.candidacyBond
-
summary: Fixed amount to deposit to become a collator.
When a collator calls
leave_intent
they immediately receive the deposit back.
candidates(): Vec<PalletCollatorSelectionCandidateInfo>
- interface:
api.query.collatorSelection.candidates
- summary: The (community, limited) collation candidates.
desiredCandidates(): u32
-
interface:
api.query.collatorSelection.desiredCandidates
-
summary: Desired number of candidates.
This should ideally always be less than [
Config::MaxCandidates
] for weights to be correct.
invulnerables(): Vec<AccountId32>
- interface:
api.query.collatorSelection.invulnerables
- summary: The invulnerable, fixed collators.
lastAuthoredBlock(AccountId32
): u32
- interface:
api.query.collatorSelection.lastAuthoredBlock
- summary: Last block authored by collator.
council
members(): Vec<AccountId32>
- interface:
api.query.council.members
- summary: The current members of the collective. This is stored sorted (just by value).
prime(): Option<AccountId32>
- interface:
api.query.council.prime
- summary: The prime member that helps determine the default vote behavior in case of absentations.
proposalCount(): u32
- interface:
api.query.council.proposalCount
- summary: Proposals so far.
proposalOf(H256
): Option<Call>
- interface:
api.query.council.proposalOf
- summary: Actual proposal for a given hash, if it's current.
proposals(): Vec<H256>
- interface:
api.query.council.proposals
- summary: The hashes of the active proposals.
voting(H256
): Option<PalletCollectiveVotes>
- interface:
api.query.council.voting
- summary: Votes on a given proposal, if it is ongoing.
democracy
blacklist(H256
): Option<(u32,Vec<AccountId32>)>
- interface:
api.query.democracy.blacklist
- summary: A record of who vetoed what. Maps proposal hash to a possible existent block number (until when it may not be resubmitted) and who vetoed it.
cancellations(H256
): bool
- interface:
api.query.democracy.cancellations
- summary: Record of all proposals that have been subject to emergency cancellation.
depositOf(u32
): Option<(Vec<AccountId32>,u128)>
-
interface:
api.query.democracy.depositOf
-
summary: Those who have locked a deposit.
TWOX-NOTE: Safe, as increasing integer keys are safe.
lastTabledWasExternal(): bool
- interface:
api.query.democracy.lastTabledWasExternal
- summary: True if the last referendum tabled was submitted externally. False if it was a public proposal.
lowestUnbaked(): u32
- interface:
api.query.democracy.lowestUnbaked
- summary: The lowest referendum index representing an unbaked referendum. Equal to
ReferendumCount
if there isn't a unbaked referendum.
nextExternal(): Option<(H256,PalletDemocracyVoteThreshold)>
-
interface:
api.query.democracy.nextExternal
-
summary: The referendum to be tabled whenever it would be valid to table an external proposal. This happens when a referendum needs to be tabled and one of two conditions are met:
-
LastTabledWasExternal
isfalse
; or -
PublicProps
is empty.
-
preimages(H256
): Option<PalletDemocracyPreimageStatus>
- interface:
api.query.democracy.preimages
- summary: Map of hashes to the proposal preimage, along with who registered it and their deposit. The block number is the block at which it was deposited.
publicPropCount(): u32
- interface:
api.query.democracy.publicPropCount
- summary: The number of (public) proposals that have been made so far.
publicProps(): Vec<(u32,H256,AccountId32)>
- interface:
api.query.democracy.publicProps
- summary: The public proposals. Unsorted. The second item is the proposal's hash.
referendumCount(): u32
- interface:
api.query.democracy.referendumCount
- summary: The next free referendum index, aka the number of referenda started so far.
referendumInfoOf(u32
): Option<PalletDemocracyReferendumInfo>
-
interface:
api.query.democracy.referendumInfoOf
-
summary: Information concerning any given referendum.
TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
storageVersion(): Option<PalletDemocracyReleases>
-
interface:
api.query.democracy.storageVersion
-
summary: Storage version of the pallet.
New networks start with last version.
votingOf(AccountId32
): PalletDemocracyVoteVoting
-
interface:
api.query.democracy.votingOf
-
summary: All votes for a particular voter. We store the balance for the number of votes that we have recorded. The second item is the total amount of delegations, that will be added.
TWOX-NOTE: SAFE as
AccountId
s are crypto hashes anyway.
identity
identityOf(AccountId32
): Option<PalletIdentityRegistration>
-
interface:
api.query.identity.identityOf
-
summary: Information that is pertinent to identify the entity behind an account.
TWOX-NOTE: OK ―
AccountId
is a secure hash.
registrars(): Vec<Option<PalletIdentityRegistrarInfo>>
-
interface:
api.query.identity.registrars
-
summary: The set of registrars. Not expected to get very big as can only be added through a special origin (likely a council motion).
The index into this can be cast to
RegistrarIndex
to get a valid value.
subsOf(AccountId32
): (u128,Vec<AccountId32>)
-
interface:
api.query.identity.subsOf
-
summary: Alternative "sub" identities of this account.
The first item is the deposit, the second is a vector of the accounts.
TWOX-NOTE: OK ―
AccountId
is a secure hash.
superOf(AccountId32
): Option<(AccountId32,Data)>
- interface:
api.query.identity.superOf
- summary: The super-identity of an alternative "sub" identity together with its name, within that context. If the account is not some other account's sub-identity, then just
None
.
lottery
callIndices(): Vec<(u8,u8)>
- interface:
api.query.lottery.callIndices
- summary: The calls stored in this pallet to be used in an active lottery if configured by
Config::ValidateCall
.
lottery(): Option<PalletLotteryLotteryConfig>
- interface:
api.query.lottery.lottery
- summary: The configuration for the current lottery.
lotteryIndex(): u32
- interface:
api.query.lottery.lotteryIndex
participants(AccountId32
): (u32,Vec<(u8,u8)>)
- interface:
api.query.lottery.participants
- summary: Users who have purchased a ticket. (Lottery Index, Tickets Purchased)
tickets(u32
): Option<AccountId32>
-
interface:
api.query.lottery.tickets
-
summary: Each ticket's owner.
May have residual storage from previous lotteries. Use
TicketsCount
to see which ones are actually valid ticket mappings.
ticketsCount(): u32
- interface:
api.query.lottery.ticketsCount
- summary: Total number of tickets sold.
multisig
calls([u8;32]
): Option<(WrapperKeepOpaque<Call>,AccountId32,u128)>
- interface:
api.query.multisig.calls
multisigs(AccountId32, [u8;32]
): Option<PalletMultisigMultisig>
- interface:
api.query.multisig.multisigs
- summary: The set of open multisig operations.
parachainInfo
parachainId(): u32
- interface:
api.query.parachainInfo.parachainId
parachainSystem
announcedHrmpMessagesPerCandidate(): u32
- interface:
api.query.parachainSystem.announcedHrmpMessagesPerCandidate
- summary: The number of HRMP messages we observed in
on_initialize
and thus used that number for announcing the weight ofon_initialize
andon_finalize
.
authorizedUpgrade(): Option<H256>
- interface:
api.query.parachainSystem.authorizedUpgrade
- summary: The next authorized upgrade, if there is one.
customValidationHeadData(): Option<Bytes>
-
interface:
api.query.parachainSystem.customValidationHeadData
-
summary: A custom head data that should be returned as result of
validate_block
.See [
Pallet::set_custom_validation_head_data
] for more information.
didSetValidationCode(): bool
- interface:
api.query.parachainSystem.didSetValidationCode
- summary: Were the validation data set to notify the relay chain?
hostConfiguration(): Option<PolkadotPrimitivesV2AbridgedHostConfiguration>
-
interface:
api.query.parachainSystem.hostConfiguration
-
summary: The parachain host configuration that was obtained from the relay parent.
This field is meant to be updated each block with the validation data inherent. Therefore, before processing of the inherent, e.g. in
on_initialize
this data may be stale.This data is also absent from the genesis.
hrmpOutboundMessages(): Vec<PolkadotCorePrimitivesOutboundHrmpMessage>
-
interface:
api.query.parachainSystem.hrmpOutboundMessages
-
summary: HRMP messages that were sent in a block.
This will be cleared in
on_initialize
of each new block.
hrmpWatermark(): u32
-
interface:
api.query.parachainSystem.hrmpWatermark
-
summary: HRMP watermark that was set in a block.
This will be cleared in
on_initialize
of each new block.
lastDmqMqcHead(): H256
-
interface:
api.query.parachainSystem.lastDmqMqcHead
-
summary: The last downward message queue chain head we have observed.
This value is loaded before and saved after processing inbound downward messages carried by the system inherent.
lastHrmpMqcHeads(): BTreeMap<u32, H256>
-
interface:
api.query.parachainSystem.lastHrmpMqcHeads
-
summary: The message queue chain heads we have observed per each channel incoming channel.
This value is loaded before and saved after processing inbound downward messages carried by the system inherent.
newValidationCode(): Option<Bytes>
-
interface:
api.query.parachainSystem.newValidationCode
-
summary: Validation code that is set by the parachain and is to be communicated to collator and consequently the relay-chain.
This will be cleared in
on_initialize
of each new block if no other pallet already set the value.
pendingUpwardMessages(): Vec<Bytes>
- interface:
api.query.parachainSystem.pendingUpwardMessages
- summary: Upward messages that are still pending and not yet send to the relay chain.
pendingValidationCode(): Bytes
-
interface:
api.query.parachainSystem.pendingValidationCode
-
summary: In case of a scheduled upgrade, this storage field contains the validation code to be applied.
As soon as the relay chain gives us the go-ahead signal, we will overwrite the
:code
which will result the next block process with the new validation code. This concludes the upgrade process.
processedDownwardMessages(): u32
-
interface:
api.query.parachainSystem.processedDownwardMessages
-
summary: Number of downward messages processed in a block.
This will be cleared in
on_initialize
of each new block.
relayStateProof(): Option<SpTrieStorageProof>
-
interface:
api.query.parachainSystem.relayStateProof
-
summary: The state proof for the last relay parent block.
This field is meant to be updated each block with the validation data inherent. Therefore, before processing of the inherent, e.g. in
on_initialize
this data may be stale.This data is also absent from the genesis.
relevantMessagingState(): Option<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot>
-
interface:
api.query.parachainSystem.relevantMessagingState
-
summary: The snapshot of some state related to messaging relevant to the current parachain as per the relay parent.
This field is meant to be updated each block with the validation data inherent. Therefore, before processing of the inherent, e.g. in
on_initialize
this data may be stale.This data is also absent from the genesis.
reservedDmpWeightOverride(): Option<u64>
- interface:
api.query.parachainSystem.reservedDmpWeightOverride
- summary: The weight we reserve at the beginning of the block for processing DMP messages. This overrides the amount set in the Config trait.
reservedXcmpWeightOverride(): Option<u64>
- interface:
api.query.parachainSystem.reservedXcmpWeightOverride
- summary: The weight we reserve at the beginning of the block for processing XCMP messages. This overrides the amount set in the Config trait.
upgradeRestrictionSignal(): Option<PolkadotPrimitivesV2UpgradeRestriction>
-
interface:
api.query.parachainSystem.upgradeRestrictionSignal
-
summary: An option which indicates if the relay-chain restricts signalling a validation code upgrade. In other words, if this is
Some
and [NewValidationCode
] isSome
then the produced candidate will be invalid.This storage item is a mirror of the corresponding value for the current parachain from the relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is set after the inherent.
upwardMessages(): Vec<Bytes>
-
interface:
api.query.parachainSystem.upwardMessages
-
summary: Upward messages that were sent in a block.
This will be cleared in
on_initialize
of each new block.
validationData(): Option<PolkadotPrimitivesV2PersistedValidationData>
- interface:
api.query.parachainSystem.validationData
- summary: The [
PersistedValidationData
] set for this block. This value is expected to be set only once per block and it's never stored in the trie.
phragmenElection
candidates(): Vec<(AccountId32,u128)>
-
interface:
api.query.phragmenElection.candidates
-
summary: The present candidate list. A current member or runner-up can never enter this vector and is always implicitly assumed to be a candidate.
Second element is the deposit.
Invariant: Always sorted based on account id.
electionRounds(): u32
- interface:
api.query.phragmenElection.electionRounds
- summary: The total number of vote rounds that have happened, excluding the upcoming one.
members(): Vec<PalletElectionsPhragmenSeatHolder>
-
interface:
api.query.phragmenElection.members
-
summary: The current elected members.
Invariant: Always sorted based on account id.
runnersUp(): Vec<PalletElectionsPhragmenSeatHolder>
-
interface:
api.query.phragmenElection.runnersUp
-
summary: The current reserved runners-up.
Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the last (i.e. best) runner-up will be replaced.
voting(AccountId32
): PalletElectionsPhragmenVoter
-
interface:
api.query.phragmenElection.voting
-
summary: Votes and locked stake of a particular voter.
TWOX-NOTE: SAFE as
AccountId
is a crypto hash.
preimage
preimageFor(H256
): Option<Bytes>
- interface:
api.query.preimage.preimageFor
- summary: The preimages stored by this pallet.
statusFor(H256
): Option<PalletPreimageRequestStatus>
- interface:
api.query.preimage.statusFor
- summary: The request status of a given hash.
proxy
announcements(AccountId32
): (Vec<PalletProxyAnnouncement>,u128)
- interface:
api.query.proxy.announcements
- summary: The announcements made by the proxy (key).
proxies(AccountId32
): (Vec<PalletProxyProxyDefinition>,u128)
- interface:
api.query.proxy.proxies
- summary: The set of account proxies. Maps the account which has delegated to the accounts which are being delegated to, together with the amount held on deposit.
randomnessCollectiveFlip
randomMaterial(): Vec<H256>
- interface:
api.query.randomnessCollectiveFlip.randomMaterial
- summary: Series of block headers from the last 81 blocks that acts as random seed material. This is arranged as a ring buffer with
block_number % 81
being the index into theVec
of the oldest hash.
scheduler
agenda(u32
): Vec<Option<PalletSchedulerScheduledV3>>
- interface:
api.query.scheduler.agenda
- summary: Items to be executed, indexed by the block number that they should be executed on.
lookup(Bytes
): Option<(u32,u32)>
- interface:
api.query.scheduler.lookup
- summary: Lookup from identity to the block number and index of the task.
session
currentIndex(): u32
- interface:
api.query.session.currentIndex
- summary: Current index of the session.
disabledValidators(): Vec<u32>
-
interface:
api.query.session.disabledValidators
-
summary: Indices of disabled validators.
The vec is always kept sorted so that we can find whether a given validator is disabled using binary search. It gets cleared when
on_session_ending
returns a new set of identities.
keyOwner((SpCoreCryptoKeyTypeId,Bytes)
): Option<AccountId32>
- interface:
api.query.session.keyOwner
- summary: The owner of a key. The key is the
KeyTypeId
+ the encoded key.
nextKeys(AccountId32
): Option<PhalaParachainRuntimeOpaqueSessionKeys>
- interface:
api.query.session.nextKeys
- summary: The next session keys for a validator.
queuedChanged(): bool
- interface:
api.query.session.queuedChanged
- summary: True if the underlying economic identities or weighting behind the validators has changed in the queued validator set.
queuedKeys(): Vec<(AccountId32,PhalaParachainRuntimeOpaqueSessionKeys)>
- interface:
api.query.session.queuedKeys
- summary: The queued keys for the next session. When the next session begins, these keys will be used to determine the validator's session keys.
validators(): Vec<AccountId32>
- interface:
api.query.session.validators
- summary: The current set of validators.
substrate
These are well-known keys that are always available to the runtime implementation of any Substrate-based network.
changesTrieConfig(): u32
- interface:
api.query.substrate.changesTrieConfig
- summary: Changes trie configuration is stored under this key.
childStorageKeyPrefix(): u32
- interface:
api.query.substrate.childStorageKeyPrefix
- summary: Prefix of child storage keys.
code(): Bytes
- interface:
api.query.substrate.code
- summary: Wasm code of the runtime.
extrinsicIndex(): u32
- interface:
api.query.substrate.extrinsicIndex
- summary: Current extrinsic index (u32) is stored under this key.
heapPages(): u64
- interface:
api.query.substrate.heapPages
- summary: Number of wasm linear memory pages required for execution of the runtime.
sudo
key(): Option<AccountId32>
- interface:
api.query.sudo.key
- summary: The
AccountId
of the sudo key.
system
account(AccountId32
): FrameSystemAccountInfo
- interface:
api.query.system.account
- summary: The full account information for a particular account ID.
allExtrinsicsLen(): Option<u32>
- interface:
api.query.system.allExtrinsicsLen
- summary: Total length (in bytes) for all extrinsics put together, for the current block.
blockHash(u32
): H256
- interface:
api.query.system.blockHash
- summary: Map of block numbers to block hashes.
blockWeight(): FrameSupportWeightsPerDispatchClassU64
- interface:
api.query.system.blockWeight
- summary: The current weight for the block.
digest(): SpRuntimeDigest
- interface:
api.query.system.digest
- summary: Digest of the current block, also part of the block header.
eventCount(): u32
- interface:
api.query.system.eventCount
- summary: The number of events in the
Events<T>
list.
events(): Vec<FrameSystemEventRecord>
-
interface:
api.query.system.events
-
summary: 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.
eventTopics(H256
): Vec<(u32,u32)>
-
interface:
api.query.system.eventTopics
-
summary: 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 theEventIndex
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.
executionPhase(): Option<FrameSystemPhase>
- interface:
api.query.system.executionPhase
- summary: The execution phase of the block.
extrinsicCount(): Option<u32>
- interface:
api.query.system.extrinsicCount
- summary: Total extrinsics count for the current block.
extrinsicData(u32
): Bytes
- interface:
api.query.system.extrinsicData
- summary: Extrinsics data for the current block (maps an extrinsic's index to its data).
lastRuntimeUpgrade(): Option<FrameSystemLastRuntimeUpgradeInfo>
- interface:
api.query.system.lastRuntimeUpgrade
- summary: Stores the
spec_version
andspec_name
of when the last runtime upgrade happened.
number(): u32
- interface:
api.query.system.number
- summary: The current block number being processed. Set by
execute_block
.
parentHash(): H256
- interface:
api.query.system.parentHash
- summary: Hash of the previous block.
upgradedToTripleRefCount(): bool
- interface:
api.query.system.upgradedToTripleRefCount
- summary: True if we have upgraded so that AccountInfo contains three types of
RefCount
. False (default) if not.
upgradedToU32RefCount(): bool
- interface:
api.query.system.upgradedToU32RefCount
- summary: True if we have upgraded so that
type RefCount
isu32
. False (default) if not.
technicalCommittee
members(): Vec<AccountId32>
- interface:
api.query.technicalCommittee.members
- summary: The current members of the collective. This is stored sorted (just by value).
prime(): Option<AccountId32>
- interface:
api.query.technicalCommittee.prime
- summary: The prime member that helps determine the default vote behavior in case of absentations.
proposalCount(): u32
- interface:
api.query.technicalCommittee.proposalCount
- summary: Proposals so far.
proposalOf(H256
): Option<Call>
- interface:
api.query.technicalCommittee.proposalOf
- summary: Actual proposal for a given hash, if it's current.
proposals(): Vec<H256>
- interface:
api.query.technicalCommittee.proposals
- summary: The hashes of the active proposals.
voting(H256
): Option<PalletCollectiveVotes>
- interface:
api.query.technicalCommittee.voting
- summary: Votes on a given proposal, if it is ongoing.
technicalMembership
members(): Vec<AccountId32>
- interface:
api.query.technicalMembership.members
- summary: The current membership, stored as an ordered Vec.
prime(): Option<AccountId32>
- interface:
api.query.technicalMembership.prime
- summary: The current prime member, if one exists.
timestamp
didUpdate(): bool
- interface:
api.query.timestamp.didUpdate
- summary: Did the timestamp get updated in this block?
now(): u64
- interface:
api.query.timestamp.now
- summary: Current time for the current block.
tips
reasons(H256
): Option<Bytes>
- interface:
api.query.tips.reasons
- summary: Simple preimage lookup from the reason's hash to the original data. Again, has an insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
tips(H256
): Option<PalletTipsOpenTip>
- interface:
api.query.tips.tips
- summary: TipsMap that are not yet completed. Keyed by the hash of
(reason, who)
from the value. This has the insecure enumerable hash function since the key itself is already guaranteed to be a secure hash.
transactionPayment
nextFeeMultiplier(): u128
- interface:
api.query.transactionPayment.nextFeeMultiplier
storageVersion(): PalletTransactionPaymentReleases
- interface:
api.query.transactionPayment.storageVersion
treasury
approvals(): Vec<u32>
- interface:
api.query.treasury.approvals
- summary: Proposal indices that have been approved but not yet awarded.
proposalCount(): u32
- interface:
api.query.treasury.proposalCount
- summary: Number of proposals that have been made.
proposals(u32
): Option<PalletTreasuryProposal>
- interface:
api.query.treasury.proposals
- summary: Proposals that have been made.
vesting
storageVersion(): PalletVestingReleases
-
interface:
api.query.vesting.storageVersion
-
summary: Storage version of the pallet.
New networks start with latest version, as determined by the genesis build.
vesting(AccountId32
): Option<Vec<PalletVestingVestingInfo>>
- interface:
api.query.vesting.vesting
- summary: Information regarding the vesting of a given account.