ReserveRepatriated
Event v101 → current #6Emitted when reserved balance is moved from one account to another.
View events on chainUseful for: developersanalytics
The Big Picture
Reserve repatriation moves reserved funds from one account to another without going through the free balance. This is used in scenarios like slashing (moving reserved collateral to a beneficiary) or deposit transfers. The destination_status determines whether the funds become free or reserved in the receiving account.
Use Cases
- Track reserve transfers between accounts
- Monitor slashing or deposit reallocation
- Build reserve balance tracking tools
From Chain Metadata
Some balance was moved from the reserve of the first account to the second account. Final argument indicates the destination balance type.
Triggers
Preconditions
- Source account has sufficient reserved balance
- Repatriation operation authorized
Effects
Postconditions
- Source reserved balance decreased
- Destination balance increased (reserved or free based on status)
Side Effects
- May affect existential deposit calculations for both accounts
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | from | AccountId | From account address (hex -> SS58) |
| 1 | to | AccountId | To account address (hex -> SS58) |
| 2 | amount | u64 | Amount in RAO (÷10⁹ for TAO) (RAO -> TAO (/ 10^9)) |
| 3 | destination_status | BalanceStatus | destination_status (BalanceStatus) |
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 });
// Subscribe to ReserveRepatriated events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Balances") &&
event.method === "ReserveRepatriated"
)
.forEach(({ event }) => {
console.log("ReserveRepatriated:", event.data.toHuman());
});
});Runtime Info
- Pallet Index
- 5
- Event Index
- 6
- First Version
- v101
- Current Version
- v393