Freeze balance using FreezeBalanceV2

Freezes TRX tokens in an account to gain ENERGY resources using the newer FreezeBalanceV2 mechanism. This version omits the frozen_duration parameter and is considered an improved alternative to /freezebalance.

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).

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 FreezeBalanceV2 operation.
visibleboolean or null
txIDstring or null
raw_dataobject or null
raw_data_hexstring or null

Hex-encoded raw transaction.