Templates / Multi-chain token swap relayer with Li.Fi

Multi-chain token swap relayer with Li.Fi

Unknown

by 1Shot API ✓ · 347 views · created 2025-08-10 · Crypto Trading, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What 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.

  1. Payment Token Configs (Code): runs custom JavaScript code
  2. Validate & Verify POST Body (Code): runs custom JavaScript code
  3. Fetch Li.Fi Quote (HTTP Request): calls li.quest
  4. Response: Missing or Invalid Request Body Params (Respond to Webhook): sends the response back to the webhook caller
  5. Validate & Verify X-Payment Header (Code): runs custom JavaScript code
  6. Response: Failed to Get Quote (Respond to Webhook): sends the response back to the webhook caller
  7. Simulate Payment (One Shot): simulate
  8. Response: No X-Payment Header (Respond to Webhook): sends the response back to the webhook caller
  9. On Successful Payment Simulation (If): checks a condition and branches into true / false
  10. 1Shot API Submit & Wait (One Shot Synch): uses One Shot Synch

…plus 3 more steps. See the full node list below.

Services it uses

1shot (community)

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)

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…

Excerpt from 1Shot API's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.