Class TransactionProcessor
java.lang.Object
org.fisco.bcos.sdk.transaction.manager.TransactionProcessor
- All Implemented Interfaces:
TransactionProcessorInterface
- Direct Known Subclasses:
AssembleTransactionProcessor
public class TransactionProcessor extends java.lang.Object implements TransactionProcessorInterface
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringchainIdprotected Clientclientprotected CryptoKeyPaircryptoKeyPairprotected CryptoSuitecryptoSuiteprotected java.lang.IntegergroupIdprotected static org.slf4j.Loggerlogprotected TransactionBuilderInterfacetransactionBuilderprotected TransactionEncoderInterfacetransactionEncoder -
Constructor Summary
Constructors Constructor Description TransactionProcessor(Client client, CryptoKeyPair cryptoKeyPair, java.lang.Integer groupId, java.lang.String chainId) -
Method Summary
Modifier and Type Method Description java.lang.StringcreateSignedTransaction(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair)CallexecuteCall(java.lang.String from, java.lang.String to, java.lang.String encodedFunction)CallexecuteCall(CallRequest callRequest)TransactionReceiptsendTransactionAndGetReceipt(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair)voidsendTransactionAsync(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair, TransactionCallback callback)
-
Field Details
-
log
protected static org.slf4j.Logger log -
cryptoSuite
-
cryptoKeyPair
-
client
-
groupId
protected final java.lang.Integer groupId -
chainId
protected final java.lang.String chainId -
transactionBuilder
-
transactionEncoder
-
-
Constructor Details
-
TransactionProcessor
public TransactionProcessor(Client client, CryptoKeyPair cryptoKeyPair, java.lang.Integer groupId, java.lang.String chainId)
-
-
Method Details
-
sendTransactionAndGetReceipt
public TransactionReceipt sendTransactionAndGetReceipt(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair)- Specified by:
sendTransactionAndGetReceiptin interfaceTransactionProcessorInterface
-
sendTransactionAsync
public void sendTransactionAsync(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair, TransactionCallback callback)- Specified by:
sendTransactionAsyncin interfaceTransactionProcessorInterface
-
executeCall
- Specified by:
executeCallin interfaceTransactionProcessorInterface
-
executeCall
public Call executeCall(java.lang.String from, java.lang.String to, java.lang.String encodedFunction)- Specified by:
executeCallin interfaceTransactionProcessorInterface
-
createSignedTransaction
public java.lang.String createSignedTransaction(java.lang.String to, java.lang.String data, CryptoKeyPair cryptoKeyPair)- Specified by:
createSignedTransactionin interfaceTransactionProcessorInterface
-