Send an Asynchronous Transaction
post
/restproxy/api/v2/channels/{channelName}/transactions/async
Sends an asynchronous transaction. This improved version of the Send a Transaction endpoint relies on a rest proxy generated tracking ID instead of the Hyperledger Fabric transaction ID to track the transaction to completion, allowing for retries in additional commit failure scenarios.
Request
Supported Media Types
- application/json
Path Parameters
-
channelName(required): string
ID of the channel
Request to invoke an asynchronous 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
-
isInit:
boolean
Default Value:
false
Whether it is an initialization request -
retries:
integer(int64)
Default Value:
3
Number of retries for endorsement and certain commit failures -
role:
string
Which Hyperledger Fabric enrollment should be used
-
sameOrgEndorser:
boolean
Default Value:
false
Whether it should select endorsers of this organization only. When set to true, the 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 : transientMap
Type:
object
Additional Properties Allowed
Show Source
TransientMap for the chaincode
Response
Supported Media Types
- application/json
202 Response
Successful operation for asynchronous 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