Endorse chaincode (dry run, no commit)
endorse_chaincodeEndorse a chaincode transaction without submitting it to the orderer or committing to the ledger, so you can check a write will pass before invoking it.
Instructions
Validate a chaincode transaction by endorsing it without submitting to the orderer. Nothing is committed. Use to check a write will pass before invoking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>",
"chaincode": "<chaincode>",
"method": "<method>"
},
"name": "endorse_chaincode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | String args; JSON-encode objects | |
| method | Yes | Chaincode function, e.g. GetAsset | |
| channel | Yes | Fabric channel name | |
| contract | No | Contract name within chaincode (optional) | |
| chaincode | Yes | Chaincode name | |
| transientData | No | Private data, not recorded on the ledger |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Endorsement result, decoded as UTF-8; nothing was committed | |
| transactionId | Yes |