public class JsonTransactionResponse
extends java.lang.Object
| 构造器和说明 |
|---|
JsonTransactionResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
calculateHash(CryptoSuite cryptoSuite)
Calculate the hash for the transaction, only correct when blockchain node version < 3.3.0,
|
java.lang.String |
calculateHash(int cryptoSuiteType)
Calculate the hash for the transaction, only correct when blockchain node version >= 3.3.0,
|
java.lang.String |
calculateTxHashInNative(Hash hashImpl)
Calculate the hash for the transaction in java native, only correct when blockchain node
version >= 3.3.0, because the nonce output is changed in 3.3.0, you can calculateHex the
nonce to string
|
static JsonTransactionResponse |
decodeTransaction(java.lang.String hexString) |
byte[] |
encodeTransactionData()
Encode the transaction data to byte array, witch is used to calculate the hash of the
transaction
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAbi() |
long |
getBlockLimit() |
java.lang.String |
getChainID() |
byte[] |
getExtension() |
java.lang.String |
getExtraData() |
java.lang.String |
getFrom() |
long |
getGasLimit() |
java.lang.String |
getGasPrice() |
java.lang.String |
getGroupID() |
java.lang.String |
getHash() |
long |
getImportTime() |
java.lang.String |
getInput() |
java.lang.String |
getMaxFeePerGas() |
java.lang.String |
getMaxPriorityFeePerGas() |
java.lang.String |
getNonce() |
java.lang.String |
getSignature() |
java.lang.String |
getTo() |
java.util.List<MerkleProofUnit> |
getTransactionProof()
已过时。
|
java.util.List<java.lang.String> |
getTxProof() |
java.lang.String |
getValue() |
java.lang.Integer |
getVersion() |
int |
hashCode() |
static JsonTransactionResponse |
readFromHexString(java.lang.String hexString)
已过时。
this method is deprecated, use
decodeTransaction(String) instead |
void |
setAbi(java.lang.String abi) |
void |
setBlockLimit(long blockLimit) |
void |
setChainID(java.lang.String chainId) |
void |
setExtension(byte[] extension) |
void |
setExtraData(java.lang.String extraData) |
void |
setFrom(java.lang.String from) |
void |
setGasLimit(long gasLimit) |
void |
setGasPrice(java.lang.String gasPrice) |
void |
setGroupID(java.lang.String groupID) |
void |
setHash(java.lang.String hash) |
void |
setImportTime(long importTime) |
void |
setInput(java.lang.String input) |
void |
setMaxFeePerGas(java.lang.String maxFeePerGas) |
void |
setMaxPriorityFeePerGas(java.lang.String maxPriorityFeePerGas) |
void |
setNonce(java.lang.String nonce) |
void |
setSignature(java.lang.String signature) |
void |
setTo(java.lang.String to) |
void |
setTransactionProof(java.util.List<MerkleProofUnit> transactionProof)
已过时。
|
void |
setTxProof(java.util.List<java.lang.String> txProof) |
void |
setValue(java.lang.String value) |
void |
setVersion(java.lang.Integer version) |
java.lang.String |
toString() |
java.lang.String |
writeToHexString()
已过时。
this method is deprecated, use
encodeTransactionData() instead |
public java.lang.String getAbi()
public void setAbi(java.lang.String abi)
@Deprecated public java.util.List<MerkleProofUnit> getTransactionProof()
@Deprecated public void setTransactionProof(java.util.List<MerkleProofUnit> transactionProof)
public java.util.List<java.lang.String> getTxProof()
public void setTxProof(java.util.List<java.lang.String> txProof)
public java.lang.Integer getVersion()
public void setVersion(java.lang.Integer version)
public java.lang.String getFrom()
public void setFrom(java.lang.String from)
public java.lang.String getHash()
public void setHash(java.lang.String hash)
public java.lang.String getInput()
public void setInput(java.lang.String input)
public java.lang.String getNonce()
public void setNonce(java.lang.String nonce)
public java.lang.String getTo()
public void setTo(java.lang.String to)
public long getBlockLimit()
public void setBlockLimit(long blockLimit)
public java.lang.String getChainID()
public void setChainID(java.lang.String chainId)
public java.lang.String getGroupID()
public void setGroupID(java.lang.String groupID)
public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
public java.lang.String getExtraData()
public void setExtraData(java.lang.String extraData)
public long getImportTime()
public void setImportTime(long importTime)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getGasPrice()
public void setGasPrice(java.lang.String gasPrice)
public long getGasLimit()
public void setGasLimit(long gasLimit)
public java.lang.String getMaxFeePerGas()
public void setMaxFeePerGas(java.lang.String maxFeePerGas)
public java.lang.String getMaxPriorityFeePerGas()
public void setMaxPriorityFeePerGas(java.lang.String maxPriorityFeePerGas)
public byte[] getExtension()
public void setExtension(byte[] extension)
@Deprecated public static JsonTransactionResponse readFromHexString(java.lang.String hexString) throws org.fisco.bcos.sdk.jni.common.JniException, java.io.IOException
decodeTransaction(String) insteadwriteToHexString(), which
not enable to send transaction to blockchain.hexString - the hex stringorg.fisco.bcos.sdk.jni.common.JniException - the jni exceptionjava.io.IOException - the io exception@Deprecated
public java.lang.String writeToHexString()
throws com.fasterxml.jackson.core.JsonProcessingException,
org.fisco.bcos.sdk.jni.common.JniException
encodeTransactionData() insteadcom.fasterxml.jackson.core.JsonProcessingException - the json processing exceptionorg.fisco.bcos.sdk.jni.common.JniException - the jni exceptionpublic java.lang.String calculateHash(CryptoSuite cryptoSuite) throws ClientException
cryptoSuite - the crypto suiteClientException - exception when calculateHash() throws ClientExceptionpublic java.lang.String calculateHash(int cryptoSuiteType)
throws ClientException
cryptoSuiteType - the crypto suite type, use for distinguish hash impl, 0 for Keccak256,
1ClientException - exception when calculateHash() throws ClientExceptionpublic java.lang.String calculateTxHashInNative(Hash hashImpl) throws java.io.IOException
hashImpl - the hash implementationjava.io.IOException - exception when encodeTransactionData() throws IOExceptionpublic byte[] encodeTransactionData()
throws java.io.IOException
java.io.IOException - exception when ByteArrayOutputStream throws IOExceptionpublic static JsonTransactionResponse decodeTransaction(java.lang.String hexString) throws org.fisco.bcos.sdk.jni.common.JniException
org.fisco.bcos.sdk.jni.common.JniExceptionpublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object