Version
Show / Hide Table of Contents

Policy Class

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

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