Skip to content

Releases: dszi/go-tron

v0.1.0-alpha

18 Mar 10:44
Compare
Choose a tag to compare

go-tron v0.1.0-alpha

⚠️ Alpha Release - Early Development Version

This is an alpha release of go-tron.
It provides a basic implementation of key RPC APIs, with more features planned for future updates.

📌 Note:

  • This version is still under active development.
  • Some APIs may change in later releases.
  • Bug reports and feedback are welcome!

🛠 Implemented RPC Interfaces

🔹 Account Management

  • GetAccount - Retrieve account details.
  • GetAccountBalance - Get the balance of a given account.
  • GetAccountResource - Get resource-related information of an account.
  • CreateAccount - Create a new TRON account.
  • UpdateAccount - Update account details.
  • GetRewardInfo - Retrieve reward details for an account.

🔹 Transactions

  • CreateTransaction - Create a new transaction.
  • BroadcastTransaction - Broadcast a signed transaction to the network.
  • GetTransactionByID - Retrieve transaction details by ID.
  • GetTransactionInfoByID - Get transaction execution information.
  • GetTransactionFromPending - Retrieve a transaction from pending pool.
  • GetTransactionListFromPending - List all pending transactions.
  • TotalTransaction - Get total transaction count.

🔹 Resource Management

  • FreezeBalance - Freeze TRX for bandwidth or energy.
  • UnfreezeBalance - Unfreeze previously frozen TRX.
  • WithdrawBalance - Withdraw rewards.
  • UnfreezeAsset - Unfreeze assets.
  • UnfreezeBalanceV2 - New version of balance unfreeze.
  • WithdrawExpireUnfreeze - Withdraw expired unfreeze balance.
  • DelegateResource - Delegate bandwidth/energy to another account.
  • UnDelegateResource - Cancel resource delegation.
  • CancelAllUnfreezeV2 - Cancel all unfreeze operations.

🔹 Witness (Super Representative) Management

  • VoteWitnessAccount - Vote for witnesses.
  • ListWitnesses - List all active witnesses.
  • CreateWitness - Register as a witness.
  • UpdateWitness - Update witness details.
  • GetBrokerageInfo - Retrieve brokerage rate information.
  • UpdateBrokerage - Update the brokerage rate.

🔹 Asset Management

  • CreateAssetIssue - Issue a new token.
  • GetAssetIssueList - Get all issued assets.
  • GetPaginatedAssetIssueList - Get paginated asset issue list.
  • GetAssetIssueByAccount - Get assets issued by an account.
  • GetAssetIssueByName - Get an asset by its name.
  • GetAssetIssueById - Retrieve asset details by ID.
  • TransferAsset - Transfer assets between accounts.
  • ParticipateAssetIssue - Participate in an asset issue.
  • UpdateAsset - Update asset parameters.

🔹 Block Management

  • GetNowBlock - Retrieve the latest block.
  • GetBlockByNum - Get block details by height.
  • GetBlockByID - Get block details by block ID.
  • GetNextMaintenanceTime - Get next network maintenance time.

🔹 Market Management

  • GetMarketOrderByAccount - Retrieve market orders by account.
  • GetMarketPairList - Get a list of market trading pairs.
  • GetMarketOrderListByPair - Get all market orders for a pair.
  • GetMarketPriceByPair - Retrieve market price of a trading pair.
  • GetMarketOrderById - Get market order details by ID.
  • GetBurnTrx - Get TRX burned by transactions.

🔹 Smart Contracts

  • DeployContract - Deploy a smart contract.
  • TriggerContract - Execute a smart contract.

🔹 Shielded & Privacy

  • GetSpendingKey - Retrieve a spending key.
  • GetExpandedSpendingKey - Get expanded spending key.
  • GetAkFromAsk - Derive Ak from Ask.
  • GetNkFromNsk - Derive Nk from Nsk.
  • GetIncomingViewingKey - Retrieve incoming viewing key.
  • GetDiversifier - Generate a new diversifier.
  • GetRcm - Retrieve randomness component Rcm.
  • GetNewShieldedAddress - Generate a new shielded address.

🔹 Network Information

  • ListNodes - Get the list of connected nodes.
  • GetPendingSize - Get the size of the pending transaction pool.
  • GetBandwidthPrices - Retrieve current bandwidth pricing.
  • GetEnergyPrices - Retrieve energy pricing details.
  • GetMemoFee - Get the fee for transaction memos.

📝 Notes

  • This version is not production-ready and is subject to changes.
  • If you encounter any issues, please report them in the GitHub Issues.

🚀 Stay tuned for upcoming releases!