Payments¶
Agentstr has built-in support for handling payments via the Nostr Wallet Connect (NWC) protocol. The NWCRelay
class provides an interface for sending and receiving payments.
To integrate payment processing into your agent, you’ll need to configure the NWC relay. Refer to Relays Module for setup instructions.
Payments are also integrated with Nostr MCP servers to enable paid tools, allowing agents to pay for premium services and fairly charge the cost back to the user.
Next Steps¶
Enable Payments in Agents: Learn how to integrate NWC with agents in the Payment Enabled Agent guide.
Paid Tools with MCP: See how to use NWC for paid tools in MCP servers in the Creating an MCP Server guide.