HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

UnDelegateResource

Cancel the delegation of bandwidth or energy resources to other accounts in Stake2.0.

Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is UnDelegateResourceContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows:

FieldTypeDescription
owner_addressstringTransaction initiator address.
resourcestringType of resource. (Enum: BANDWIDTH, ENERGY)
receiver_addressstringResource receiver address.
balanceInt64Amount of TRX for resource delegation. (Unit: sun)
Language
Click Try It! to start a request and see the response here!