Build SAP Escrow V2 Close Transaction
sap_escrow_build_close_transactionBuilds an unsigned close_escrow_v2 transaction that the depositor signs locally once the escrow balance and pending amount are both zero.
Instructions
Hosted-safe unsigned builder for close_escrow_v2. The depositor signs locally; the builder refuses to close until balance and pendingAmount are both zero. SAP MCP context: Hosted-safe unsigned Escrow V2 builder. The output is not submitted and is not signed by hosted SAP MCP. Preview it, then call local sap_payments_finalize_transaction with submit:true and confirm:true. Never create temporary signing scripts or read keypair JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | Optional escrow nonce as a decimal string. Defaults to 0. | |
| agentWallet | No | Agent owner wallet public key (base58). | |
| depositorWallet | No | Depositor wallet public key (base58). The depositor signs locally to close the empty escrow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |