Skip to content

0.4.0

Compare
Choose a tag to compare
@eodiandie eodiandie released this 14 Mar 07:28
· 56 commits to main since this release
8dda1d5

feat(core): Add Stake 2.0 related APIs support.

  • freezebalancev2: stake TRX to obtain TRON Power (voting rights) and a specified type of resource (bandwidth or energy)
  • unfreezebalancev2: unstake TRX to release resource obtained and meanwhile TRON Power will be released and all corresponding votes will be revoked
  • delegateresource: delegate resource to an address
  • undelegateresource: undelegate resource API
  • withdrawexpireunfreeze: API used to withdraw unstaked TRX
  • getavailableunfreezecount: Inquiry API for the remaining times of unstaking
  • getcanwithdrawunfreezeamount: query the withdrawable balance of a specific timestamp
  • getcandelegatedmaxsize: query the amount of delegatable resources of a specified resource type for an address
  • getdelegatedresourcev2: query the detail of resource delegated by fromAddress (owner) to toAddress (recipient)
  • getdelegatedresourceaccountindexv2: query the resource delegation index of an address