Build SAP x402 Payment Headers
sap_x402_build_payment_headersBuild SAP x402 HTTP headers from a public PaymentContext returned by sap_x402_prepare_payment. SAP MCP context: Payment and settlement flow. Estimate or fetch state before creating escrows or settling calls; write operations require an enabled signer mode and MCP policy approval.
SAP MCP execution guidance: Intent: hosted unsigned transaction builder. Pricing: paid builder; estimate first, then pay/build and finalize unsigned transactions locally when returned. Routing: hosted-safe builder. If a transaction is returned, preview/sign/submit with sap_payments_finalize_transaction; never create temporary signing scripts. Signer boundary: user-controlled local profile or external signer; OOBE hosted MCP remains non-custodial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | Escrow nonce as a decimal string. Defaults to 0. | |
| network | No | Optional override for X-Payment-Network | |
| agentPda | No | Agent PDA (base58) | |
| maxCalls | No | Max calls as a decimal string | |
| escrowPda | No | Escrow PDA (base58) | |
| agentWallet | No | Agent wallet public key (base58) | |
| txSignature | No | Escrow creation transaction signature | |
| pricePerCall | No | Price per call in token base units | |
| depositorWallet | No | Depositor wallet public key (base58) | |
| networkIdentifier | No | x402 network identifier stored in the payment context |
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. |