DelegateResource

Delegate bandwidth or energy resources to other accounts in Stake2.0.

This endpoint supports both POST and GET methods.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
Defaults to TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g

Owner address, default hexString

string
Defaults to TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1

Resource receiver address

int64
Defaults to 1000000

Amount of TRX staked for resources to be delegated, unit is sun

string
Defaults to BANDWIDTH

Resource type: 'BANDWIDTH' or 'ENERGY'

boolean
Defaults to false

Whether it is locked (default is false), if it is set to true, the delegated resources cannot be undelegated within the lock period specified by lock_period. When the lock time is not over, if the owner delegates the same type of resources using the lock to the same address, the lock time will be set to the value specified by lock_period. If it is false, that means there is no lock-up period for this resource delegation, and the resource for the target address can be canceled at any time. The default value of this field is false

int64

Lock time,The unit is block interval(3 seconds), indicates the time of how many blocks which the delegation will be locked. Only when lock is true, this field is valid. If the delegate lock period is 1 day, the lock_period is: 28800. The minimum value of lock_period is the remaining lock period of this type of resource that was delegated last time, and the maximum value is 864000 (30 days). If lock is true and lock_period is not set or set to 0, lock_period will be set to the default value 86400 (3 days) automatically

boolean
Defaults to true

Optional, Whether the address is in base58 format.

int32

Optional, for multi-signature use

Responses

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