Skip to content

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

Draft
bhavidhingra wants to merge 2 commits intocopilot/add-get-account-resources-methodfrom
copilot/add-trx-delegate-resource-example
Draft

feat(examples): add TRX DelegateResource example script#8253
bhavidhingra wants to merge 2 commits intocopilot/add-get-account-resources-methodfrom
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 and others added 2 commits March 5, 2026 19:45
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>
@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
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