send_payment
Pay a Solana payment request after verifying the recipient address and asset match. Validates the protocol fee, signs, and sends the transaction for manual payment flows.
Instructions
Pay a Solana payment request (from a provider's job feedback). Validates protocol fee, verifies the expected recipient address AND asset match, signs and sends the transaction. PREFER submit_and_pay_job or buy_capability which auto-verify the recipient from the provider's published capability card. Use send_payment only for manual payment flows where you have independently verified the recipient address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_event_id | No | Optional: the Nostr job request event id this payment is for. When given, the payment embeds an elisym memo so it is linkable to the job, and the job is recorded locally so a later submit_feedback rating carries the payment proof. | |
| expected_asset | Yes | Required: the asset you expect to pay ('sol', 'usdc', or 'lsm' - lsm is mainnet-only). The payment is refused if the payment_request debits a different asset, closing a currency bait-and-switch where a hostile request swaps one asset for another. Verify BOTH the recipient AND the asset independently before paying. | |
| payment_request | Yes | ||
| expected_solana_recipient | Yes | Base58 Solana address you expect to receive the payment (from the provider card). |