Class EthereumBlockchainTransactionService

  • All Implemented Interfaces:
    org.exoplatform.wallet.service.BlockchainTransactionService, org.picocontainer.Startable

    public class EthereumBlockchainTransactionService
    extends Object
    implements org.exoplatform.wallet.service.BlockchainTransactionService, org.picocontainer.Startable
    • Constructor Detail

      • EthereumBlockchainTransactionService

        public EthereumBlockchainTransactionService​(org.exoplatform.commons.api.settings.SettingService settingService,
                                                    EthereumClientConnector ethereumClientConnector,
                                                    org.exoplatform.wallet.service.WalletTransactionService transactionService,
                                                    org.exoplatform.wallet.service.WalletAccountService accountService)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface org.picocontainer.Startable
      • checkPendingTransactions

        public void checkPendingTransactions()
        Specified by:
        checkPendingTransactions in interface org.exoplatform.wallet.service.BlockchainTransactionService
      • scanNewerBlocks

        public void scanNewerBlocks()
                             throws IOException
        Specified by:
        scanNewerBlocks in interface org.exoplatform.wallet.service.BlockchainTransactionService
        Throws:
        IOException
      • sendRawTransactions

        public void sendRawTransactions()
        Specified by:
        sendRawTransactions in interface org.exoplatform.wallet.service.BlockchainTransactionService
      • checkPendingTransactionValidity

        public void checkPendingTransactionValidity​(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail)
        Specified by:
        checkPendingTransactionValidity in interface org.exoplatform.wallet.service.BlockchainTransactionService
      • checkTransactionStatusOnBlockchain

        public void checkTransactionStatusOnBlockchain​(String transactionHash,
                                                       boolean pendingTransactionFromDatabase)
        Specified by:
        checkTransactionStatusOnBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionService
      • refreshTransactionFromBlockchain

        public org.exoplatform.wallet.model.transaction.TransactionDetail refreshTransactionFromBlockchain​(String hash)
        Specified by:
        refreshTransactionFromBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionService
      • refreshBlockchainGasPrice

        public long refreshBlockchainGasPrice()
                                       throws IOException
        Specified by:
        refreshBlockchainGasPrice in interface org.exoplatform.wallet.service.BlockchainTransactionService
        Throws:
        IOException