Reserved

Event v101 → v424, v432 → current #4

Emitted when balance is moved from free to reserved.

View events on chain

From Chain Metadata

Some balance was reserved (moved from free to reserved).

Migration Notes

v424 v432 Breaking

amount changed from u64 to TaoBalance

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Triggers

Preconditions

  • Account has sufficient free balance
  • Reserve operation requested

Effects

Postconditions

  • Free balance decreased
  • Reserved balance increased

Side Effects

  • Reserved balance cannot be transferred

Event Data

#NameTypeDescription
0
who
AccountId who: Account address (32 bytes, SS58-encoded) (hex -> SS58)
1
amount
TaoBalance T::Balanceamount: Balance in chain native currency (RAO for TAO; ÷10⁹)

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Subscribe to Reserved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Balances.Reserved.get(block.hash);
  for (const evt of events) {
    console.log("Reserved:", evt.payload);
  }
});

On-Chain Activity

Emission Frequency
●●○○○○ Moderate 10K–100K emissions

Occasional use

#52 most emitted event

As of block 9,385,000

Version History

v101 block 1 2 args
v432 block 8,636,190 2 args Current

Runtime Info

Pallet Index
5
Event Index
4
First Version
v101
Current Version
v490