Back to Templates

Monetize Workflows with x402 Payment Protocol and 1Shot API

Created by

Created by: 1Shot API || oneshotapi

1Shot API

Last update

Last update 2 months ago

Categories

Share


This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Monetize Your n8n Workflow with x402

x402gateway.gif

This workflow lets you monetize any n8n workflow with the x402 payment protocol.

It uses 1Shot API as the onchain transaction fascilitator role.

Check out the tutorial video for a complete walkthrough.

Setup

  1. Create a free 1Shot API account, then go to the API Keys tab and generate a new API key & secret.
  2. Click on one of the 1Shot API nodes and use the API key & secret from step 1 to create a credentail. You'll need you 1Shot API business ID as well which is located in the top right-hand corner of the 1Shot API dashboard.
  3. Click on the Payment Token Configs box and enter in the required token information for the x402-compatible tokens you want to accept as payment. Import the x402-compatible tokens you want to accept as payments into your 1Shot API account using the 1Shot Prompts directory.
  4. Click on the webhook trigger node and set the route.