public class ProxySignTransactionManager extends TransactionManager
client| 构造器和说明 |
|---|
ProxySignTransactionManager(Client client) |
ProxySignTransactionManager(Client client,
AsyncTransactionSignercInterface asyncTxSigner) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
This method is used to send transaction asynchronously.
|
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 |
asyncSendTransaction(java.lang.String to,
byte[] data,
java.math.BigInteger value,
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)
This method is used to create a signed transaction.
|
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)
This method is used to send transaction.
|
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 |
setAsyncTransactionSigner(AsyncTransactionSignercInterface asyncTxSigner) |
void |
setGasProvider(ContractGasProvider gasProvider) |
void |
setNonceProvider(NonceAndBlockLimitProvider nonceProvider) |
asyncSendTransactionEIP1559, getClient, sendTransaction, sendTransactionEIP1559public ProxySignTransactionManager(Client client)
public ProxySignTransactionManager(Client client, AsyncTransactionSignercInterface asyncTxSigner)
public ContractGasProvider getGasProvider()
getGasProvider 在类中 TransactionManagerpublic void setGasProvider(ContractGasProvider gasProvider)
setGasProvider 在类中 TransactionManagerpublic NonceAndBlockLimitProvider getNonceProvider()
getNonceProvider 在类中 TransactionManagerpublic void setNonceProvider(NonceAndBlockLimitProvider nonceProvider)
setNonceProvider 在类中 TransactionManagerpublic void setAsyncTransactionSigner(AsyncTransactionSignercInterface asyncTxSigner)
public TransactionReceipt sendTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
sendTransaction 在类中 TransactionManagerrequest - 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 java.lang.String asyncSendTransaction(AbiEncodedRequest request, TransactionCallback callback) throws org.fisco.bcos.sdk.jni.common.JniException
asyncSendTransaction 在类中 TransactionManagerrequest - 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 org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedTransaction(AbiEncodedRequest request) throws org.fisco.bcos.sdk.jni.common.JniException
createSignedTransaction 在类中 TransactionManagerrequest - 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, 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 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 trueorg.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
asyncSendTransaction 在类中 TransactionManagerto - to addressdata - input datavalue - transfer valuecallback - callback functionorg.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 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