public class FunctionReturnDecoder extends java.lang.Object implements FunctionReturnDecoderInterface
| 构造器和说明 |
|---|
FunctionReturnDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<Type> |
decode(java.lang.String rawInput,
java.util.List<TypeReference<Type>> outputParameters)
Decode SCALE encoded return values from smart contract function call.
|
<T extends Type> |
decodeIndexedValue(java.lang.String rawInput,
TypeReference<T> typeReference)
Decodes an indexed parameter associated with an event.
|
public <T extends Type> Type decodeIndexedValue(java.lang.String rawInput, TypeReference<T> typeReference)
If any of the following types are indexed, the Keccak-256 hashes of the values are returned instead. These are returned as a bytes32 value.
See the Solidity documentation for further information.
decodeIndexedValue 在接口中 FunctionReturnDecoderInterfaceT - type of TypeReferencerawInput - ABI encoded inputtypeReference - of expected result typepublic java.util.List<Type> decode(java.lang.String rawInput, java.util.List<TypeReference<Type>> outputParameters)
decode 在接口中 FunctionReturnDecoderInterfacerawInput - SCALE encoded inputoutputParameters - list of return types as TypeReferenceList of values returned by function, Collections.emptyList() if
invalid response