get Context Rules Count
Retrieves the total number of context rules in the smart account.
Queries the smart account contract to determine how many context rules are currently configured.
This is a query operation (read-only, no authorization required). It uses simulation to extract the return value without submitting a transaction.
Return
The number of context rules currently configured
Throws
if simulation fails
if the result is not a U32 value
Example:
val count = contextMgr.getContextRulesCount()
println("Smart account has $count context rules")Content copied to clipboard