Package org.web3j.abi.datatypes
Class AbiTypes
java.lang.Object
org.web3j.abi.datatypes.AbiTypes
-
Method Summary
Modifier and TypeMethodDescriptionReturns the web3j data type for the given type, without using primitive types.Returns the web3j data type for the given type.static StringgetTypeAString(Class<? extends Type> type) Returns the provided class type as a string.
-
Method Details
-
getType
Returns the web3j data type for the given type, without using primitive types.- Parameters:
type- A Solidity type.- Returns:
- The web3j Java class to represent this Solidity type.
-
getType
Returns the web3j data type for the given type.- Parameters:
type- A Solidity type.primitives- Use Java primitive types to wrap contract parameters.- Returns:
- The web3j Java class to represent this Solidity type.
-
getTypeAString
Returns the provided class type as a string. In case of a struct, it will return the struct name. For the tuple notation of a struct, example ((string,uint256)), think of taking an instance of the struct and calling theinstance.getTypeAsString()method.
-