Masumi Paywall v1.0.1
AI-generatedOverview
This node implements a Cardano blockchain paywall for monetizing n8n workflows. It supports two operation modes: polling for external payment confirmation (normal flow) and creating a purchase request followed by polling (test mode). The node waits for payment confirmation by polling the blockchain within a specified timeout and poll interval. Upon payment confirmation, it updates the job status to "running" and passes the payment data forward. If the payment is not confirmed within the timeout, it keeps the job status as "awaiting_payment" and blocks the workflow. This node is useful for workflows that require payment verification before proceeding, such as paid services or content access.
Use Case Examples
- A workflow that waits for a user to complete a payment on the Cardano blockchain before continuing to process their request.
- A testing scenario where a purchase request is created and the node polls for payment confirmation, useful for development and debugging.
Properties
| Name | Meaning |
|---|---|
| Operation Mode | Selects the paywall operation mode: either polling for an existing payment confirmation or creating a purchase request and polling (test mode). |
| Job ID | The Job ID from payment creation, used to identify the payment job to poll for. |
| Timeout (Minutes) | Maximum time in minutes to wait for payment confirmation before timing out. |
| Poll Interval (Seconds) | Time interval in seconds between each payment status check on the blockchain. |
| Submit Result Time (Minutes) | Time limit in minutes for submitting results after payment confirmation. |
Output
JSON
paymentConfirmed- Boolean indicating if the payment was confirmed.jobId- The Job ID associated with the payment.job- The job data object containing payment and other job-related information.onChainState- The current on-chain state of the payment.blockchainIdentifier- The blockchain identifier for the payment.inputHash- Input hash related to the payment.finalPaymentState- The final state of the payment as returned from the blockchain polling.debugoperationMode- The operation mode used during execution.timeoutMinutes- The timeout duration in minutes used during polling.intervalSeconds- The polling interval in seconds used during execution.message- Debug message from the polling operation.timestamp- Timestamp of the polling operation.
Dependencies
- An API key credential for Masumi Paywall API
Troubleshooting
- Job not found error: Ensure the Job ID is correct and the job was initialized in a previous step.
- Job has no payment information: Indicates a failed or missing payment creation step.
- Authentication failed during payment polling: Check API credentials and permissions for the Masumi Paywall API.
- Payment timeout: The payment was not confirmed within the specified timeout. Verify the payment status on the blockchain and increase timeout if necessary.
Links
- Masumi Paywall Documentation - Official documentation for the Masumi Paywall API and usage.