Version
Show / Hide Table of Contents

Policy Class

Provides a series of methods of the native contract Policy, which contract hash is 0xcc5e4edd9f5f8dba8bb65734541df7a1c081c67b .

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class Policy

Attribute

NameDescription
HashThe contract hash

Methods

NameDescription
GetMaxTransactionsPerBlock() Gets max transaction number per block
GetMaxBlockSize() Gets max block size
GetMaxBlockSystemFee() Gets the maximum system fee for the block
GetFeePerByte() Gets fee per byte
IsBlocked(UInt160 account) Verifies whether the account is blocked
BlockAccount(UInt160 account) Sets the blocked accounts
UnblockAccount(UInt160 account) Unblocks accounts