public class DefaultTransactionManager extends TransactionManager
use default jni sign method use default client key pair to sign tx
client| 构造器和说明 |
|---|
DefaultTransactionManager(Client client) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncSendCall(java.lang.String to,
byte[] data,
RespCallback<Call> callback)
Send call asynchronously
|
void |
asyncSendCall(java.lang.String to,
byte[] data,
java.lang.String signature,
RespCallback<Call> callback)
Send call asynchronously with signature of call data
|
java.lang.String |
asyncSendTransaction(AbiEncodedRequest request,
TransactionCallback callback) |
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
|
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
|
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 |
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
|
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
|
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedTransaction(AbiEncodedRequest request) |
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.
|
ContractGasProvider |
getGasProvider() |
NonceAndBlockLimitProvider |
getNonceProvider() |
Call |
sendCall(java.lang.String to,
byte[] data)
Send call
|
Call |
sendCall(java.lang.String to,
byte[] data,
java.lang.String signature)
Send call with signature of call data
|
TransactionReceipt |
sendTransaction(AbiEncodedRequest request) |
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
|
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
|
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,
java.math.BigInteger blockLimit,
java.lang.String abi,
boolean constructor)
Send tx with EIP1559
|
TransactionReceipt |
sendTransactionEIP1559(java.lang.String to,
byte[] data,
java.math.BigInteger value,
EIP1559Struct eip1559Struct,
java.lang.String abi,
boolean constructor)
Send tx with EIP1559
|
void |
setGasProvider(ContractGasProvider gasProvider) |
void |
setNonceProvider(NonceAndBlockLimitProvider nonceProvider) |
asyncSendTransaction, asyncSendTransactionEIP1559, getClient, sendTransaction, sendTransactionEIP1559public DefaultTransactionManager(Client client)
public ContractGasProvider getGasProvider()
getGasProvider 在类中 TransactionManagerpublic void setGasProvider(ContractGasProvider gasProvider)
setGasProvider 在类中 TransactionManagerpublic NonceAndBlockLimitProvider getNonceProvider()
getNonceProvider 在类中 TransactionManagerpublic void setNonceProvider(NonceAndBlockLimitProvider nonceProvider)
setNonceProvider 在类中 TransactionManagerpublic 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
sendTransaction 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valueabi - 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 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
sendTransaction 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasabi - 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 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
sendTransaction 在类中 TransactionManagerto - 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 TransactionReceipt sendTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
sendTransaction 在类中 TransactionManagerorg.fisco.bcos.sdk.jni.common.JniExceptionpublic 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
createSignedTransaction 在类中 TransactionManagerto - 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 org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
createSignedTransaction 在类中 TransactionManagerorg.fisco.bcos.sdk.jni.common.JniExceptionpublic 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
asyncSendTransaction 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valueabi - 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 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
asyncSendTransaction 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valuegasPrice - price of gasgasLimit - use limit of gasabi - 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 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
asyncSendTransaction 在类中 TransactionManagerto - 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 java.lang.String asyncSendTransaction(AbiEncodedRequest request, TransactionCallback callback) throws org.fisco.bcos.sdk.jni.common.JniException
asyncSendTransaction 在类中 TransactionManagerorg.fisco.bcos.sdk.jni.common.JniExceptionpublic 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
sendTransactionEIP1559 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadabi - 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 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
sendTransactionEIP1559 在类中 TransactionManagerto - 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,
java.lang.String abi,
boolean constructor,
TransactionCallback callback)
throws org.fisco.bcos.sdk.jni.common.JniException
asyncSendTransactionEIP1559 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valueeip1559Struct - EIP1559 transaction payloadabi - 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 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
asyncSendTransactionEIP1559 在类中 TransactionManagerto - 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 Call sendCall(java.lang.String to, byte[] data)
sendCall 在类中 TransactionManagerto - to addressdata - input datapublic Call sendCall(java.lang.String to, byte[] data, java.lang.String signature)
sendCall 在类中 TransactionManagerto - to addressdata - input datasignature - signature of call datapublic void asyncSendCall(java.lang.String to,
byte[] data,
RespCallback<Call> callback)
asyncSendCall 在类中 TransactionManagerto - to addressdata - input datacallback - callback functionpublic void asyncSendCall(java.lang.String to,
byte[] data,
java.lang.String signature,
RespCallback<Call> callback)
asyncSendCall 在类中 TransactionManagerto - to addressdata - input datasignature - signature of call datacallback - callback function