Package org.web3j.abi

Class TypeEncoder

java.lang.Object
org.web3j.abi.TypeEncoder

public class TypeEncoder extends Object
Ethereum Contract Application Binary Interface (ABI) encoding for types. Further details are available here.
  • Method Details

    • encode

      public static String encode(Type parameter)
    • encodePacked

      public static String encodePacked(Type parameter)
      Returns abi.encodePacked hex value for the supported types. First the value is encoded and after the padding or length, in arrays cases, is removed resulting the packed encode hex value
      Parameters:
      parameter - Value to be encoded
      Returns: