Delegate resource to another account

Delegates bandwidth or energy resources from one account to another. The delegator must have previously frozen TRX to obtain the resources.

Request

This endpoint expects an object.
owner_addressstringRequired
Base58 address of the account delegating the resource.
receiver_addressstringRequired
Base58 address of the account receiving the delegated resource.
balanceintegerRequired

Amount of resource to delegate, in SUN (1 TRX = 1,000,000 SUN).

resourceenumRequired
Type of resource to delegate.
Allowed values:
lockbooleanOptional
Whether the delegated resource is locked.
visiblebooleanOptional
Indicates if addresses are in base58 format.

Response

Unsigned transaction object for delegating resource.
visibleboolean or null
txIDstring or null
raw_dataobject or null
raw_data_hexstring or null