Add direct and delegated Tron SignTransaction examples - #1467
Open
andrewkmin wants to merge 3 commits into
Open
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1bc3636:
|
andrewkmin
force-pushed
the
andrew/tron-sign-transaction-example
branch
from
August 4, 2026 21:57
fc30873 to
1bc3636
Compare
andrewkmin
marked this pull request as ready for review
August 4, 2026 22:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SignTransactionexample that builds with TronWeb, signs through Turnkey, and broadcasts the serialized transactionBASE_URL, support unique wallet names, and report failed broadcasts accuratelyWhy
This is the SDK companion to tkhq/mono#6939. It provides a repeatable way to exercise both supported Tron cases:
The delegated example preserves the owner permission, restricts the delegated key to
TransferContract, and validates the permission ID, signer weight, threshold, and operations bitmap before signing.Validation
tsc --noEmitsdk/main