docs/02_cleos/02_how-to-guides/how-to-delegate-CPU-resource.md
Delegate CPU bandwidth for an account or application.
Make sure you meet the following requirements:
cleos system delegatebw command and its parameters.cleos.[[info | Note]]
| cleos is bundled with the EOSIO software. Installing EOSIO will also install cleos.
eosio.contracts repository is deployed and used to manage system resources.Perform the step below:
Delegate CPU bandwidth from a source account to a receiver account:
cleos system delegatebw <from> <receiver> <stake_net_quantity> <stake_cpu_quantity>
Where from is the account to delegate bandwidth from, receiver is the account to receive the delegated bandwidth, and stake_net_quantity and/or stake_cpu_quantity is the amount of tokens to stake for network (NET) bandwidth and/or CPU bandwidth, respectively.
Some examples are provided below:
bob to alice:Example Output
cleos system delegatebw bob alice "0 SYS" "0.01 SYS"
executed transaction: 5487afafd67bf459a20fcc2dbc5d0c2f0d1f10e33123eaaa07088046fd18e3ae 192 bytes 503 us
# eosio <= eosio::delegatebw {"from":"bob","receiver":"alice","stake_net_quantity":"0.0000 SYS","stake_cpu_quantity":"0.0100 SYS"...
# eosio.token <= eosio.token::transfer {"from":"bob","to":"eosio.stake","quantity":"0.0010 SYS","memo":"stake bandwidth"}
# bob <= eosio.token::transfer {"from":"bob","to":"eosio.stake","quantity":"0.0010 SYS","memo":"stake bandwidth"}
# eosio.stake <= eosio.token::transfer {"from":"bob","to":"eosio.stake","quantity":"0.0010 SYS","memo":"stake bandwidth"}