Freeze balance for resource allocation

Freezes TRX tokens in an account to gain bandwidth or energy resources. Frozen tokens will be locked for a specified duration.

Request

This endpoint expects an object.
owner_addressstringRequired
Base58 address of the account to freeze TRX from.
frozen_balanceintegerRequired

Amount to freeze, in SUN (1 TRX = 1,000,000 SUN).

frozen_durationintegerRequired
Duration to freeze the tokens, in days.
resourceenumRequired
Type of resource to gain from freezing.
Allowed values:
visiblebooleanOptional

Indicates if the address is base58 (true) or hex (false).

Response

Unsigned transaction object for freeze operation.
txIDstring or null
raw_dataobject or null
raw_data_hexstring or null