Build SAP Escrow V2 Settlement Transaction
sap_escrow_build_settle_transactionBuilds an unsigned escrow settlement transaction (settle_calls_v2). Preview the transaction, then finalize with local signing via sap_payments_finalize_transaction. Requires agent wallet, service hash, and calls to settle.
Instructions
Hosted-safe unsigned builder for settle_calls_v2. The agent owner wallet signs locally. DisputeWindow escrows create a pending settlement PDA; CoSigned escrows require the coSigner account when configured. 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. | |
| coSigner | No | Optional co-signer public key for CoSigned escrows when the escrow account requires it. | |
| agentWallet | No | Agent owner wallet public key (base58). This wallet signs locally because settlement releases funds to the serving agent. | |
| serviceHash | No | 32-byte service/audit hash. Use a stable hash of the fulfilled paid work. | |
| callsToSettle | No | Number of served calls to settle as a decimal string. | |
| depositorWallet | No | Depositor wallet public key (base58) for the escrow being settled. |
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. |