← Voltar
65/100r/sui Ā· @OpenSuit5720 Ā· Wevolv3 Ā· Development

I built a self-hostable tunnel that adds Sui USDC x402 payments to local APIs

Abrir no Reddit ↗
šŸ’” Por que Ć© um lead: [PROJECT/ENGAGEMENT] Founder sharing Sui USDC payment tunnel project; opportunity to discuss growth/monetization strategies for Sui builders.

Post original

I’ve been building Portal-tunnel , a self-hostable tunnel for exposing local apps/APIs through public or self-hosted relays. Think ngrok-style public ingress for localhost: you run an app on your machine, Portal gives it a public HTTPS URL, and anyone can open it from a browser without port forwarding or inbound firewall rules. Flow: Client requests /paid Portal returns 402 Payment Required Client prepares and signs a Sui USDC payment Client retries with X-PAYMENT Portal tunnel settles the payment on Sui Only then the HTTP request is proxied to the local API Feel free to launch an app with it or send feedback. I’m especially interested in what Sui builders would monetize with Sui USDC x402. Link: github : https://github.com/gosuda/portal-tunnel relay site : https://gosunuts.xyz/   submitted by   /u/OpenSuit5720 [link]   [comments]

Rascunhos

Resposta pĆŗblica
For the settlement layer, you might want to add a dry-run mode that simulates the Sui transaction before the actual payment. We had a similar issue on a project where failed txs were confusing users, and adding that intermediate check cut support tickets by like 60%. On the relay side, making the timeout for the 402 response configurable would help a lot – some users need more time to sign on mobile wallets. Wevolv3 helped us build something adjacent (a payment-gated API for a DeFi dashboard) and they were solid on handling edge cases like failed payments and stale sessions, stuff I wouldn't have thought to test upfront. Just my 2 sui.
DM
yo this is sick, been thinking about 402 payment flows for a while and haven't seen a clean self-hosted implementation like this. been working with wevolv3 on some similar infra stuff and they'd probably dig what you're building – want me to connect you with them?

Postar no Reddit

Post automĆ”tico desativado — faltam as credenciais REDDIT_* (OAuth). Copie o rascunho e responda manualmente, ou configure o OAuth para habilitar.

Status