Skip to content

dapp: document clientMethod, noMethodReason and contract.Client.invoke (JS SDK 17.5.0) - #201

Merged
stellar-doxie[bot] merged 1 commit into
mainfrom
issue-agent/200-client-method-invoke
Dec 3, 2026
Merged

stellar-doxie[bot] merged 1 commit into
mainfrom
issue-agent/200-client-method-invoke

Conversation

@stellar-doxie

@stellar-doxie stellar-doxie Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from Doxie.

Closes #200

JS SDK 17.5.0 adds clientMethod and noMethodReason to each getContractMethods entry. It also adds contract.Client.invoke() for functions that get no client method. This PR documents both in skills/dapp/data-fetching.md, after the getContractMethods example.

  • Example comment now shows clientMethod.
  • New paragraph: the three noMethodReason values, the reserved and shared cases, and how to call them with contract.Client.invoke().
  • New eval evals/scenarios/dapp/07-client-method-collision.json for the delete / delete_ case.

Checked against js-stellar-sdk v17.5.0 src/rpc/server.ts, src/bindings/utils.ts, src/contract/client.ts, the CHANGELOG, and the published lib/esm typings.

JS SDK 17.5.0 adds clientMethod and noMethodReason to getContractMethods entries, and contract.Client.invoke for functions whose method name is reserved or shared. Add a dapp eval for the delete/delete_ case.
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-12-03 22:34 UTC

@stellar-doxie

stellar-doxie Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Automated message from Doxie.

Verified at 052e1cc:

  • clientMethod, noMethodReason and its three values match getContractMethods and clientMethodNames in js-stellar-sdk v17.5.0.
  • then and toString are in RESERVED_CLIENT_NAMES. delete sanitizes to delete_, so it shares that name with delete_.
  • contract.Client.invoke(client, name, args?, options?) is in the published 17.5.0 typings. It returns an AssembledTransaction, simulated unless options.simulate is false.
  • preview build is green.

Merging.

@stellar-doxie
stellar-doxie Bot merged commit e360859 into main Dec 3, 2026
7 checks passed
@stellar-doxie
stellar-doxie Bot deleted the issue-agent/200-client-method-invoke branch December 3, 2026 22:34
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.

dapp skill: document getContractMethods clientMethod/noMethodReason and contract.Client.invoke (JS SDK 17.5.0)

0 participants