Skip to content

docs: add JavaScript SDK examples to contract API - #557

Merged
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Oluwasegun6921:docs/issue-134-contract-api-examples
Aug 31, 2026
Merged

docs: add JavaScript SDK examples to contract API#557
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Oluwasegun6921:docs/issue-134-contract-api-examples

Conversation

@Oluwasegun6921

Copy link
Copy Markdown
Contributor

Summary

Adds copy-paste-ready JavaScript examples to docs/CONTRACT_API.md for all public Accord contract functions.

What changed

  • Added a shared @stellar/stellar-sdk setup section.
  • Added state-changing examples showing simulation, transaction assembly, signing, and submission.
  • Added read-only examples using simulateTransaction and scValToNative.
  • Used the appropriate Soroban value encodings for addresses, amounts, and u64 proposal IDs.
  • Kept the changes limited to docs/CONTRACT_API.md.

Testing

  • Verified the JavaScript examples for syntax errors.
  • Confirmed no source code or unrelated files were modified.

Closes #134

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Oluwasegun6921 is attempting to deploy a commit to the thegreatfeez's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Oluwasegun6921 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@thegreatfeez
thegreatfeez merged commit 25b3dbe into Ac0rdP:main Aug 31, 2026
1 check failed
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.

Add a working Stellar JavaScript SDK code example for each public contract function in CONTRACT_API.md

2 participants