This call was removed in v150

This call is no longer available in the current runtime. Existed from v149 to v150. Shown here for historical reference.

set_balance_deprecated

Call Removed v149 → v150 (removed) #1

See [`Pallet ::set_balance_deprecated`].

Click items to navigate. Pan and zoom to explore.

From Chain Metadata

See [`Pallet::set_balance_deprecated`].

Input Parameters

#NameTypeDescription
0
who
MultiAddress who (MultiAddress)
1
new_free
Compact<u64> Cptnew_free (Compact<u64>) (SCALE compact -> integer)
2
old_reserved
Compact<u64> Cptold_reserved (Compact<u64>) (SCALE compact -> integer)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller authorized to make changes

Effects

Postconditions

  • Value successfully updated

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Build set_balance_deprecated call
const who = 0 as any /* MultiAddress */;
const new_free = 0;
const old_reserved = 0;

const call = api.tx[stringCamelCase("Balances")][stringCamelCase("set_balance_deprecated")](
  who,
  new_free,
  old_reserved
);

Runtime Info

Pallet Index
5
Call Index
1
First Version
v149
Removed In
v150