DelegateResource

Recipes
🔒
Stake and Delegate Resources
Open Recipe
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is DelegateResourceContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows:

FieldTypeDescription
owner_addressstringTransaction initiator address.
resourcestringType of resource. (Enum: BANDWIDTH, ENERGY)
receiver_addressstringResource receiver address.
balanceInt64Amount of TRX for resource delegation. (Unit: sun)
lockboolWhether to lock the resource delegation. If true, the delegation cannot be canceled during the lock_period.
lock_periodInt64Lock duration in blocks (1 block ≈ 3 seconds). Only valid if lock is true. (e.g., 1 day = 28800)
Body Params
string
required
string
required
int64
required
string
required
boolean
Defaults to false
int64
boolean
Defaults to false
int32
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json