Skip to content

fix(agentic-payments): warn that self-hosted facilitators underbid mainnet fees - #134

Open
DiegoPoveda01 wants to merge 1 commit into
stellar:mainfrom
DiegoPoveda01:x402-mainnet-inclusion-fee
Open

DiegoPoveda01 wants to merge 1 commit into
stellar:mainfrom
DiegoPoveda01:x402-mainnet-inclusion-fee

Conversation

@DiegoPoveda01

@DiegoPoveda01 DiegoPoveda01 commented Sep 17, 2026

Copy link
Copy Markdown

Adds a "Common pitfalls" entry to skills/agentic-payments/x402.md for self-hosted facilitators on stellar:pubnet: /verify passes, but /settle times out.

Why

ExactStellarScheme in @x402/stellar/exact/facilitator (latest, 2.26.0) bids BASE_FEE (100 stroops) as the inclusion fee on the settlement transaction and on its fee bump, and there is no option to change it. On testnet that is enough. On mainnet it often isn't, and the transaction never lands. An agent following the skill today would ship a facilitator that works on testnet and then silently fails on mainnet.

What was checked against live sources

  • getFeeStats on a pubnet RPC (last 50 ledgers, ~3.9k txs): sorobanInclusionFee min 100, mode 200, p10 through p99 all 200. A 100-stroop bid sits at the floor.
  • Repro from a real project (Local402):
  • The snippet was run against @stellar/stellar-sdk and @x402/stellar 2.26.0 on a throwaway key.
    • A fee bump built at 100 comes back at INCLUSION_FEE per operation.
    • The inner transaction and its signatures are unchanged.
    • The wrapper keeps the rest of the signer (address, signAuthEntry).
  • The upstream fix is proposed in x402-foundation/x402#3503 as an inclusionFeeStroops option. Once a release includes it, the entry's Fix can point to that option instead of the workaround.

The entry sits before the browser-signing pitfall and follows the Symptom / Cause / Fix shape of the other entries. No other files changed.

AI disclosure

This change was drafted with Claude Code. I reviewed the text, and the fee data and the snippet were checked as described above.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings September 17, 2026 00:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kaankacar

Copy link
Copy Markdown
Contributor

🤖 Automated message from Kaan's Automated Triage Bot.

👀 Picked this up — a review will follow shortly.

…innet fees

The stock ExactStellarScheme bids BASE_FEE (100 stroops) on the
settlement transaction and on its fee bump. Mainnet Soroban inclusion
fees currently sit around 200 stroops at p10-p99, so self-hosted
facilitators pass /verify and then time out on /settle. Document the
symptom, how to check the going rate, and a feeBumpSigner workaround
until x402-foundation/x402#3503 (or similar) ships.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@DiegoPoveda01
DiegoPoveda01 force-pushed the x402-mainnet-inclusion-fee branch from 564d21c to 13664ce Compare September 17, 2026 01:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants