Skip to content

Add direct and delegated Tron SignTransaction examples - #1467

Open
andrewkmin wants to merge 3 commits into
mainfrom
andrew/tron-sign-transaction-example
Open

Add direct and delegated Tron SignTransaction examples#1467
andrewkmin wants to merge 3 commits into
mainfrom
andrew/tron-sign-transaction-example

Conversation

@andrewkmin

Copy link
Copy Markdown
Collaborator

Summary

  • add an executable Tron SignTransaction example that builds with TronWeb, signs through Turnkey, and broadcasts the serialized transaction
  • add a delegated signer flow that configures a transfer-only active permission and signs with a key distinct from the transaction owner
  • make the Tron examples honor BASE_URL, support unique wallet names, and report failed broadcasts accurately
  • document the direct and delegated Nile testnet workflows and required environment variables

Why

This is the SDK companion to tkhq/mono#6939. It provides a repeatable way to exercise both supported Tron cases:

  1. the transaction owner signs directly
  2. the transaction owner delegates a Tron active permission to a different Turnkey key

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

@codesandbox-ci

codesandbox-ci Bot commented Aug 4, 2026

Copy link
Copy Markdown

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:

Sandbox Source
@turnkey/example-react-components Configuration

@andrewkmin
andrewkmin force-pushed the andrew/tron-sign-transaction-example branch from fc30873 to 1bc3636 Compare August 4, 2026 21:57
@andrewkmin
andrewkmin marked this pull request as ready for review August 4, 2026 22:07
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.

1 participant