Preimage
Calls
note_preimage
Attributes
Python
call = substrate.compose_call(
'Preimage', 'note_preimage', {'bytes': 'Bytes'}
)
request_preimage
Attributes
Python
call = substrate.compose_call(
'Preimage', 'request_preimage', {'hash': 'scale_info::12'}
)
unnote_preimage
Attributes
Python
call = substrate.compose_call(
'Preimage', 'unnote_preimage', {'hash': 'scale_info::12'}
)
unrequest_preimage
Attributes
Python
call = substrate.compose_call(
'Preimage', 'unrequest_preimage', {'hash': 'scale_info::12'}
)
Events
Cleared
Attributes
Name |
Type |
Composition |
hash |
T::Hash |
scale_info::12 |
Noted
Attributes
Name |
Type |
Composition |
hash |
T::Hash |
scale_info::12 |
Requested
Attributes
Name |
Type |
Composition |
hash |
T::Hash |
scale_info::12 |
Storage functions
PreimageFor
Python
result = substrate.query(
'Preimage', 'PreimageFor', [('scale_info::12', 'u32')]
)
Return value
'Bytes'
StatusFor
Python
result = substrate.query(
'Preimage', 'StatusFor', ['scale_info::12']
)
Return value
{
'Requested': {
'count': 'u32',
'deposit': (None, ('AccountId', 'u128')),
'len': (None, 'u32'),
},
'Unrequested': {'deposit': ('AccountId', 'u128'), 'len': 'u32'},
}
Errors
AlreadyNoted
NotAuthorized
NotNoted
NotRequested
Requested
TooBig