sap_x402_build_payment_headers
Constructs SAP x402 HTTP headers using a public PaymentContext from sap_x402_prepare_payment, enabling payment verification for API calls.
Instructions
Build SAP x402 HTTP headers from a public PaymentContext returned by sap_x402_prepare_payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |