Interface ChaincodeEvent


public interface ChaincodeEvent
Chaincode event emitted by a transaction function.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Block number that included this chaincode event.
    Chaincode that emitted this event.
    Name of the emitted event.
    byte[]
    Application defined payload data associated with this event.
    Transaction that emitted this chaincode event.
  • Method Details

    • getBlockNumber

      long getBlockNumber()
      Block number that included this chaincode event.

      Note that the block number is an unsigned 64-bit integer, with the sign bit used to hold the top bit of the number.

      Returns:
      A block number.
    • getTransactionId

      String getTransactionId()
      Transaction that emitted this chaincode event.
      Returns:
      Transaction ID.
    • getChaincodeName

      String getChaincodeName()
      Chaincode that emitted this event.
      Returns:
      Chaincode name.
    • getEventName

      String getEventName()
      Name of the emitted event.
      Returns:
      Event name.
    • getPayload

      byte[] getPayload()
      Application defined payload data associated with this event.
      Returns:
      Event payload.