public class AssembleTransactionProcessor extends TransactionProcessor implements AssembleTransactionProcessorInterface
| 限定符和类型 | 字段和说明 |
|---|---|
protected ContractCodec |
contractCodec |
protected ContractLoader |
contractLoader |
protected static org.slf4j.Logger |
log |
protected TransactionDecoderInterface |
transactionDecoder |
protected TransactionPusherInterface |
transactionPusher |
chainId, client, cryptoKeyPair, cryptoSuite, groupId, transactionEncoder| 构造器和说明 |
|---|
AssembleTransactionProcessor(Client client,
CryptoKeyPair cryptoKeyPair,
java.lang.String groupId,
java.lang.String chainId,
ContractLoader contractLoader) |
AssembleTransactionProcessor(Client client,
CryptoKeyPair cryptoKeyPair,
java.lang.String groupId,
java.lang.String chainId,
java.lang.String contractName,
java.lang.String abi,
java.lang.String bin) |
| 限定符和类型 | 方法和说明 |
|---|---|
CallResponse |
callAndGetResponse(java.lang.String from,
java.lang.String to,
ABIDefinition abiDefinition,
byte[] data) |
CallResponse |
callAndGetResponse(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
byte[] data) |
void |
callAndGetResponseAsync(java.lang.String from,
java.lang.String to,
ABIDefinition abiDefinition,
byte[] data,
RespCallback<CallResponse> callback) |
CallResponse |
callWithSignAndGetResponse(java.lang.String from,
java.lang.String to,
ABIDefinition abiDefinition,
byte[] data) |
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedConstructor(java.lang.String abi,
byte[] data,
java.lang.String path,
CryptoKeyPair keyPair) |
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
create signed constructor.
|
org.fisco.bcos.sdk.jni.utilities.tx.TxPair |
createSignedConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair)
create signed constructor, use specific keyPair
|
TransactionReceipt |
deployAndGetReceipt(byte[] data)
deploy contract to fisco bcos node and get transaction receipt.
|
TransactionReceipt |
deployAndGetReceipt(byte[] data,
java.lang.String abi,
java.lang.String path)
deploy contract to fisco bcos node and get transaction receipt.
|
TransactionReceipt |
deployAndGetReceipt(byte[] data,
java.lang.String abi,
java.lang.String path,
CryptoKeyPair cryptoKeyPair) |
TransactionResponse |
deployAndGetResponse(java.lang.String abi,
java.lang.String signedData)
deploy contract to fisco bcos node and get response.
|
TransactionResponse |
deployAndGetResponse(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
deploy contract to fisco bcos node and get response.
|
TransactionResponse |
deployAndGetResponse(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
deploy contract to fisco bcos node and get response.
|
TransactionResponse |
deployAndGetResponse(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair) |
TransactionResponse |
deployAndGetResponseWithStringParams(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.String> params,
java.lang.String path)
deploy contract to fisco bcos node and get response.
|
TransactionResponse |
deployAndGetResponseWithStringParams(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.String> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair) |
java.util.concurrent.CompletableFuture<TransactionReceipt> |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
deploy contract to fisco bcos node asynchronously.
|
java.util.concurrent.CompletableFuture<TransactionReceipt> |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
deploy contract to fisco bcos node asynchronously.
|
java.util.concurrent.CompletableFuture<TransactionReceipt> |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair) |
java.lang.String |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair,
TransactionCallback callback) |
java.lang.String |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
TransactionCallback callback)
deploy contract to fisco bcos node asynchronously.
|
java.lang.String |
deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
TransactionCallback callback)
deploy contract to fisco bcos node asynchronously.
|
TransactionResponse |
deployByContractLoader(java.lang.String contractName,
java.util.List<java.lang.Object> args)
Deploy by bin and abi files.
|
TransactionResponse |
deployByContractLoader(java.lang.String contractName,
java.util.List<java.lang.Object> args,
java.lang.String path)
Deploy by bin and abi files.
|
void |
deployByContractLoaderAsync(java.lang.String contractName,
java.util.List<java.lang.Object> args,
java.lang.String path,
TransactionCallback callback)
deploy contract to fisco bcos node and get response by contract name asynchronously.
|
void |
deployByContractLoaderAsync(java.lang.String contractName,
java.util.List<java.lang.Object> args,
TransactionCallback callback)
deploy contract to fisco bcos node and get response by contract name asynchronously.
|
java.lang.String |
deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
deploy contract to fisco bcos node only without receive any response.
|
java.lang.String |
deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
deploy contract in exact BFS path to fisco bcos node only without receive any response.
|
java.lang.String |
deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair) |
byte[] |
encodeFunction(java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
encode function with abi and parameters.
|
CallResponse |
getCallResponse(Call call,
ABIDefinition abiDefinition) |
ContractLoader |
getContractLoader() |
long |
getRawTransaction(java.math.BigInteger blockLimit,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
get raw transaction exclude constructor.
|
long |
getRawTransaction(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
get raw transaction exclude constructor.
|
long |
getRawTransactionForConstructor(java.math.BigInteger blockLimit,
java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
get constructor raw transaction.
|
long |
getRawTransactionForConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
get constructor raw transaction.
|
CallResponse |
sendCall(CallRequest callRequest)
send call to fisco bcos node and get call response
|
CallResponse |
sendCall(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> paramsList)
send call to fisco bcos node and get call response
|
void |
sendCallAsync(CallRequest callRequest,
RespCallback<CallResponse> callback) |
void |
sendCallAsync(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params,
RespCallback<CallResponse> callback) |
CallResponse |
sendCallByContractLoader(java.lang.String contractName,
java.lang.String contractAddress,
java.lang.String functionName,
java.util.List<java.lang.Object> args)
send call to fisco bcos node and get call response by contract name.
|
CallResponse |
sendCallWithSign(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
send call to fisco bcos node and get call response, which contains sign of call data
|
CallResponse |
sendCallWithSignWithStringParams(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.String> params)
send call to fisco bcos node and get call response
|
CallResponse |
sendCallWithStringParams(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.String> paramsList)
send call to fisco bcos node and get call response
|
void |
sendCallWithStringParamsAsync(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.String> params,
RespCallback<CallResponse> callback) |
TransactionReceipt |
sendTransactionAndGetReceiptByContractLoader(java.lang.String contractName,
java.lang.String contractAddress,
java.lang.String functionName,
java.util.List<java.lang.Object> args)
send transaction to fisco bcos node and get transaction receipt by contract name.
|
void |
sendTransactionAndGetReceiptByContractLoaderAsync(java.lang.String contractName,
java.lang.String contractAddress,
java.lang.String functionName,
java.util.List<java.lang.Object> args,
TransactionCallback callback)
send transaction to fisco bcos node by contract name asynchronously.
|
TransactionResponse |
sendTransactionAndGetResponse(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
byte[] data)
send transaction to fisco bcos node and get response.
|
TransactionResponse |
sendTransactionAndGetResponse(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
byte[] data,
CryptoKeyPair cryptoKeyPair) |
TransactionResponse |
sendTransactionAndGetResponse(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
send transaction to fisco bcos node and get response.
|
TransactionResponse |
sendTransactionAndGetResponseByContractLoader(java.lang.String contractName,
java.lang.String contractAddress,
java.lang.String functionName,
java.util.List<java.lang.Object> funcParams)
send transaction to fisco bcos node and get transaction response by contract name.
|
java.util.concurrent.CompletableFuture<TransactionReceipt> |
sendTransactionAsync(java.lang.String signedData)
send transaction to fisco bcos node asynchronously.
|
void |
sendTransactionAsync(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params,
TransactionCallback callback)
send transaction to fisco bcos node by contract name asynchronously.
|
void |
sendTransactionAsync(java.lang.String signedTransaction,
TransactionCallback callback)
send transaction to fisco bcos node asynchronously.
|
void |
sendTransactionOnly(java.lang.String signedData)
send transaction only.
|
TransactionResponse |
sendTransactionWithStringParamsAndGetResponse(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.String> params)
send transaction to fisco bcos node and get response.
|
asyncExecuteCall, asyncExecuteCall, asyncExecuteCallWithSign, createDeploySignedTransaction, createDeploySignedTransaction, createSignedTransaction, createSignedTransaction, deployAndGetReceipt, deployAndGetReceipt, executeCall, executeCall, executeCallWithSign, executeCallWithSign, getCryptoKeyPair, sendTransactionAndGetReceipt, sendTransactionAndGetReceipt, sendTransactionAsync, sendTransactionAsync, setCryptoKeyPairprotected static org.slf4j.Logger log
protected final TransactionDecoderInterface transactionDecoder
protected final TransactionPusherInterface transactionPusher
protected final ContractCodec contractCodec
protected ContractLoader contractLoader
public AssembleTransactionProcessor(Client client, CryptoKeyPair cryptoKeyPair, java.lang.String groupId, java.lang.String chainId, ContractLoader contractLoader)
public AssembleTransactionProcessor(Client client, CryptoKeyPair cryptoKeyPair, java.lang.String groupId, java.lang.String chainId, java.lang.String contractName, java.lang.String abi, java.lang.String bin)
public java.lang.String deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
throws ContractCodecException
AssembleTransactionProcessorInterfacedeployOnly 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - this param only enable in wasm, the BFS path, which the contract be deployed in
exactly pathContractCodecException - throw when encode deploy errorpublic java.lang.String deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
throws ContractCodecException
AssembleTransactionProcessorInterfacedeployOnly 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parametersContractCodecException - throw when encode deploy errorpublic java.lang.String deployOnly(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair)
throws ContractCodecException
public TransactionReceipt deployAndGetReceipt(byte[] data, java.lang.String abi, java.lang.String path)
AssembleTransactionProcessorInterfacedeployAndGetReceipt 在接口中 AssembleTransactionProcessorInterfacedata - encoded transaction dataabi - contract abi stringpath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmpublic TransactionReceipt deployAndGetReceipt(byte[] data)
AssembleTransactionProcessorInterfacedeployAndGetReceipt 在接口中 AssembleTransactionProcessorInterfacedata - encoded transaction datapublic TransactionReceipt deployAndGetReceipt(byte[] data, java.lang.String abi, java.lang.String path, CryptoKeyPair cryptoKeyPair)
public TransactionResponse deployAndGetResponse(java.lang.String abi, java.lang.String signedData)
AssembleTransactionProcessorInterfacedeployAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.signedData - signed and encoded constructor datapublic TransactionResponse deployAndGetResponse(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params, java.lang.String path) throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - this param only enable in wasm, the BFS path, which the contract be deployed in
exactly pathContractCodecException - throw when encode deploy errorpublic TransactionResponse deployAndGetResponse(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params, java.lang.String path, CryptoKeyPair cryptoKeyPair) throws ContractCodecException
public TransactionResponse deployAndGetResponse(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params) throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parametersContractCodecException - throw when encode deploy errorpublic TransactionResponse deployAndGetResponseWithStringParams(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.String> params, java.lang.String path) throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAndGetResponseWithStringParams 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct string parameterspath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmContractCodecException - throw when encode deploy errorpublic TransactionResponse deployAndGetResponseWithStringParams(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.String> params, java.lang.String path, CryptoKeyPair cryptoKeyPair) throws ContractCodecException
public java.lang.String deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
TransactionCallback callback)
throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAsync 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterscallback - transaction with callback functionContractCodecException - throw when encode deploy errorpublic java.lang.String deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
TransactionCallback callback)
throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAsync 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmcallback - transaction with callback functionContractCodecException - throw when encode deploy errorpublic java.lang.String deployAsync(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair,
TransactionCallback callback)
throws ContractCodecException
public java.util.concurrent.CompletableFuture<TransactionReceipt> deployAsync(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params, java.lang.String path) throws ContractCodecException
AssembleTransactionProcessorInterfacedeployAsync 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmContractCodecException - throw when encode deploy errorpublic java.util.concurrent.CompletableFuture<TransactionReceipt> deployAsync(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params) throws ContractCodecException, org.fisco.bcos.sdk.jni.common.JniException
AssembleTransactionProcessorInterfacedeployAsync 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parametersContractCodecException - throw when encode deploy errororg.fisco.bcos.sdk.jni.common.JniException - throw when encode transaction errorpublic java.util.concurrent.CompletableFuture<TransactionReceipt> deployAsync(java.lang.String abi, java.lang.String bin, java.util.List<java.lang.Object> params, java.lang.String path, CryptoKeyPair cryptoKeyPair) throws ContractCodecException
public TransactionResponse deployByContractLoader(java.lang.String contractName, java.util.List<java.lang.Object> args) throws ContractCodecException, TransactionBaseException
deployByContractLoader 在接口中 AssembleTransactionProcessorInterfacecontractName - the contract nameargs - the params when deploy a contractTransactionBaseException - send transaction exceptionContractCodecException - abi encode exceptionNoSuchTransactionFileException - Files related to abi codec were not foundpublic TransactionResponse deployByContractLoader(java.lang.String contractName, java.util.List<java.lang.Object> args, java.lang.String path) throws ContractCodecException, TransactionBaseException
deployByContractLoader 在接口中 AssembleTransactionProcessorInterfacecontractName - the contract nameargs - the params when deploy a contractpath - the path of the contractTransactionBaseException - send transaction exceptionContractCodecException - abi encode exceptionNoSuchTransactionFileException - Files related to abi codec were not foundpublic void deployByContractLoaderAsync(java.lang.String contractName,
java.util.List<java.lang.Object> args,
TransactionCallback callback)
throws ContractCodecException,
NoSuchTransactionFileException
AssembleTransactionProcessorInterfacedeployByContractLoaderAsync 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.args - contract construct parameterscallback - transaction with callback functionContractCodecException - throw when encode deploy errorNoSuchTransactionFileException - throw when loader get contract errorpublic void deployByContractLoaderAsync(java.lang.String contractName,
java.util.List<java.lang.Object> args,
java.lang.String path,
TransactionCallback callback)
throws ContractCodecException,
NoSuchTransactionFileException
AssembleTransactionProcessorInterfacedeployByContractLoaderAsync 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.args - contract construct parameterspath - BFS path only for wasmcallback - transaction with callback functionContractCodecException - throw when encode deploy errorNoSuchTransactionFileException - throw when loader get contract errorpublic void sendTransactionOnly(java.lang.String signedData)
AssembleTransactionProcessorInterfacesendTransactionOnly 在接口中 AssembleTransactionProcessorInterfacesignedData - signed and encoded transaction datapublic TransactionResponse sendTransactionAndGetResponse(java.lang.String to, java.lang.String abi, java.lang.String functionName, byte[] data)
AssembleTransactionProcessorInterfacesendTransactionAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceto - the target contract address.abi - contract abi, which could be obtained by compiling solidity contract.functionName - contract function name.data - abi encoded transaction datapublic TransactionResponse sendTransactionAndGetResponse(java.lang.String to, java.lang.String abi, java.lang.String functionName, byte[] data, CryptoKeyPair cryptoKeyPair)
public TransactionResponse sendTransactionAndGetResponse(java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.Object> params) throws ContractCodecException
AssembleTransactionProcessorInterfacesendTransactionAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceto - the target contract address.abi - contract abi, which could be obtained by compiling solidity contract.functionName - contract function name.params - contract construct parametersContractCodecException - throw when encode deploy errorpublic TransactionResponse sendTransactionWithStringParamsAndGetResponse(java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.String> params) throws ContractCodecException
AssembleTransactionProcessorInterfacesendTransactionWithStringParamsAndGetResponse 在接口中 AssembleTransactionProcessorInterfaceto - the target contract address.abi - contract abi, which could be obtained by compiling solidity contract.functionName - contract function name.params - contract function string parametersContractCodecException - throw when encode deploy errorpublic TransactionReceipt sendTransactionAndGetReceiptByContractLoader(java.lang.String contractName, java.lang.String contractAddress, java.lang.String functionName, java.util.List<java.lang.Object> args) throws ContractCodecException, TransactionBaseException
AssembleTransactionProcessorInterfacesendTransactionAndGetReceiptByContractLoader 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.contractAddress - contract addressfunctionName - contract function nameargs - contract construct parametersContractCodecException - throw when encode deploy errorTransactionBaseException - throw when loader get contract errorpublic TransactionResponse sendTransactionAndGetResponseByContractLoader(java.lang.String contractName, java.lang.String contractAddress, java.lang.String functionName, java.util.List<java.lang.Object> funcParams) throws ContractCodecException, TransactionBaseException
AssembleTransactionProcessorInterfacesendTransactionAndGetResponseByContractLoader 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.contractAddress - the target contract address.functionName - contract function name.funcParams - contract function parametersContractCodecException - throw when encode deploy errorTransactionBaseException - throw when loader get contract errorpublic void sendTransactionAsync(java.lang.String signedTransaction,
TransactionCallback callback)
AssembleTransactionProcessorInterfacesendTransactionAsync 在接口中 AssembleTransactionProcessorInterfacesignedTransaction - signed and encoded transaction datacallback - transaction with callback functionpublic void sendTransactionAsync(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params,
TransactionCallback callback)
throws ContractCodecException
AssembleTransactionProcessorInterfacesendTransactionAsync 在接口中 AssembleTransactionProcessorInterfaceto - the target contract address.abi - contract abi, which could be obtained by compiling solidity contract.functionName - contract function name.params - contract function parameterscallback - transaction with callback functionContractCodecException - throw when encode deploy errorpublic java.util.concurrent.CompletableFuture<TransactionReceipt> sendTransactionAsync(java.lang.String signedData)
AssembleTransactionProcessorInterfacesendTransactionAsync 在接口中 AssembleTransactionProcessorInterfacesignedData - signed and encoded transaction datapublic void sendTransactionAndGetReceiptByContractLoaderAsync(java.lang.String contractName,
java.lang.String contractAddress,
java.lang.String functionName,
java.util.List<java.lang.Object> args,
TransactionCallback callback)
throws ContractCodecException,
TransactionBaseException
AssembleTransactionProcessorInterfacesendTransactionAndGetReceiptByContractLoaderAsync 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.contractAddress - the target contract address.functionName - contract function name.args - contract function parameterscallback - transaction with callback functionContractCodecException - throw when encode deploy errorTransactionBaseException - throw when loader get contract errorpublic CallResponse sendCallByContractLoader(java.lang.String contractName, java.lang.String contractAddress, java.lang.String functionName, java.util.List<java.lang.Object> args) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCallByContractLoader 在接口中 AssembleTransactionProcessorInterfacecontractName - contract name.contractAddress - the target contract address.functionName - contract function name.args - contract call parametersTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic CallResponse sendCall(java.lang.String from, java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.Object> paramsList) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCall 在接口中 AssembleTransactionProcessorInterfacefrom - sender addressto - the target contract address.abi - ABI json stringfunctionName - contract function name.paramsList - contract call parametersTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic CallResponse sendCallWithSign(java.lang.String from, java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.Object> params) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCallWithSign 在接口中 AssembleTransactionProcessorInterfacefrom - sender addressto - the target contract address.abi - ABI json stringfunctionName - contract function name.params - contract call parametersTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic CallResponse sendCall(CallRequest callRequest) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCall 在接口中 AssembleTransactionProcessorInterfacecallRequest - call request informationTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic void sendCallAsync(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params,
RespCallback<CallResponse> callback)
throws ContractCodecException
public void sendCallAsync(CallRequest callRequest, RespCallback<CallResponse> callback)
public CallResponse sendCallWithStringParams(java.lang.String from, java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.String> paramsList) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCallWithStringParams 在接口中 AssembleTransactionProcessorInterfacefrom - sender addressto - the target contract address.abi - ABI json stringfunctionName - contract function name.paramsList - contract call parametersTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic CallResponse sendCallWithSignWithStringParams(java.lang.String from, java.lang.String to, java.lang.String abi, java.lang.String functionName, java.util.List<java.lang.String> params) throws TransactionBaseException, ContractCodecException
AssembleTransactionProcessorInterfacesendCallWithSignWithStringParams 在接口中 AssembleTransactionProcessorInterfacefrom - sender addressto - the target contract address.abi - ABI json stringfunctionName - contract function name.params - contract call parametersTransactionBaseException - throw when loader get contract errorContractCodecException - throw when encode deploy errorpublic void sendCallWithStringParamsAsync(java.lang.String from,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.String> params,
RespCallback<CallResponse> callback)
throws TransactionBaseException,
ContractCodecException
public void callAndGetResponseAsync(java.lang.String from,
java.lang.String to,
ABIDefinition abiDefinition,
byte[] data,
RespCallback<CallResponse> callback)
public CallResponse callAndGetResponse(java.lang.String from, java.lang.String to, java.lang.String abi, java.lang.String functionName, byte[] data) throws ContractCodecException, TransactionBaseException
public CallResponse callAndGetResponse(java.lang.String from, java.lang.String to, ABIDefinition abiDefinition, byte[] data) throws ContractCodecException, TransactionBaseException
public CallResponse callWithSignAndGetResponse(java.lang.String from, java.lang.String to, ABIDefinition abiDefinition, byte[] data) throws ContractCodecException, TransactionBaseException
public CallResponse getCallResponse(Call call, ABIDefinition abiDefinition) throws TransactionBaseException, ContractCodecException
public org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path)
throws ContractCodecException
AssembleTransactionProcessorInterfacecreateSignedConstructor 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmContractCodecException - throw when encode deploy errorpublic org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params,
java.lang.String path,
CryptoKeyPair cryptoKeyPair)
throws ContractCodecException
AssembleTransactionProcessorInterfacecreateSignedConstructor 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binary, which could be obtained by compiling solidity contract.params - contract construct parameterspath - the BFS path, which the contract be deployed in exactly path, this param only
enable in wasmcryptoKeyPair - specific keyPair, not use default keyPairContractCodecException - throw when encode deploy errorpublic org.fisco.bcos.sdk.jni.utilities.tx.TxPair createSignedConstructor(java.lang.String abi,
byte[] data,
java.lang.String path,
CryptoKeyPair keyPair)
throws ContractCodecException
public byte[] encodeFunction(java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
throws ContractCodecException
AssembleTransactionProcessorInterfaceencodeFunction 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.functionName - contract function nameparams - contract function parametersContractCodecException - throw when encode deploy errorpublic long getRawTransactionForConstructor(java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
throws ContractCodecException,
org.fisco.bcos.sdk.jni.common.JniException
AssembleTransactionProcessorInterfacegetRawTransactionForConstructor 在接口中 AssembleTransactionProcessorInterfaceabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binaryparams - contract function parametersContractCodecException - throw when encode deploy errororg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorpublic long getRawTransactionForConstructor(java.math.BigInteger blockLimit,
java.lang.String abi,
java.lang.String bin,
java.util.List<java.lang.Object> params)
throws ContractCodecException,
org.fisco.bcos.sdk.jni.common.JniException
AssembleTransactionProcessorInterfacegetRawTransactionForConstructor 在接口中 AssembleTransactionProcessorInterfaceblockLimit - block limitabi - contract abi, which could be obtained by compiling solidity contract.bin - contract binaryparams - contract function parametersContractCodecException - throw when encode deploy errororg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorpublic long getRawTransaction(java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
throws ContractCodecException,
org.fisco.bcos.sdk.jni.common.JniException
AssembleTransactionProcessorInterfacegetRawTransaction 在接口中 AssembleTransactionProcessorInterfaceto - target addressabi - contract abi, which could be obtained by compiling solidity contract.functionName - function nameparams - contract function parametersContractCodecException - throw when encode deploy errororg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorpublic long getRawTransaction(java.math.BigInteger blockLimit,
java.lang.String to,
java.lang.String abi,
java.lang.String functionName,
java.util.List<java.lang.Object> params)
throws ContractCodecException,
org.fisco.bcos.sdk.jni.common.JniException
AssembleTransactionProcessorInterfacegetRawTransaction 在接口中 AssembleTransactionProcessorInterfaceblockLimit - block limitto - target addressabi - contract abi, which could be obtained by compiling solidity contract.functionName - function nameparams - contract function parametersContractCodecException - throw when encode deploy errororg.fisco.bcos.sdk.jni.common.JniException - throw when jni encode transaction errorpublic ContractLoader getContractLoader()