delegate_resource
Delegate energy or bandwidth to another address (Stake 2.0). Returns unsigned transaction hex for signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient address (base58, starts with T) | |
| from | Yes | Delegator address (base58, starts with T) | |
| memo | No | Optional memo to attach to the transaction | |
| amount | Yes | Amount in TRX to delegate (e.g., '100.5') | |
| resource | Yes | Resource type | |
| lock_period | No | Lock period in blocks (~3 seconds each). If set, delegation cannot be undone until the lock expires. | |
| permission_id | No | Permission ID for multi-sig transactions |