Hyperledger Fabric - get block info
Search form
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
Parameter Type Description
Type: string Determines 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: string When 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
Parameter Type Description
Format: string Format of result
Select from one of the following options:
- XML {xml}
- JSON {json}
* - denotes required
Parameter Type Description
Early Limit string Format 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 Size string Specifying 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
Runtime Class - com.ibi.agents.XDFabricQueryBlockAgent
Configuration
This action requires a Generics Configuration as well as the following required parameters.
Parameter Groups
Parameter Type Description
Type: string Determines 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: string When 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
Parameter Type Description
Format: string Format of result
Select from one of the following options:
- XML {xml}
- JSON {json}
* - denotes required
Parameter Type Description
Early Limit string Format 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 Size string Specifying 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
Configuration
This action requires a Generics Configuration as well as the following required parameters.Parameter Groups
Parameter | Type | Description | |
---|---|---|---|
Type: | string | Determines what is the search criteria for the block query
Select from one of the following options:
|
* | Argument: | string | When 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
Parameter | Type | Description | |
---|---|---|---|
Format: | string | Format of result
Select from one of the following options:
|
* - denotes required
Parameter | Type | Description | |
---|---|---|---|
Early Limit | string | Format 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 Size | string | Specifying 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
Name | Description |
---|---|
onFailParse | Could not parse a document. |
onFailOperation | Could not perform the operation requested. |