You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@GrothenDI
per my understanding, a smart contract account can have both energy resources as well as bandwidth resource.
a smart contract account can stake TRX to acquire resources(energy or bandwidth)
use 'wallet/getaccountresource' endpoint to query the resouces(energy/bandwidth) a sc account have;
for the specific mechanism of how TRX resource model work,check it here ;
The special part would be the way to get (extra bandwith) and energy, as current we cannot directly call Tron API to do smart contract account resource gain through freezeBalanceV2 or delegateResource, but we can write smart contract logic to allow contract account itself to freezeBalanceV2. Delegate resource to smart contract address is not allowed in Tron.
I know It can have resource of energy. About bandwidth, I am a little puzzled.
The text was updated successfully, but these errors were encountered: