Skip to content

Feature/tron support#32

Merged
iamnotstatic merged 11 commits intomainfrom
feature/tron-support
Mar 22, 2025
Merged

Feature/tron support#32
iamnotstatic merged 11 commits intomainfrom
feature/tron-support

Conversation

@iamnotstatic
Copy link
Owner

TRON Network Integration

Description

This PR adds full support for the TRON blockchain network, including wallet creation, balance checking, token transfers, and smart contract interactions. Implemented all standard wallet operations to align with the existing Ethereum and Bitcoin implementations, while respecting the unique aspects of TRON's architecture.

Type of change

  • New feature (non-breaking change which adds functionality)

Features added:

  • Create TRON wallets using random generation or mnemonic phrases
  • Generate addresses from private keys
  • Check TRX and TRC20 token balances
  • Send TRX and TRC20 tokens
  • Query transaction information
  • Get TRC20 token information
  • Execute smart contract calls on TRON network

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran yarn run test and my test cases cover all the lines and branches of the added code.
  • I ran yarn run build with success.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.

Implementation highlights:

  • Used TronWeb library to interface with TRON network
  • Added proper SUN to TRX conversion for balance and transfer methods
  • Implemented feature detection to ensure consistent method availability
  • Created full test suite for TRON operations
  • Updated README with TRON-specific examples and documentation

@iamnotstatic iamnotstatic merged commit bf0b604 into main Mar 22, 2025
0 of 2 checks passed
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