Skip to content

docs: update use case examples 2026-08-31 - #112

Open
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-use-cases-2026-08-31
Open

docs: update use case examples 2026-08-31#112
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-use-cases-2026-08-31

Conversation

@JamesLawton

Copy link
Copy Markdown
Collaborator

What changed

  • use-cases/fund.mdx — the direct-integration example no longer calls the CommitIntent HTTP endpoint. It reads intent.intentId from the QuoteIntent response and calls ExecuteIntent directly. The quote-expiry note is corrected to 5 minutes and links out to ExecuteIntentEdge for Solana/Tron origin flows.
  • resources/llm-integration.mdx — the executePayment tool example mirrors the same change: no commitIntent call, use intent.intentId.

Source of truth

  • Server: 0xsequence/trails-api@5c42fda7CommitIntent marked deprecated in proto/trails-api.ridl, and ExecuteIntent now accepts QUOTED intents (0xsequence/trails-api#1031).
  • Client: 0xsequence/trails@6ae74cb — 0xtrails 0.18.0 CHANGELOG: "CommitIntent is removed from the send flow entirely: non-edge sends call ExecuteIntent directly after quoting."

Verification

  • Cross-checked against the packages/0xtrails/src/mutations.ts @deprecated annotation on useCommitIntent.
  • Confirmed intent.intentId is present on QuoteIntentResponse.intent in the source RIDL (Intent.intentId, proto/trails-types.ridl:315).
  • The introduced ExecuteIntentEdge link resolves once the sibling docs/update-api-reference-2026-08-31 PR lands (that PR creates api-reference/endpoints/execute-intent-edge.mdx).

Generated by the Trails Docs weekly agent.


Generated by Claude Code

Drop the deprecated CommitIntent HTTP step from the direct-integration
examples in Fund and the LLM Integration guide. Both now call
ExecuteIntent directly on intent.intentId, matching the 0xtrails 0.18.0
lifecycle change.

Source of truth: 0xsequence/trails-api@5c42fda7
(proto/trails-api.ridl marks CommitIntent DEPRECATED; new clients call
ExecuteIntent on a QUOTED intent).

- use-cases/fund.mdx — remove the CommitIntent fetch, use
  intent.intentId, correct quote-expiry note (5 min, not 10), and link
  the Solana/Tron ExecuteIntentEdge path
- resources/llm-integration.mdx — mirror the same change in the
  executePayment tool example
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.

1 participant