๐Ÿ“ˆ Monetize workflows with x402 Payment Protocol and 1Shot API

โšก 431 views ยท ๐Ÿ“ˆ Crypto Trading & Stock Market

Description

image.png

Monetize Your n8n Workflow with x402

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 (must be an ERC-20 token with a transferWithAuthorization method) account using the 1Shot Prompts directory.
  4. Click on the webhook trigger node and set the route.

๐Ÿ”— Nodes Used

Webhook

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup