Skip to content

delegatebw - stake tokens for POWER ​

Delegates bandwidth from one user to another or self through a UOS token transfer or through transferring the bandwidth.

FieldTypeDescription
fromeosio::nameThe source account name. Authentication required
receivereosio::nameThe destination account name
stake_net_quantityeosio::assetThe amount of POWER to transfer
transferboolIf true transfers UOS tokens but not the POWER itself

CLI - cleos ​

sh
cleos push action eosio delegatebw '["from","receiver","5.00000000 UOS",true]' -p from

JavaScript - eosjs ​

java
await api.transact({
  actions: [
    {
      account: "eosio",
      name: "delegatebw",
      authorization: [{ actor: "from", permission: "active" }],
      data: {
        from: "from",
        receiver: "receiver",
        stake_net_quantity: "5.00000000 UOS",
        transfer: "true"
      },
    },
  ],
});