public class EVMOutput extends VMOutput
example :
returns ( string, uint )
String output = transactionReceipt.getOutput() EVMOutput returnValues = new EVMOutput(output);
// get first return string String str = returnValues.getString();
// get second return uint BigInteger uint = returnValues.getUint();
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
evmRevertDecoder(byte[] input) |
boolean |
getBoolean()
solidity Bool
|
List<Boolean> |
getBooleanDynamicArray() |
byte[] |
getBytes()
solidity dynamic bytes
|
byte[] |
getBytes32()
get solidity bytes32
|
List<byte[]> |
getBytes32DynamicArray() |
List<byte[]> |
getBytesDynamicArray() |
byte[] |
getBytesN(int n)
已过时。
|
Hash |
getIdentity()
solidity extension Identity.
|
List<Hash> |
getIdentityDynamicArray() |
BigInteger |
getInt()
solidity Int
|
List<BigInteger> |
getIntDynamicArray() |
Object |
getObject(String cls) |
String |
getRawOutput()
Getter method for property rawOutput.
|
String |
getString()
solidity string(utf-8)
|
BigInteger |
getUint()
solidity Uint
|
List<BigInteger> |
getUintDynamicArray() |
void |
setRawOutput(String rawOutput)
Setter method for property rawOutput.
|
public EVMOutput()
public EVMOutput(String rawOutput)
public BigInteger getInt()
public BigInteger getUint()
public boolean getBoolean()
public Hash getIdentity()
public String getString()
public byte[] getBytes()
public byte[] getBytes32()
@Deprecated public byte[] getBytesN(int n)
N must be bytes32
n - public List<byte[]> getBytes32DynamicArray()
public List<byte[]> getBytesDynamicArray()
public List<BigInteger> getIntDynamicArray()
public List<BigInteger> getUintDynamicArray()
public static String evmRevertDecoder(byte[] input)
public String getRawOutput()
public void setRawOutput(String rawOutput)
setRawOutput 在类中 VMOutputrawOutput - value to be assigned to property rawOutputCopyright © 2022. All rights reserved.