---
# System prepended metadata

title: How vest KMA by pallet-vesting

---

# How vest KMA by pallet-vesting

1. Follow the sceenshot to create a vesting schedule.
![](https://i.imgur.com/DWScihP.png)
- signer: Who is going to vesting.
- target: Who is going to receive tokens once vesting is done.
- locked: The amount of tokens to be vested. These tokens are from signer.
- perBlock: How much token will be released each block.
- startingBlock: When the schedule will be started.

> Tips: There's a simple math here.
> ```
> locked = 10000;
> perBlock = 10;
> startingBlock = 350;
> so the vestingPeriod = locked / perBlock = 1000;
> This means the schedule will be ended at (1000 + 350);
> ```

2. Once current block height reaches `350`, `Ferdie` can claim his tokens.
![](https://i.imgur.com/D2bFJSA.png)

3. Surely `Alice` can claim tokens for `Ferdie`, becuase `ALice` creates the vesting schedule, she has the right to claim tokens for others, but she has to pay related fees.
![](https://i.imgur.com/41tGziS.png)
