public interface TransactionProcessorInterface
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncExecuteCall(CallRequest callRequest,
RespCallback<Call> callback) |
void |
asyncExecuteCall(java.lang.String from,
java.lang.String to,
byte[] encodedFunction,
RespCallback<Call> callback) |
void |
asyncExecuteCallWithSign(java.lang.String from,
java.lang.String to,
byte[] encodedFunction,
RespCallback<Call> callback) |
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createDeploySignedTransaction(java.lang.String to,
byte[] data,
java.lang.String abi,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
create deploy signed transaction
|
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createDeploySignedTransaction(java.lang.String to,
byte[] data,
java.lang.String abi,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
java.lang.String extraData)
create deploy signed transaction
|
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedTransaction(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
create signed transaction
|
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedTransaction(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
java.lang.String extraData)
create signed transaction
|
TransactionReceipt |
deployAndGetReceipt(java.lang.String to,
byte[] data,
java.lang.String abi,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
send deploy transaction to fisco bcos node and get transaction receipt.
|
TransactionReceipt |
deployAndGetReceipt(java.lang.String to,
byte[] data,
java.lang.String abi,
int txAttribute)
send deploy transaction to fisco bcos node and get transaction receipt. this method use
default keyPair
|
Call |
executeCall(CallRequest callRequest)
send call to fisco bcos node and receive call response.
|
Call |
executeCall(java.lang.String from,
java.lang.String to,
byte[] encodedFunction)
send encoded function call to fisco bcos node and receive call response.
|
Call |
executeCallWithSign(java.lang.String from,
java.lang.String to,
byte[] encodedFunction)
send encoded function call to fisco bcos node and receive call response, which contains sign
of to and data
|
Call |
executeCallWithSign(java.lang.String from,
java.lang.String to,
byte[] encodedFunction,
java.lang.String sign) |
TransactionReceipt |
sendTransactionAndGetReceipt(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
send transaction to fisco bcos node and get transaction receipt.
|
TransactionReceipt |
sendTransactionAndGetReceipt(java.lang.String to,
byte[] data,
int txAttribute)
send transaction to fisco bcos node and get transaction receipt. this method use default
keyPair
|
java.lang.String |
sendTransactionAsync(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
TransactionCallback callback)
send transaction to fisco bcos node and get transaction receipt asynchronously.
|
java.lang.String |
sendTransactionAsync(java.lang.String to,
byte[] data,
int txAttribute,
TransactionCallback callback)
send transaction to fisco bcos node and get transaction receipt asynchronously. this method
use default keyPair
|
TransactionReceipt deployAndGetReceipt(java.lang.String to, byte[] data, java.lang.String abi, CryptoKeyPair cryptoKeyPair, int txAttribute) throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction dataabi - ABI json string, deploy into chain with code, can be empty stringcryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorTransactionReceipt deployAndGetReceipt(java.lang.String to, byte[] data, java.lang.String abi, int txAttribute) throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction dataabi - ABI json string, deploy into chain with code, can be empty stringtxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorTransactionReceipt sendTransactionAndGetReceipt(java.lang.String to, byte[] data, CryptoKeyPair cryptoKeyPair, int txAttribute) throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction datacryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorTransactionReceipt sendTransactionAndGetReceipt(java.lang.String to, byte[] data, int txAttribute) throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction datatxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorjava.lang.String sendTransactionAsync(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
TransactionCallback callback)
to - target contract addressdata - ABI encoded transaction datacryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributecallback - define hook functionjava.lang.String sendTransactionAsync(java.lang.String to,
byte[] data,
int txAttribute,
TransactionCallback callback)
to - target contract addressdata - ABI encoded transaction datatxAttribute - transaction attribute, see more in TransactionAttributecallback - define hook functionCall executeCall(CallRequest callRequest)
callRequest - signed transaction stringCall executeCall(java.lang.String from, java.lang.String to, byte[] encodedFunction)
from - outer account address of senderto - target contract addressencodedFunction - signed transaction stringCall executeCallWithSign(java.lang.String from, java.lang.String to, byte[] encodedFunction)
from - outer account address of senderto - target contract addressencodedFunction - signed transaction stringCall executeCallWithSign(java.lang.String from, java.lang.String to, byte[] encodedFunction, java.lang.String sign)
void asyncExecuteCall(CallRequest callRequest, RespCallback<Call> callback)
void asyncExecuteCall(java.lang.String from,
java.lang.String to,
byte[] encodedFunction,
RespCallback<Call> callback)
void asyncExecuteCallWithSign(java.lang.String from,
java.lang.String to,
byte[] encodedFunction,
RespCallback<Call> callback)
org.fisco.bcos.sdk.jni.utilities.tx.TxPair createDeploySignedTransaction(java.lang.String to,
byte[] data,
java.lang.String abi,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction dataabi - ABIcryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errororg.fisco.bcos.sdk.jni.utilities.tx.TxPair createDeploySignedTransaction(java.lang.String to,
byte[] data,
java.lang.String abi,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
java.lang.String extraData)
throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction dataabi - ABIcryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeextraData - org.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errororg.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedTransaction(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute)
throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction datacryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeorg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errororg.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedTransaction(java.lang.String to,
byte[] data,
CryptoKeyPair cryptoKeyPair,
int txAttribute,
java.lang.String extraData)
throws org.fisco.bcos.sdk.jni.common.JniException
to - target contract addressdata - ABI encoded transaction datacryptoKeyPair - key pairtxAttribute - transaction attribute, see more in TransactionAttributeextraData - org.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction error