Package 

Class Blockchain

  • All Implemented Interfaces:

    
    public final class Blockchain
    
                        

    A blockchain backend.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit broadcast(Transaction transaction) Broadcast a transaction.
      final <Error class: unknown class> estimateFee(ULong target) Estimate the fee rate required to confirm a transaction in a given target of blocks.
      final UInt getHeight() Get the current height of the blockchain.
      final String getBlockHash(UInt height) Get the block hash of a given block.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Blockchain

        Blockchain(BlockchainConfig config)
        Create the new blockchain client.
        Parameters:
        config - The blockchain configuration required.
    • Method Detail

      • estimateFee

         final <Error class: unknown class> estimateFee(ULong target)

        Estimate the fee rate required to confirm a transaction in a given target of blocks.

      • getHeight

         final UInt getHeight()

        Get the current height of the blockchain.