Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

txnbuild: add helpers for constructing transactions to send payments to contracts #5626

Open
tamirms opened this issue Mar 17, 2025 · 2 comments

Comments

@tamirms
Copy link
Contributor

tamirms commented Mar 17, 2025

Currently it's very easy to use txnbuild to send a payment to another account. However, it's not as straightforward to send payments to recipients which are smart contracts.

We should update txnbuild to support constructing SAC payments. The auth and resource / fee values should be hardcoded so that we can construct the the invoke host operation without requiring RPC's simulateTransaction endpoint.

See lightsail-network/java-stellar-sdk#677 and StellarCN/py-stellar-base#1023 for examples of how this functionality was implemented for the java and python SDKs

@tamirms
Copy link
Contributor Author

tamirms commented Mar 17, 2025

cc @marcelosalloum

@tamirms tamirms added this to the platform sprint 57 milestone Mar 17, 2025
@Shaptic
Copy link
Contributor

Shaptic commented Mar 17, 2025

Opened stellar/js-stellar-base#792 to track JS work for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

2 participants