public abstract class TransactionManager
extends java.lang.Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
TransactionManager(Client client) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
asyncSendCall(java.lang.String to,
byte[] data,
RespCallback<Call> callback)
Send call asynchronously
|
abstract void |
asyncSendCall(java.lang.String to,
byte[] data,
java.lang.String signature,
RespCallback<Call> callback)
Send call asynchronously with signature of call data
|
abstract java.lang.String |
asyncSendTransaction(AbiEncodedRequest request,
TransactionCallback callback)
This method is used to send transaction asynchronously.
|
abstract java.lang.String |
asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
Send tx with gasPrice and gasLimit fields asynchronously
|
abstract java.lang.String |
asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
Send tx with gasPrice and gasLimit fields asynchronously
|
abstract java.lang.String |
asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
Send tx with abi field asynchronously
|
java.lang.String |
asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
TransactionCallback callback)
Simple send tx asynchronously
|
abstract java.lang.String |
asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
Send tx with EIP1559 asynchronously
|
abstract java.lang.String |
asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
Send tx with EIP1559 asynchronously
|
java.lang.String |
asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
TransactionCallback callback)
Send tx with EIP1559 asynchronously
|
abstract org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedTransaction(AbiEncodedRequest request)
This method is used to create a signed transaction.
|
abstract java.lang.String |
createSignedTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor)
This method is used to create a signed transaction.
|
Client |
getClient() |
abstract ContractGasProvider |
getGasProvider() |
abstract NonceAndBlockLimitProvider |
getNonceProvider() |
abstract Call |
sendCall(java.lang.String to,
byte[] data)
Send call
|
abstract Call |
sendCall(java.lang.String to,
byte[] data,
java.lang.String signature)
Send call with signature of call data
|
abstract TransactionReceipt |
sendTransaction(AbiEncodedRequest request)
This method is used to send transaction.
|
TransactionReceipt |
sendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value)
Simple send tx
|
abstract TransactionReceipt |
sendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor)
Send tx with gasPrice and gasLimit fields
|
abstract TransactionReceipt |
sendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String abi,
boolean constructor)
Send tx with gasPrice and gasLimit fields
|
abstract TransactionReceipt |
sendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.lang.String abi,
boolean constructor)
Send tx with abi field
|
TransactionReceipt |
sendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct)
Send tx with EIP1559
|
abstract TransactionReceipt |
sendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor)
Send tx with EIP1559
|
abstract TransactionReceipt |
sendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.lang.String abi,
boolean constructor)
Send tx with EIP1559
|
abstract void |
setGasProvider(ContractGasProvider gasProvider) |
abstract void |
setNonceProvider(NonceAndBlockLimitProvider nonceProvider) |
protected final Client client
protected final org.slf4j.Logger logger
protected TransactionManager(Client client)
public Client getClient()
public abstract ContractGasProvider getGasProvider()
public abstract void setGasProvider(ContractGasProvider gasProvider)
public abstract NonceAndBlockLimitProvider getNonceProvider()
public abstract void setNonceProvider(NonceAndBlockLimitProvider nonceProvider)
public abstract TransactionReceipt sendTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
request - An instance of AbiEncodedRequest which contains the necessary information to
create a transaction: if it is a contract creation, request should setCreate(true), and
the abi field should be set; if it is EIP1559 transaction, request should set
EIP1559Struct.org.fisco.bcos.sdk.jni.common.JniException - If there is an error during the JNI operation.public abstract java.lang.String asyncSendTransaction(AbiEncodedRequest request, TransactionCallback callback) throws org.fisco.bcos.sdk.jni.common.JniException
request - An instance of AbiEncodedRequest which contains the necessary information to
create a transaction: if it is a contract creation, request should setCreate(true), and
the abi field should be set; if it is EIP1559 transaction, request should set
EIP1559Struct.callback - callback when transaction receipt is returnedorg.fisco.bcos.sdk.jni.common.JniException - If there is an error during the JNI operation.public abstract org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
request - An instance of AbiEncodedRequest which contains the necessary information to
create a transaction: if it is a contract creation, request should setCreate(true), and
the abi field should be set; if it is EIP1559 transaction, request should set
EIP1559Struct.org.fisco.bcos.sdk.jni.common.JniException - If there is an error during the JNI operation.public TransactionReceipt sendTransaction(java.lang.String to, byte[] data, java.math.BigInteger value) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract TransactionReceipt sendTransaction(java.lang.String to, byte[] data, java.math.BigInteger value, java.lang.String abi, boolean constructor) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valueconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract TransactionReceipt sendTransaction(java.lang.String to, byte[] data, java.math.BigInteger value, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String abi, boolean constructor) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract TransactionReceipt sendTransaction(java.lang.String to, byte[] data, java.math.BigInteger value, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.math.BigInteger blockLimit, java.lang.String abi, boolean constructor) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasblockLimit - block limitabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String createSignedTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor)
throws org.fisco.bcos.sdk.jni.common.JniException
to - The destination address for the transaction.data - The data to be sent with the transaction.value - The value to be transferred with the transaction.gasPrice - The price of gas for the transaction.gasLimit - The maximum amount of gas that can be used for the transaction.blockLimit - The maximum block number that can be used for the transaction, if
blockLimit is zero, then get client blockLimitabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractconstructor - If you deploy contract, should set to be true.org.fisco.bcos.sdk.jni.common.JniExceptionpublic java.lang.String asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valueconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasblockLimit - block limitabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractconstructor - if you deploy contract, should set to be truecallback - callback functionorg.fisco.bcos.sdk.jni.common.JniExceptionpublic TransactionReceipt sendTransactionEIP1559(java.lang.String to, byte[] data, java.math.BigInteger value, EIP1559Struct eip1559Struct) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract TransactionReceipt sendTransactionEIP1559(java.lang.String to, byte[] data, java.math.BigInteger value, EIP1559Struct eip1559Struct, java.lang.String abi, boolean constructor) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valueeip1559Struct - EIP1559 transaction payloadconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract TransactionReceipt sendTransactionEIP1559(java.lang.String to, byte[] data, java.math.BigInteger value, EIP1559Struct eip1559Struct, java.math.BigInteger blockLimit, java.lang.String abi, boolean constructor) throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadblockLimit - block limitabi - ABI JSON string, generated by compile contract, should fill in when you deployconstructor - if you deploy contract, should set to be trueorg.fisco.bcos.sdk.jni.common.JniExceptionpublic java.lang.String asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadcallback - callback functionorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input dataabi - ABI JSON string, generated by compile contract, should fill in when you deploy
contractvalue - transfer valueeip1559Struct - EIP1559 transaction payloadconstructor - if you deploy contract, should set to be truecallback - callback functionorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract java.lang.String asyncSendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
to - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadblockLimit - block limitabi - ABI JSON string, generated by compile contract, should fill in when you deployconstructor - if you deploy contract, should set to be truecallback - callback functionorg.fisco.bcos.sdk.jni.common.JniExceptionpublic abstract Call sendCall(java.lang.String to, byte[] data)
to - to addressdata - input datapublic abstract Call sendCall(java.lang.String to, byte[] data, java.lang.String signature)
to - to addressdata - input datasignature - signature of call datapublic abstract void asyncSendCall(java.lang.String to,
byte[] data,
RespCallback<Call> callback)
to - to addressdata - input datacallback - callback functionpublic abstract void asyncSendCall(java.lang.String to,
byte[] data,
java.lang.String signature,
RespCallback<Call> callback)
to - to addressdata - input datasignature - signature of call datacallback - callback function