Skip to content

feat(examples): add TRX DelegateResource example scripts#8253

Open
bhavidhingra wants to merge 1 commit intomasterfrom
copilot/add-trx-delegate-resource-example
Open

feat(examples): add TRX DelegateResource example scripts#8253
bhavidhingra wants to merge 1 commit intomasterfrom
copilot/add-trx-delegate-resource-example

Conversation

@bhavidhingra
Copy link
Contributor

Summary

  • Adds an example script (examples/ts/trx/delegate-resource.ts) demonstrating how to build and sign a TRX DelegateResource transaction via the BitGo platform API
  • Follows the existing TRX example pattern (using BitGo from 'bitgo', TODO-style configuration)
  • Covers the full flow: wallet setup, prebuild transaction, unlock session, sign and send

Test plan

  • Verify the script compiles without errors
  • Run the script against a testnet wallet with frozen TRX balance to confirm the delegation flow works end-to-end
  • Verify both ENERGY and BANDWIDTH resource types work

🤖 Generated with Claude Code

@bhavidhingra bhavidhingra requested a review from a team as a code owner March 5, 2026 18:11
@bhavidhingra bhavidhingra marked this pull request as draft March 5, 2026 18:12
@bhavidhingra bhavidhingra force-pushed the copilot/add-get-account-resources-method branch from 7038a4f to d286299 Compare March 6, 2026 10:19
@sachushaji
Copy link
Contributor

@claude

@bhavidhingra bhavidhingra changed the base branch from copilot/add-get-account-resources-method to master March 25, 2026 16:26
@bhavidhingra bhavidhingra force-pushed the copilot/add-trx-delegate-resource-example branch 4 times, most recently from 449452c to 41b0d66 Compare March 25, 2026 16:44
@bhavidhingra bhavidhingra changed the title feat(examples): add TRX DelegateResource example script feat(examples): add TRX DelegateResource example scripts Mar 25, 2026
Add an example script demonstrating how to build and sign a TRX
DelegateResource transaction via the BitGo platform API. This allows
delegating frozen ENERGY or BANDWIDTH resources to another address.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

TICKET: CHALO-350
@bhavidhingra bhavidhingra force-pushed the copilot/add-trx-delegate-resource-example branch from 41b0d66 to 8c426ae Compare March 25, 2026 16:47
@bhavidhingra bhavidhingra marked this pull request as ready for review March 25, 2026 16:47
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.

2 participants