js-stellar-base icon indicating copy to clipboard operation
js-stellar-base copied to clipboard

Add a way to build SAC payments without transaction simulation

Open Shaptic opened this issue 9 months ago • 1 comments

Currently it's very easy to use the SDK 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 the Operation wrapper 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 https://github.com/lightsail-network/java-stellar-sdk/pull/677 and https://github.com/StellarCN/py-stellar-base/pull/1023 for examples of how this functionality was implemented for the java and python SDKs

Shaptic avatar Mar 17 '25 22:03 Shaptic

Hey Shaptic,,,

This one caught my eye ... adding native support for SAC payments without needing transaction simulation is a solid improvement. Looks like the current setup’s great for basic payments, but yeah... when you're talking smart contract payouts, it's a whole different game.

I’d love to take a swing at this. My team and I can update the Operation wrapper to construct SAC payments with those fixed auth/resource/fee values baked in... clean and no RPC detour. Already peeked at the Java and Python PRs — smart approach there, and we’re ready to bring that clarity to the JS side too.

I’ve been deep in blockchain since 2017... Forbes Tech Council writer, investor, and dev. Always excited to get under the hood and ship practical tools for serious devs.

Here’s my work if you wanna check it out: https://vyudu-links.netlify.app/

Let’s ship this together,,,

Cheers,

VyuduInc avatar Jun 16 '25 16:06 VyuduInc