post
https://api.shasta.trongrid.io/wallet/delegateresource
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
返回值
Transaction对象 - JSON object:未签名的交易,包含的字段请参考交易章节,由于交易类型为DelegateResourceContract,所以交易中的raw_data.contract[0].parameter.value中包含的字段如下:
| 字段 | 类型 | 描述 |
|---|---|---|
| owner_address | string | 交易发起者地址。 |
| resource | string | 资源类型。(枚举值: BANDWIDTH, ENERGY) |
| receiver_address | string | 资源接收方地址。 |
| balance | Int64 | 资源代理金额。(单位: sun) |
| lock | bool | 是否锁定资源代理。如果为 true,则在 lock_period 期间无法取消代理。 |
| lock_period | Int64 | 锁定时长 (单位: 区块数, 1 区块 ≈ 3 秒)。仅在 lock 为 true 时有效。(例如 1 天 = 28800) |