Repository navigation
Document the React and JavaScript SDKs for v2 - #11
Merged
armandocodecr merged 3 commits intoSep 11, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The update lock is the cumulative funded amount, which never decreases, not a zero live balance. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- approveAndReleaseMilestones is multi-release only in both SDKs (hardcoded to the multi route, no type argument); the API does expose the single-release route, the SDKs just do not wrap it - extend-ttl has no SDK method in either package; call the API route - React package also exports mainNet/development constants that point at the beta backend's internal URL: warn against reading them as environments and prefer an explicit baseURL Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
JoelVR17
approved these changes
Sep 11, 2026
armandocodecr
merged commit Sep 11, 2026
6da592d
into
feature/core-api-v2-support
3 of 4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents both v2 SDKs. Read from the SDK sources, not from existing docs.
What it adds
skills/react-sdk/v2/react-sdk.md—@trustless-work/escrow5.x: provider setup, the build/sign/submit loop, all 12 transaction hooks with their required signer, the 7 read hooks, the new GraphQL hooks, and attribution headers.skills/js-sdk/js-sdk.md—@trustless-work/escrow-js: client construction, the same method surface without React, error classes, runtime requirements, and a hook-to-method migration table for people coming from React.SKILL.mdroutes to both, and the version markers now say the V2 Blocks surface is the only one still undocumented.Things a developer would otherwise get wrong
/escrow/{type}/v2/.... A V1 integration needs SDK 3.x. This also settles an open question from an earlier PR: that/v2is the contract version, not an API-only version.unsignedXdr, notunsignedTransaction./stellar/send-transaction.QueryClientProvideris no longer required. SDK 5.x has no TanStack Query dependency — its only dependency is axios. Carrying the 3.x provider pattern over is a common migration error.STELLAR_TX_SUBMITTED_INDEXER_LAGGINGis a success. The transaction landed; only the read model is behind. Do not retry./escrows/..., which carries no version or type segment — not to the v2 transaction routes. Both SDKs behave this way, and both files say so.JavaScript SDK specifics
fetch, Node 18+.@betadist-tag while Core v2 is beta.getAccessTokenmay be async here; in the React SDK it is sync only.mainNetanddevelopmentboth resolve to the beta host today.mainNetdoes not mean production — V2 is not deployed to mainnet, and the export name invites the wrong conclusion.TrustlessWorkApiErrororTrustlessWorkNetworkError; the Axios-specific Problem Details helper does not exist here.Not included
The V2 Blocks surface, which is not finished.
skills/js-sdkis a compressed, agent-facing reference; the JS SDK repository separately holds a 34-page GitBook set under.gitbook-migration/that is the fuller developer documentation.