source: backend/web3-Ednevnik-Backend/src/main/java/com/nikola/web3ednevnikbackend/service/payment/BlockchainValidationService.java

Last change on this file was 81cdf2d, checked in by Nikola Janev <nikolajanev57@…>, 10 days ago

initial commit

  • Property mode set to 100644
File size: 523 bytes
Line 
1package com.nikola.web3ednevnikbackend.service.payment;
2
3import java.math.BigDecimal;
4
5public interface BlockchainValidationService {
6 boolean transactionExists(String txHash);
7
8 boolean isTransactionSuccessful(String txHash);
9
10 boolean amountMatches(
11 BigDecimal expected,
12 BigDecimal actual
13 );
14 boolean validateTransaction(
15 String txHash,
16 BigDecimal expectedAmountEth,
17 String expectedSenderWallet
18 );
19 int getConfirmations(String txHash);
20}
Note: See TracBrowser for help on using the repository browser.