Multi-chain token swap relayer with Li.Fi
UnknownWhat this workflow does
This workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects 1shot (community). It also calls li.quest over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Payment Token Configs (Code): runs custom JavaScript code
- Validate & Verify POST Body (Code): runs custom JavaScript code
- Fetch Li.Fi Quote (HTTP Request): calls li.quest
- Response: Missing or Invalid Request Body Params (Respond to Webhook): sends the response back to the webhook caller
- Validate & Verify X-Payment Header (Code): runs custom JavaScript code
- Response: Failed to Get Quote (Respond to Webhook): sends the response back to the webhook caller
- Simulate Payment (One Shot): simulate
- Response: No X-Payment Header (Respond to Webhook): sends the response back to the webhook caller
- On Successful Payment Simulation (If): checks a condition and branches into true / false
- 1Shot API Submit & Wait (One Shot Synch): uses One Shot Synch
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: li.quest
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 1Shot API Submit & Wait).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Simulate Payment).
Nodes used (7)
- Respond to Webhook
n8n-nodes-base.respondToWebhook - One Shot Synch
n8n-nodes-1shot.oneShotSynch - If
n8n-nodes-base.if - One Shot
n8n-nodes-1shot.oneShot - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code
From the author
Swap Tokens with Li.Fi The growing popularity of agentic payments has lead to the development of protocols like x402 where agents and humans can pay for internet resources over standard http protocols using stablecoins. This workflow lets you run your own…