System
Calls
kill_prefix
Attributes
Name |
Type |
prefix |
Key |
subkeys |
u32 |
Python
call = substrate.compose_call(
'System', 'kill_prefix', {'prefix': 'Bytes', 'subkeys': 'u32'}
)
kill_storage
Attributes
Python
call = substrate.compose_call(
'System', 'kill_storage', {'keys': ['Bytes']}
)
Attributes
Python
call = substrate.compose_call(
'System', 'remark', {'remark': 'Bytes'}
)
Attributes
Python
call = substrate.compose_call(
'System', 'remark_with_event', {'remark': 'Bytes'}
)
set_code
Attributes
Python
call = substrate.compose_call(
'System', 'set_code', {'code': 'Bytes'}
)
set_code_without_checks
Attributes
Python
call = substrate.compose_call(
'System', 'set_code_without_checks', {'code': 'Bytes'}
)
set_heap_pages
Attributes
Python
call = substrate.compose_call(
'System', 'set_heap_pages', {'pages': 'u64'}
)
set_storage
Attributes
Name |
Type |
items |
Vec<KeyValue> |
Python
call = substrate.compose_call(
'System', 'set_storage', {'items': [('Bytes', 'Bytes')]}
)
Events
CodeUpdated
Attributes
No attributes
ExtrinsicFailed
Attributes
Name |
Type |
Composition |
dispatch_error |
DispatchError |
{'Other': None, 'CannotLookup': None, 'BadOrigin': None, 'Module': {'index': 'u8', 'error': '[u8; 4]'}, 'ConsumerRemaining': None, 'NoProviders': None, 'TooManyConsumers': None, 'Token': ('FundsUnavailable', 'OnlyProvider', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported', 'CannotCreateHold', 'NotExpendable', 'Blocked'), 'Arithmetic': ('Underflow', 'Overflow', 'DivisionByZero'), 'Transactional': ('LimitReached', 'NoLayer'), 'Exhausted': None, 'Corruption': None, 'Unavailable': None, 'RootNotAllowed': None} |
dispatch_info |
DispatchInfo |
{'weight': {'ref_time': 'u64', 'proof_size': 'u64'}, 'class': ('Normal', 'Operational', 'Mandatory'), 'pays_fee': ('Yes', 'No')} |
ExtrinsicSuccess
Attributes
Name |
Type |
Composition |
dispatch_info |
DispatchInfo |
{'weight': {'ref_time': 'u64', 'proof_size': 'u64'}, 'class': ('Normal', 'Operational', 'Mandatory'), 'pays_fee': ('Yes', 'No')} |
KilledAccount
Attributes
Name |
Type |
Composition |
account |
T::AccountId |
AccountId |
NewAccount
Attributes
Name |
Type |
Composition |
account |
T::AccountId |
AccountId |
Attributes
Name |
Type |
Composition |
sender |
T::AccountId |
AccountId |
hash |
T::Hash |
scale_info::12 |
Storage functions
Account
Python
result = substrate.query(
'System', 'Account', ['AccountId']
)
Return value
{
'consumers': 'u32',
'data': {
'flags': 'u128',
'free': 'u128',
'frozen': 'u128',
'reserved': 'u128',
},
'nonce': 'u32',
'providers': 'u32',
'sufficients': 'u32',
}
AllExtrinsicsLen
Python
result = substrate.query(
'System', 'AllExtrinsicsLen', []
)
Return value
'u32'
BlockHash
Python
result = substrate.query(
'System', 'BlockHash', ['u32']
)
Return value
'scale_info::12'
BlockWeight
Python
result = substrate.query(
'System', 'BlockWeight', []
)
Return value
{
'mandatory': {'proof_size': 'u64', 'ref_time': 'u64'},
'normal': {'proof_size': 'u64', 'ref_time': 'u64'},
'operational': {'proof_size': 'u64', 'ref_time': 'u64'},
}
Digest
Python
result = substrate.query(
'System', 'Digest', []
)
Return value
{
'logs': [
{
'Consensus': ('[u8; 4]', 'Bytes'),
'Other': 'Bytes',
'PreRuntime': ('[u8; 4]', 'Bytes'),
'RuntimeEnvironmentUpdated': None,
'Seal': ('[u8; 4]', 'Bytes'),
None: None,
},
],
}
EventCount
Python
result = substrate.query(
'System', 'EventCount', []
)
Return value
'u32'
EventTopics
Python
result = substrate.query(
'System', 'EventTopics', ['scale_info::12']
)
Return value
[('u32', 'u32')]
Events
Python
result = substrate.query(
'System', 'Events', []
)
Return value
[
{
'event': {
'Balances': {
'BalanceSet': {'free': 'u128', 'who': 'AccountId'},
'Burned': {'amount': 'u128', 'who': 'AccountId'},
'Deposit': {'amount': 'u128', 'who': 'AccountId'},
'DustLost': {'account': 'AccountId', 'amount': 'u128'},
'Endowed': {'account': 'AccountId', 'free_balance': 'u128'},
'Frozen': {'amount': 'u128', 'who': 'AccountId'},
'Issued': {'amount': 'u128'},
'Locked': {'amount': 'u128', 'who': 'AccountId'},
'Minted': {'amount': 'u128', 'who': 'AccountId'},
'Rescinded': {'amount': 'u128'},
'ReserveRepatriated': {
'amount': 'u128',
'destination_status': 'scale_info::44',
'from': 'AccountId',
'to': 'AccountId',
},
'Reserved': {'amount': 'u128', 'who': 'AccountId'},
'Restored': {'amount': 'u128', 'who': 'AccountId'},
'Slashed': {'amount': 'u128', 'who': 'AccountId'},
'Suspended': {'amount': 'u128', 'who': 'AccountId'},
'Thawed': {'amount': 'u128', 'who': 'AccountId'},
'Transfer': {
'amount': 'u128',
'from': 'AccountId',
'to': 'AccountId',
},
'Unlocked': {'amount': 'u128', 'who': 'AccountId'},
'Unreserved': {'amount': 'u128', 'who': 'AccountId'},
'Upgraded': {'who': 'AccountId'},
'Withdraw': {'amount': 'u128', 'who': 'AccountId'},
},
'Capacity': {
'CapacityWithdrawn': {'amount': 'u128', 'msa_id': 'u64'},
'EpochLengthUpdated': {'blocks': 'u32'},
'StakeWithdrawn': {'account': 'AccountId', 'amount': 'u128'},
'Staked': {
'account': 'AccountId',
'amount': 'u128',
'capacity': 'u128',
'target': 'u64',
},
'UnStaked': {
'account': 'AccountId',
'amount': 'u128',
'capacity': 'u128',
'target': 'u64',
},
},
'CollatorSelection': {
'CandidateAdded': {
'account_id': 'AccountId',
'deposit': 'u128',
},
'CandidateRemoved': {'account_id': 'AccountId'},
'InvalidInvulnerableSkipped': {'account_id': 'AccountId'},
'InvulnerableAdded': {'account_id': 'AccountId'},
'InvulnerableRemoved': {'account_id': 'AccountId'},
'NewCandidacyBond': {'bond_amount': 'u128'},
'NewDesiredCandidates': {'desired_candidates': 'u32'},
'NewInvulnerables': {'invulnerables': ['AccountId']},
},
'Council': {
'Approved': {'proposal_hash': 'scale_info::12'},
'Closed': {
'no': 'u32',
'proposal_hash': 'scale_info::12',
'yes': 'u32',
},
'Disapproved': {'proposal_hash': 'scale_info::12'},
'Executed': {
'proposal_hash': 'scale_info::12',
'result': 'scale_info::40',
},
'MemberExecuted': {
'proposal_hash': 'scale_info::12',
'result': 'scale_info::40',
},
'Proposed': {
'account': 'AccountId',
'proposal_hash': 'scale_info::12',
'proposal_index': 'u32',
'threshold': 'u32',
},
'Voted': {
'account': 'AccountId',
'no': 'u32',
'proposal_hash': 'scale_info::12',
'voted': 'bool',
'yes': 'u32',
},
},
'Democracy': {
'Blacklisted': {'proposal_hash': 'scale_info::12'},
'Cancelled': {'ref_index': 'u32'},
'Delegated': {'target': 'AccountId', 'who': 'AccountId'},
'ExternalTabled': None,
'MetadataCleared': {
'hash': 'scale_info::12',
'owner': 'scale_info::37',
},
'MetadataSet': {
'hash': 'scale_info::12',
'owner': 'scale_info::37',
},
'MetadataTransferred': {
'hash': 'scale_info::12',
'owner': 'scale_info::37',
'prev_owner': 'scale_info::37',
},
'NotPassed': {'ref_index': 'u32'},
'Passed': {'ref_index': 'u32'},
'ProposalCanceled': {'prop_index': 'u32'},
'Proposed': {'deposit': 'u128', 'proposal_index': 'u32'},
'Seconded': {'prop_index': 'u32', 'seconder': 'AccountId'},
'Started': {'ref_index': 'u32', 'threshold': 'scale_info::34'},
'Tabled': {'deposit': 'u128', 'proposal_index': 'u32'},
'Undelegated': {'account': 'AccountId'},
'Vetoed': {
'proposal_hash': 'scale_info::12',
'until': 'u32',
'who': 'AccountId',
},
'Voted': {
'ref_index': 'u32',
'vote': 'scale_info::35',
'voter': 'AccountId',
},
},
'FrequencyTxPayment': (),
'Handles': {
'HandleClaimed': {'handle': 'Bytes', 'msa_id': 'u64'},
'HandleRetired': {'handle': 'Bytes', 'msa_id': 'u64'},
},
'Messages': {
'MessagesInBlock': None,
'MessagesStored': {'block_number': 'u32', 'schema_id': 'u16'},
},
'Msa': {
'DelegationGranted': {
'delegator_id': 'u64',
'provider_id': 'u64',
},
'DelegationRevoked': {
'delegator_id': 'u64',
'provider_id': 'u64',
},
'DelegationUpdated': {
'delegator_id': 'u64',
'provider_id': 'u64',
},
'MsaCreated': {'key': 'AccountId', 'msa_id': 'u64'},
'MsaRetired': {'msa_id': 'u64'},
'ProviderCreated': {'provider_id': 'u64'},
'PublicKeyAdded': {'key': 'AccountId', 'msa_id': 'u64'},
'PublicKeyDeleted': {'key': 'AccountId'},
},
'Multisig': {
'MultisigApproval': {
'approving': 'AccountId',
'call_hash': '[u8; 32]',
'multisig': 'AccountId',
'timepoint': 'scale_info::54',
},
'MultisigCancelled': {
'call_hash': '[u8; 32]',
'cancelling': 'AccountId',
'multisig': 'AccountId',
'timepoint': 'scale_info::54',
},
'MultisigExecuted': {
'approving': 'AccountId',
'call_hash': '[u8; 32]',
'multisig': 'AccountId',
'result': 'scale_info::40',
'timepoint': 'scale_info::54',
},
'NewMultisig': {
'approving': 'AccountId',
'call_hash': '[u8; 32]',
'multisig': 'AccountId',
},
},
'ParachainSystem': {
'DownwardMessagesProcessed': {
'dmq_head': 'scale_info::12',
'weight_used': 'scale_info::9',
},
'DownwardMessagesReceived': {'count': 'u32'},
'UpgradeAuthorized': {'code_hash': 'scale_info::12'},
'UpwardMessageSent': {'message_hash': (None, '[u8; 32]')},
'ValidationFunctionApplied': {'relay_chain_block_num': 'u32'},
'ValidationFunctionDiscarded': None,
'ValidationFunctionStored': None,
},
'Preimage': {
'Cleared': {'hash': 'scale_info::12'},
'Noted': {'hash': 'scale_info::12'},
'Requested': {'hash': 'scale_info::12'},
},
'Scheduler': {
'CallUnavailable': {
'id': (None, '[u8; 32]'),
'task': ('u32', 'u32'),
},
'Canceled': {'index': 'u32', 'when': 'u32'},
'Dispatched': {
'id': (None, '[u8; 32]'),
'result': 'scale_info::40',
'task': ('u32', 'u32'),
},
'PeriodicFailed': {
'id': (None, '[u8; 32]'),
'task': ('u32', 'u32'),
},
'PermanentlyOverweight': {
'id': (None, '[u8; 32]'),
'task': ('u32', 'u32'),
},
'Scheduled': {'index': 'u32', 'when': 'u32'},
},
'Schemas': {
'SchemaCreated': {'key': 'AccountId', 'schema_id': 'u16'},
'SchemaMaxSizeChanged': {'max_size': 'u32'},
},
'Session': {'NewSession': {'session_index': 'u32'}},
'StatefulStorage': {
'ItemizedPageDeleted': {
'msa_id': 'u64',
'prev_content_hash': 'u32',
'schema_id': 'u16',
},
'ItemizedPageUpdated': {
'curr_content_hash': 'u32',
'msa_id': 'u64',
'prev_content_hash': 'u32',
'schema_id': 'u16',
},
'PaginatedPageDeleted': {
'msa_id': 'u64',
'page_id': 'u16',
'prev_content_hash': 'u32',
'schema_id': 'u16',
},
'PaginatedPageUpdated': {
'curr_content_hash': 'u32',
'msa_id': 'u64',
'page_id': 'u16',
'prev_content_hash': 'u32',
'schema_id': 'u16',
},
},
'System': {
'CodeUpdated': None,
'ExtrinsicFailed': {
'dispatch_error': 'scale_info::25',
'dispatch_info': 'scale_info::22',
},
'ExtrinsicSuccess': {'dispatch_info': 'scale_info::22'},
'KilledAccount': {'account': 'AccountId'},
'NewAccount': {'account': 'AccountId'},
'Remarked': {'hash': 'scale_info::12', 'sender': 'AccountId'},
},
'TimeRelease': {
'Claimed': {'amount': 'u128', 'who': 'AccountId'},
'ReleaseScheduleAdded': {
'from': 'AccountId',
'release_schedule': 'scale_info::56',
'to': 'AccountId',
},
'ReleaseSchedulesUpdated': {'who': 'AccountId'},
},
'TransactionPayment': {
'TransactionFeePaid': {
'actual_fee': 'u128',
'tip': 'u128',
'who': 'AccountId',
},
},
'Treasury': {
'Awarded': {
'account': 'AccountId',
'award': 'u128',
'proposal_index': 'u32',
},
'Burnt': {'burnt_funds': 'u128'},
'Deposit': {'value': 'u128'},
'Proposed': {'proposal_index': 'u32'},
'Rejected': {'proposal_index': 'u32', 'slashed': 'u128'},
'Rollover': {'rollover_balance': 'u128'},
'SpendApproved': {
'amount': 'u128',
'beneficiary': 'AccountId',
'proposal_index': 'u32',
},
'Spending': {'budget_remaining': 'u128'},
'UpdatedInactive': {
'deactivated': 'u128',
'reactivated': 'u128',
},
},
None: None,
'TechnicalCommittee': {
'Approved': {'proposal_hash': 'scale_info::12'},
'Closed': {
'no': 'u32',
'proposal_hash': 'scale_info::12',
'yes': 'u32',
},
'Disapproved': {'proposal_hash': 'scale_info::12'},
'Executed': {
'proposal_hash': 'scale_info::12',
'result': 'scale_info::40',
},
'MemberExecuted': {
'proposal_hash': 'scale_info::12',
'result': 'scale_info::40',
},
'Proposed': {
'account': 'AccountId',
'proposal_hash': 'scale_info::12',
'proposal_index': 'u32',
'threshold': 'u32',
},
'Voted': {
'account': 'AccountId',
'no': 'u32',
'proposal_hash': 'scale_info::12',
'voted': 'bool',
'yes': 'u32',
},
},
'Utility': {
'BatchCompleted': None,
'BatchCompletedWithErrors': None,
'BatchInterrupted': {
'error': 'scale_info::25',
'index': 'u32',
},
'DispatchedAs': {'result': 'scale_info::40'},
'ItemCompleted': None,
'ItemFailed': {'error': 'scale_info::25'},
},
},
'phase': {
'ApplyExtrinsic': 'u32',
'Finalization': None,
'Initialization': None,
},
'topics': ['scale_info::12'],
},
]
ExecutionPhase
Python
result = substrate.query(
'System', 'ExecutionPhase', []
)
Return value
{'ApplyExtrinsic': 'u32', 'Finalization': None, 'Initialization': None}
ExtrinsicCount
Python
result = substrate.query(
'System', 'ExtrinsicCount', []
)
Return value
'u32'
ExtrinsicData
Python
result = substrate.query(
'System', 'ExtrinsicData', ['u32']
)
Return value
'Bytes'
LastRuntimeUpgrade
Python
result = substrate.query(
'System', 'LastRuntimeUpgrade', []
)
Return value
{'spec_name': 'Str', 'spec_version': 'u32'}
Number
Python
result = substrate.query(
'System', 'Number', []
)
Return value
'u32'
ParentHash
Python
result = substrate.query(
'System', 'ParentHash', []
)
Return value
'scale_info::12'
UpgradedToTripleRefCount
Python
result = substrate.query(
'System', 'UpgradedToTripleRefCount', []
)
Return value
'bool'
UpgradedToU32RefCount
Python
result = substrate.query(
'System', 'UpgradedToU32RefCount', []
)
Return value
'bool'
Constants
BlockHashCount
Value
4096
Python
constant = substrate.get_constant('System', 'BlockHashCount')
BlockLength
Value
{'max': {'mandatory': 5242880, 'normal': 3932160, 'operational': 5242880}}
Python
constant = substrate.get_constant('System', 'BlockLength')
BlockWeights
Value
{
'base_block': {'proof_size': 0, 'ref_time': 394161000},
'max_block': {'proof_size': 5242880, 'ref_time': 500000000000},
'per_class': {
'mandatory': {
'base_extrinsic': {'proof_size': 0, 'ref_time': 100131000},
'max_extrinsic': None,
'max_total': None,
'reserved': None,
},
'normal': {
'base_extrinsic': {'proof_size': 0, 'ref_time': 100131000},
'max_extrinsic': {'proof_size': 3670016, 'ref_time': 349899869000},
'max_total': {'proof_size': 3932160, 'ref_time': 375000000000},
'reserved': {'proof_size': 0, 'ref_time': 0},
},
'operational': {
'base_extrinsic': {'proof_size': 0, 'ref_time': 100131000},
'max_extrinsic': {'proof_size': 4980736, 'ref_time': 474899869000},
'max_total': {'proof_size': 5242880, 'ref_time': 500000000000},
'reserved': {'proof_size': 1310720, 'ref_time': 125000000000},
},
},
}
Python
constant = substrate.get_constant('System', 'BlockWeights')
DbWeight
Value
{'read': 25000000, 'write': 100000000}
Python
constant = substrate.get_constant('System', 'DbWeight')
SS58Prefix
Value
90
Python
constant = substrate.get_constant('System', 'SS58Prefix')
Version
Value
{
'apis': [
('0xdd718d5cc53262d4', 1),
('0xd7bdd8a272ca0d65', 1),
('0xdf6acb689907609b', 4),
('0x37e397fc7c91f5e4', 2),
('0x40fe3ad401f8959a', 6),
('0xd2bc9897eed08f15', 3),
('0xf78b278be53f454c', 2),
('0xab3c0572291feb8b', 1),
('0xbc9d89904f5b923f', 1),
('0x37c8bb1350a9a2a8', 4),
('0x63cf1fb7b1dad5a9', 1),
('0xea93e3f16f3d6962', 2),
('0x54bef602b989d121', 1),
('0x02fadd88517cc081', 1),
('0xc451b3fcf34859b4', 1),
('0x24d062f93a859f6f', 1),
('0x4250010199fc50d3', 1),
('0x0304bb19c2df37a2', 2),
],
'authoring_version': 1,
'impl_name': 'frequency',
'impl_version': 0,
'spec_name': 'frequency',
'spec_version': 64,
'state_version': 1,
'transaction_version': 1,
}
Python
constant = substrate.get_constant('System', 'Version')
Errors
CallFiltered
InvalidSpecName
NonDefaultComposite
NonZeroRefCount
SpecVersionNeedsToIncrease