Schedule Transaction to Run
post
/restproxy/api/v2/channels/{channelName}/scheduleTransactions
Schedule a transaction to run periodically.
Request
Supported Media Types
- application/json
Path Parameters
-
channelName(required): string
ID of the channel
Request to schedule a transaction
Root Schema : schema
Type:
Show Source
object
-
args(required):
array args
Arguments for the chaincode
-
chaincode(required):
string
ID of the chaincode to invoke
-
endorsers:
array endorsers
Endorsers for the chaincode
-
expiry(required):
string
Expiration of the scheduler. Expected format: 1M, 1w, 1d, 1h and 1m signifying month, week, day, hour and minute respectively.
-
interval(required):
object interval
Interval at which the scheduler will run the transaction
-
role:
string
Specify which Hyperledger Fabric enrollment should be used
-
sameOrgEndorser:
boolean
Default Value:
false
Specify whether it should select endorsers of this org only. When set to true, endorsers field cannot be specified. -
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
Show Source
-
blocks:
integer
Run the transaction every 'n' number of blocks
-
time:
integer
Run the transaction every 'n' minutes
Nested Schema : transientMap
Type:
object
Additional Properties Allowed
Show Source
TransientMap for the chaincode
Response
Supported Media Types
- application/json
200 Response
Successful response for schedule transaction
Root Schema : schema
Type:
Show Source
object
-
error:
string
Default Value:
-
result:
object result
-
returnCode(required):
string
Allowed Values:
[ "Success", "Failure" ]
400 Response
Bad Request
401 Response
Not authorized
403 Response
Forbidden
404 Response
Invalid parameters
500 Response
Service unavailable