Skip to content

Frontend Template Should Have A Method Requiring a Signed Transaction #290

Closed

Description

@masch

Edit from maintainer team: the frontend template does not have a signed & sent transaction, so the FE code lacks a good example for people to start from. Use this as the problem statement to solve, and update the Guess the Number component appropriately

Hi!

To support continued learning and provide a clear example for the community, what do you think about adding a new method to the GuessTheNumber component that requires a signed transaction?

I think it would be very beneficial to have a method that requires a signature, as it would demonstrate how to reuse the scaffolding's main utilities (like the hooks and context) for an authenticated action.

For example, we could add a reset method to the GuessTheNumber component that can only be called with an admin's signature.

What are your thoughts?

Thanks! 🙏

Activity

  1. Chesblaw commented on Nov 11, 2025

    @Chesblaw

    @masch can you assign me?

  2. tupui commented on Nov 11, 2025

    @tupui
    Contributor

    Hi all, can you give a bit more details here about what you are trying to do? The contract has already a function that requires a signature require_auth.

  3. changed the title [-]Proposal: GuessTheNumber Contract - Add a Method Requiring a Signed Transaction[/-] [+]Frontend Template Should Have A Method Requiring a Signed Transaction[/+] on Nov 11, 2025
  4. pselle commented on Nov 11, 2025

    @pselle
    Contributor

    @masch I think what you found here is that the frontend repo should have an example of signing and sending a transaction. @chadoh started an effort over here: stellar-scaffold/ui#123, but we're open to someone picking this up since that's only a draft.

    I updated the title of this issue and may add a maintainer note on the top of your original issue to make sure we work on this!

  5. masch commented on Nov 13, 2025

    @masch
    ContributorAuthor

    @masch I think what you found here is that the frontend repo should have an example of signing and sending a transaction. @chadoh started an effort over here: theahaco/scaffold-stellar-frontend#123, but we're open to someone picking this up since that's only a draft.

    I updated the title of this issue and may add a maintainer note on the top of your original issue to make sure we work on this!

    Thank you for take it. I'm available to test it when is ready.

  6. pselle commented on Nov 13, 2025

    @pselle
    Contributor

    @masch Chad marked his PR as ready for review if you want to pull it/test it out and leave your feedback there! stellar-scaffold/ui#123

  7. masch commented on Nov 14, 2025

    @masch
    ContributorAuthor

    @masch Chad marked his PR as ready for review if you want to pull it/test it out and leave your feedback there! theahaco/scaffold-stellar-frontend#123

    I pulled the branch and tested it on my own contract, which requires signed transactions. It's working perfectly.! Thank you!

  8. pselle commented on Nov 18, 2025

    @pselle
    Contributor

    PR is merged! Thanks for helping us test @masch!

  9. masch commented on Nov 18, 2025

    @masch
    ContributorAuthor

    PR is merged! Thanks for helping us test @masch!

    Great! Thanks for taking the suggestion. Do you know when this is scheduled to be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions