--- title: undelegateResource --- # undelegateResource The interface used to revoke delegated resource, which can specify the number of revoked resources. (v5.1.0 new interface) ## Usage ``` javascript const transaction = await tronWeb.transactionBuilder.undelegateResource(amount, receiverAddress, resource, address, options); ``` ## Parameters | Argument | Description | Type | | ------------------ | ------------------------------------------------------------------- | ------ | | amount | The amount of assets to be revoked (sun), larger than 0 | String | | receiverAddress | The account address to receive revoked delegation (base58 or hex) | String | | resource | Optional. Asset type of revoked delegation. Default is `BANDWIDTH`. | `BANDWIDTH` or `ENERGY` | | address | The account address of the revoked delegation asset (base58 or hex) | Number | | options | Permission id for multi-sign and block header for contract block header info. | `{ permissionId: number, blockHeader: ... }` | ## Returns Unsigned transaction object. ## Example ``` javascript const transaction = await tronWeb.transactionBuilder.undelegateResource(10e6, 'receiverAddress', 'BANDWIDTH', 'TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC'); ```