policy

class Policy

Bases: object

A class used to represent the Policy native contract

hash: boa3.builtin.type.UInt160
classmethod get_fee_per_byte()int

Gets the network fee per transaction byte.

Returns

the network fee per transaction byte

Return type

int

classmethod get_exec_fee_factor()int

Gets the execution fee factor. This is a multiplier that can be adjusted by the committee to adjust the system fees for transactions.

Returns

the execution fee factor

Return type

int

classmethod get_storage_price()int

Gets the storage price.

Returns

the snapshot used to read data

Return type

int

classmethod is_blocked(account: boa3.builtin.type.UInt160)bool

Determines whether the specified account is blocked.

Parameters

account (UInt160) – the account to be checked

Returns

whether the account is blocked or not

Return type

bool