POSTDelegateResource

Tron Mainnethttps://tron-mainnet.nodit.io/wallet/delegateresource

Delegate bandwidth or energy resources to other accounts in Stake 2.0.

Request Body
owner_addressstringrequired

Transaction initiator address. (Format: Base58 or Hex)

receiver_addressstringrequired

Resource receiver address, in Base58 format or HEX format.

balanceinteger (int64)required

Amount of TRX to delegate or undelegate for resources. (Unit: sun)

resourcestringrequired

Type of resource. (Enum: "BANDWIDTH" or "ENERGY")

lockboolean

Optional. Whether to lock the resource delegation. If true, the delegation cannot be canceled during the lock_period.

lock_periodinteger (int64)

Lock duration in blocks (1 block ≈ 3 seconds). Only valid if lock is true. (e.g., 1 day = 28800)

visibleboolean

Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Permission_idinteger (int32)

Optional. Permission ID used for multi-signature account operations. Defaults to the owner permission (0) if unspecified.

Responses
owner_addressstring

Transaction initiator address. (Format: Base58 or Hex)

resourcestring

Type of resource. (Enum: BANDWIDTH, ENERGY)

receiver_addressstring

Resource receiver address.

balanceinteger (int64)

Amount of TRX for resource delegation. (Unit: sun)

lockboolean

Whether to lock the resource delegation. If true, the delegation cannot be canceled during the lock_period.

lock_periodinteger (int64)

Lock duration in blocks (1 block ≈ 3 seconds). Only valid if lock is true. (e.g., 1 day = 28800)

X-API-KEY
RequestCU30
cURL
curl -X POST "https://tron-mainnet.nodit.io/wallet/delegateresource" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "owner_address": "TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM",
    "receiver_address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
    "balance": 1000000,
    "resource": "ENERGY",
    "lock": false,
    "visible": false
  }'
Response
Example · 200
{}