Version
Show / Hide Table of Contents

Account.IsStandard method (byte[])

Verifies whether the contract is a standard account.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static extern bool IsStandard(byte[] scripthash)

Parameters: The account scripthash

Return value: Boolean, true or false

Example

public class Contract1 : SmartContract
{
    public static void Main()
    {
        byte[] scriptHash = { 36, 23, 241, 177, 228, 54, 109, 223, 27, 237, 139, 54, 207, 38, 132, 101, 172, 3, 10, 73 };
        var isStandard = Account.IsStandard(scriptHash);
    }
}

Back