MethodProp.INTERNAL

This property will filter for functions that are exposed in a smart contract and marked with an access level of internal.

Functions declared with internal access are callable only from functions inside of the smart contract and all child contracts. In solidity a function that has access set as internal will have a similar signature to this one:

function myFunction(uint256 investAmount) internal {}

An example of a query that would filter for functions that are marked as internal is:

from glider import *
def query():
  props_included = [MethodProp.INTERNAL]
  functions = Functions()\
      .with_all_properties(props_included)\
      .exec(5)

  return functions

Output

Last updated