Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address
— the address that owns the resources to delegate (hex format)receiver_address
— the address that will receive the delegated resources (hex format)balance
— the amount of TRX equivalent resources to delegate (in sun)resource
— the resource type to delegate (“BANDWIDTH” or “ENERGY”)lock
— optional boolean to lock the delegation (default: false)lock_period
— optional lock period in seconds (if lock is true)visible
— optional boolean to specify address format (default: false for hex format)
Response
visible
— boolean indicating address format usedtxID
— transaction ID hashraw_data
— raw transaction data object containing delegation contract detailsraw_data_hex
— hexadecimal representation of raw transaction data
Use case
Thewallet/delegateresource
method is used for:
- Sharing bandwidth or energy resources with other accounts that need them.
- Implementing resource rental or delegation services in DApps.
- Allowing users to sponsor transaction costs for other accounts.
- Building resource management systems that optimize usage across multiple addresses.
Body
application/json
Available options:
BANDWIDTH
, ENERGY