Blocks an account from transacting on the networkNamespace
api.tx.maintenanceMode.blockAccount
Type
function blockAccount( account: SeedPrimitivesSignatureAccountId20, blocked: bool)
blockCall
Blocks a call from being executed pallet_name: The name of the pallet as per the runtime file. i.e. FeeProxy call_name: The snake_case name for the call. i.e. set_fee Both pallet and call names are not case sensitiveNamespace
api.tx.maintenanceMode.blockCall
Type
function blockCall( pallet_name: Bytes, call_name: Bytes, blocked: bool)
blockEvmTarget
Blocks an account from transacting on the network Can be used to block individual precompile addresses or contractsNamespace
api.tx.maintenanceMode.blockEvmTarget
Type
function blockEvmTarget( target_address: H160, blocked: bool)
blockPallet
Blocks an entire pallets calls from being executed pallet_name: The name of the pallet as per the runtime file. i.e. FeeProxy Pallet names are not case sensitiveNamespace
api.tx.maintenanceMode.blockPallet
Type
function blockPallet( pallet_name: Bytes, blocked: bool)
enableMaintenanceMode
Enable maintenance mode which prevents all non sudo callsNamespace
api.tx.maintenanceMode.enableMaintenanceMode
Type
function enableMaintenanceMode( enabled: bool)
Storage
blockedAccounts
Map from account to blocked statusNamespace
api.query.maintenanceMode.blockedAccounts
Type
function blockedAccounts( SeedPrimitivesSignatureAccountId20): bool
blockedCalls
Map from call to blocked status map (PalletNameBytes, FunctionNameBytes) => boolNamespace
api.query.maintenanceMode.blockedCalls
Type
function blockedCalls( (Bytes,Bytes)): bool
blockedEVMAddresses
Map from EVM target address to blocked statusNamespace
api.query.maintenanceMode.blockedEVMAddresses
Type
function blockedEVMAddresses( H160): bool
blockedPallets
Map from pallet to blocked status map PalletNameBytes => boolNamespace
api.query.maintenanceMode.blockedPallets
Type
function blockedPallets( Bytes): bool
maintenanceModeActive
Determines whether maintenance mode is currently activeNamespace
api.query.maintenanceMode.maintenanceModeActive
Type
function maintenanceModeActive(): bool
Events
AccountBlocked
An account was blockedNamespace
api.events.maintenanceMode.AccountBlocked
Type
type AccountBlocked = { account: SeedPrimitivesSignatureAccountId20, blocked: bool}
CallBlocked
An account was blockedNamespace
api.events.maintenanceMode.CallBlocked
Type
type CallBlocked = { pallet_name: Bytes, call_name: Bytes, blocked: bool}
EVMTargetBlocked
An account was blockedNamespace
api.events.maintenanceMode.EVMTargetBlocked
Type
type EVMTargetBlocked = { target_address: H160, blocked: bool}