Package nxt.addons

Class BlockContext


public class BlockContext extends AbstractContractContext
  • Constructor Details

  • Method Details

    • getBlock

      public BlockResponse getBlock()
      Returns the block in which this transaction is stored
      Specified by:
      getBlock in class AbstractContractContext
      Returns:
      the block response
    • getHeight

      public int getHeight()
      Returns the height of the block which triggered the contract
      Returns:
      the block height