-
feat(core): support customizable gRPC interceptors
Note: developers can add customizable gRPC interceptors in ApiWrapper constructor, enabling embedding some customizable interceptor logic (eg: logging/metrics), before the request/after the response, of a gRPC call. -
feat(core): support more java-tron gRPC APIs introduced in 4.7.2 release as following:
cancelAllUnfreezeV2(): cancel all unstaking transactions in the waiting period.estimateEnergy (): estimate the energy required to successfully execute a smart contract transaction (parameter isFunction)estimateEnergyV2(): estimate the energy required to successfully execute a smart contract transaction (parameter iscallData)delegateResourceV2(): delegate bandwidth/energy to another account, new parameterlockPeriodis added, users can specify their own lock period.constantCallV2(): initiate constant contract call, support passcallData.triggerCallV2(): trigger a smart contract call, support passcallData.