Get Transaction Scheduler Details
get
/restproxy/api/v2/channels/{channelName}/scheduleTransactions
Get the transaction scheduler details.
Request
Supported Media Types
- application/json
Path Parameters
-
channelName(required): string
ID of the channel
Query Parameters
-
role: string
Which Hyperledger Fabric enrollment should be used
-
schedulerID: string
ID of the scheduler that needs to be retrieved
-
userID: string
User's name. It should be the same as user defined in basic auth.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
object
-
error:
string
Default Value:Error message when it fails
-
result:
object result
-
returnCode(required):
string
Allowed Values:
[ "Success", "Failure" ]
Nested Schema : result
Type:
Show Source
object
-
args:
array args
Arguments for the chaincode
-
chaincode:
string
ID of the chaincode to invoke
-
endorsers:
array endorsers
Endorsers for the chaincode
-
expires:
string
Expiration of the scheduler
-
interval:
object interval
Interval at which the scheduler will run the transaction. It can be either based on number of blocks or number of minutes.
-
lastProcessedAt:
object lastProcessedAt
Latest point at which the scheduler ran the transaction
-
lastTransactionResult:
object lastTransactionResult
Results of the last transaction run
-
sameOrgEndorser:
boolean
Default Value:
false
Whether it should select endorsers of this org only. When set to true, endorsers field cannot be specified. -
schedulerID:
string
The ID associated with the scheduler
-
timeout:
integer(int64)
Default Value:
18000
Timeout in ms for the chaincode to invoke -
transientMap:
object transientMap
Additional Properties Allowed: additionalPropertiesTransientMap for the chaincode
Nested Schema : interval
Type:
object
Interval at which the scheduler will run the transaction. It can be either based on number of blocks or number of minutes.
Show Source
-
blocks:
integer
Run the transaction every 'n' number of blocks
-
time:
integer
Run the transaction every 'n' minutes
Nested Schema : lastProcessedAt
Type:
object
Latest point at which the scheduler ran the transaction
Show Source
-
blockNum:
integer
Latest block number at which the scheduler ran the transaction
-
time:
integer
Latest time at which the scheduler ran the transaction
Nested Schema : transientMap
Type:
object
Additional Properties Allowed
Show Source
TransientMap for the chaincode
Nested Schema : result
Type:
Show Source
object
-
blockNumber:
integer
-
encode:
string
Allowed Values:
[ "UTF-8", "JSON", "base64" ]
-
message:
string
-
payload:
-
txid:
string
Transaction ID
400 Response
Bad Request
401 Response
Not authorized
403 Response
Forbidden
404 Response
Invalid parameters
500 Response
Service unavailable