Policy.IsBlocked Method
Verifies if the specified account is blocked.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
#
Syntaxpublic static extern bool IsBlocked(UInt160 account);
Parameter:
- account: the specified account
Return:
- Whether the account is blocked
#
Examplepublic class Contract1 : SmartContract.Framework.SmartContract{ private static readonly UInt160 account = "NXsG3zwpwcfvBiA3bNMx6mWZGEro9ZqTqM".ToScriptHash();
public static object Test() { var isBlocked= Policy.IsBlocked(account); }}