com.bloxbean.cardano.client.backend.api.DefaultTransactionProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cardano-client-backend Show documentation
Show all versions of cardano-client-backend Show documentation
Cardano Client Lib Backend Api Module
package com.bloxbean.cardano.client.backend.api;
import com.bloxbean.cardano.client.api.TransactionProcessor;
import com.bloxbean.cardano.client.api.exception.ApiException;
import com.bloxbean.cardano.client.api.model.EvaluationResult;
import com.bloxbean.cardano.client.api.model.Result;
import com.bloxbean.cardano.client.api.model.Utxo;
import java.util.List;
import java.util.Set;
/**
* Default implementation of TransactionProcessor which uses Backend service's TransactionService
*/
public class DefaultTransactionProcessor implements TransactionProcessor {
private TransactionService transactionService;
public DefaultTransactionProcessor(TransactionService transactionService) {
this.transactionService = transactionService;
}
@Override
public Result submitTransaction(byte[] cborData) throws ApiException {
return transactionService.submitTransaction(cborData);
}
@Override
public Result> evaluateTx(byte[] cborData, Set inputUtxos) throws ApiException {
return transactionService.evaluateTx(cborData);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy