Skip to content
mazezenPublic

About

Parse Tron Operations. Check whether "operations" has a certain permission

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

----------------------------
|  Parse Tron Operations   |
----------------------------

------------------------------------------------

Tron account has a function to check the balance

The Active Permission ID of Tron starts from 2 and increments automatically (Owner = 0, Witness = 1).
The default single-sign account typically only has one Active Permission (ID=2).
However, users can create up to 8 Active Permissions, each with its own unique ID (2, 3, 4...), set of operations, threshold, and keys.
If an address is added to the second or third Active Permission (ID=3 or 4), hardcoding a specific number such as (4) will result in signature failure (permission mismatch or insufficient weight)

------------------------------------------------

Install
go get github.com/mazezen/pto@latest

------------------------------------------------

operations string
Eg: 7fff1fc0033ec30f000000000000000000000000000000000000000000000000

is support DelegateResourceContract(57): support

support operation collections:
ops: [AccountCreateContract TransferContract TransferAssetContract VoteAssetContract VoteWitnessContract WitnessCreateContract AssetIssueContract WitnessUpdateContract ParticipateAssetIssueContract AccountUpdateContract FreezeBalanceContract UnfreezeBalanceContract WithdrawBalanceContract UnfreezeAssetContract UpdateAssetContract ProposalCreateContract ProposalApproveContract ProposalDeleteContract SetAccountIdContract UnknownOperation CreateSmartContract TriggerSmartContract UnknownOperation UpdateSettingContract ExchangeCreateContract ExchangeInjectContract ExchangeWithdrawContract ExchangeTransactionContract UpdateEnergyLimitContract ClearABIContract UpdateBrokerageContract FreezeBalanceV2Contract UnfreezeBalanceV2Contract WithdrawExpireUnfreezeContract DelegateResourceContract UnDelegateResourceContract CancelAllUnfreezeV2Contract]

About

Parse Tron Operations. Check whether "operations" has a certain permission

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages