workflows.fit
Back to n8n workflows
n8n templateFreeBy 1Shot API

Create a self-hosted blockchain payment processor with x402 and 1Shot API

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ![facilitatorpreview.gif](fileId:2163) Self-Hosted x402 Facilitator In the [x402](https://x402.org) payment protocol...

DevelopmentCore NodesUtilityN8n-nodes-1shot.one ShotWebhookRespond To WebhookN8n-nodes-1shot.one Shot Synch
Loading interactive preview...

Template notes

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

![facilitatorpreview.gif](fileId:2163)

Self-Hosted x402 Facilitator

In the [x402](https://x402.org) payment protocol, a [facilitator](https://x402.gitbook.io/x402/core-concepts/facilitator) is a role which helps sellers settle stablecoin payments onchain without dealing with blockchain complexities. This workflow allows you to run your own fully-featured, specification-compliant facilitator in n8n. You might want to do this if you want to accept payments in tokens not supported by existing facilitators or as your own business!

Details

A facilitator supports three routes: /verify, /settle, and /supported. These routes are all created for you in this workflow with proper error handling and responses.

A seller will first hit /verify with their payment details to ensure the payment information is correct. Next they will hit the /settle endpoint with the same payment information to settle the paymet on the blockchain. The /supported endpoint is used to indicate to sellers which blockchains you choose to support in a programatic fashion.

Setup