Interface TransactionContext


  • public interface TransactionContext
    Transaction context class. Contains required information for the transaction execution. The context is provided by the framework and users shouldn't create context instances manually except tests.
    • Method Detail

      • getFork

        Fork getFork()
        Returns database view allowing R/W operations.
      • getTransactionMessageHash

        HashCode getTransactionMessageHash()
        Returns SHA-256 hash of the transaction message that carried the payload from which the transaction was created. Each transaction message is uniquely identified by its hash; the messages are persisted in the blockchain and can be fetched by this hash.
      • getAuthorPk

        PublicKey getAuthorPk()
        Returns public key of the transaction author. The corresponding transaction message is guaranteed to have a correct CryptoFunctions.ed25519() signature with this public key.