# delegateResource After staking and obtaining resources, resources can be delegated to multiple recipients through this interface. The optional lock parameter can specify whether the delegation can be revoked within 3 days. (v5.1.0 new interface) ## Usage ``` javascript tronWeb.transactionBuilder.delegateResource(amount, receiverAddress, resource, address, lock, options); ``` ## Parameters | Parameters | Parameter Description | Type | | ----------------- | -------------------------------------------------------------------- | ------- | | amount | the amount of assets to be delegated(sun), larger than 0 | Integer | | receiverAddress | the account address of receiving delegation (base58 or hex) | String | | resource | asset type to be delegated, optional BANDWIDTH or ENERGY | String | | address | owner address (base58 or hex) | String | | lock | enable the lock time limit, the default is false | Boolean | | options | optional fields | Object | ## Returns Object ## Example ``` javascript > const transaction = await tronWeb.transactionBuilder.delegateResource(10e6, 'receiverAddress', 'BANDWIDTH', 'TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC', false); ```