Create a self-hosted blockchain payment processor with x402 and 1Shot API
UnknownWhat this workflow does
This workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects 1shot (community).
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Check POST Payload (If): checks a condition and branches into true / false
- Supported Networks Config (Code): runs custom JavaScript code
- Lookup Payment Configs & Split Signature (Code): runs custom JavaScript code
- Bad Payload (If): checks a condition and branches into true / false
- Response: Return Supported Networks (Respond to Webhook): sends the response back to the webhook caller
- verify or settle (If): checks a condition and branches into true / false
- Unsupported Token (If): checks a condition and branches into true / false
- Response: Bad POST Body (/verify) (Respond to Webhook): sends the response back to the webhook caller
- Response: Bad POST Body (/settle) (Respond to Webhook): sends the response back to the webhook caller
- Simulate Payment (One Shot): simulate
…plus 5 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Simulate Payment).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in 1Shot API Submit & Wait).
Nodes used (6)
- One Shot
n8n-nodes-1shot.oneShot - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - One Shot Synch
n8n-nodes-1shot.oneShotSynch - If
n8n-nodes-base.if - Code
n8n-nodes-base.code
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Self-Hosted x402 Facilitator In the x402 payment protocol, a facilitator is a role which helps sellers settle stablecoin payments onchain without dealing with…