delegateResource
Parameter | Description | Type |
---|---|---|
amount | The amount of assets to be delegated (in SUN), must be larger than 0. | Integer |
receiverAddress | The account address of the receiving delegation (Base58 or Hex). | String |
resource | Asset type to be delegated, optional values: BANDWIDTH or ENERGY . | String |
address | Owner address (Base58 or Hex). | String |
lock | Enable the lock time limit, the default is false . | Boolean |
lockPeriod | When lock is true , this specifies the lock time in blocks. It should be larger than the lockup blocks left of the address for new resource delegation of the same type. | Integer |
options | Optional fields (such as permissionId for multi-signature). | Object |
Object