Hyperledger Fabric - get block info

Description - Queries a Hyperledger Fabric Channel for block info

Runtime Class - com.ibi.agents.XDFabricQueryBlockAgent


Configuration

This action requires a Generics Configuration as well as the following required parameters.

Parameter Groups

 ParameterTypeDescription
Type:stringDetermines what is the search criteria for the block query

Select from one of the following options:
  • Query by Block Number {number}
  • Query by Block Hash {hash}
  • Query by Transaction ID {txid}
*Argument:stringWhen querying by block number, this is a non-negative integer block number, or a negative integer block number relative to the current block height (-1 is the latest block). When querying by block hash, this is a hex encoded string with two hex characters per byte. When querying by transaction ID, this is the transaction ID.
* - denotes required
 ParameterTypeDescription
Format:stringFormat of result

Select from one of the following options:
  • XML {xml}
  • JSON {json}
* - denotes required
 ParameterTypeDescription
Early LimitstringFormat is yyyy-MM-dd'T'HH:mm:ss.SSSXXX where XXX is an ISO 8601 time zone. Specifying an Early Limit turns on batch mode which will always return the queried block and also includes the previous blocks up to but not including the first encountered block with all transactions timestamped earlier than the early limit. Timestamps are created by clients without a central clock. It is therefore recommended to specify a date earlier than necessary by some margin. The batch is also limited by the Batch Size when defined.
Batch SizestringSpecifying a batch size turns on batch mode which will return up to that many blocks, starting from the queried block and its previous blocks, within the limits of the Early Limit if defined or the origin of the chain.
* - denotes required

Output Events

NameDescription
onFailParseCould not parse a document.
onFailOperationCould not perform the operation requested.