Balances::Event
Variant 36 v393pallet_balances::pallet::Event
The `Event` enum of this pallet
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (22)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Endowed | An account was created with some free balance. | |
| 1 | DustLost | An account was removed whose balance was non-zero but below ExistentialDeposit, resulting in an outright loss. | |
| 2 | Transfer | Transfer succeeded. | |
| 3 | BalanceSet | A balance was set by root. | |
| 4 | Reserved | Some balance was reserved (moved from free to reserved). | |
| 5 | Unreserved | Some balance was unreserved (moved from reserved to free). | |
| 6 | ReserveRepatriated | Some balance was moved from the reserve of the first account to the second account. Final argument indicates the destination balance type. | |
| 7 | Deposit | Some amount was deposited (e.g. for transaction fees). | |
| 8 | Withdraw | Some amount was withdrawn from the account (e.g. for transaction fees). | |
| 9 | Slashed | Some amount was removed from the account (e.g. for misbehavior). | |
| 10 | Minted | Some amount was minted into an account. | |
| 11 | Burned | Some amount was burned from an account. | |
| 12 | Suspended | Some amount was suspended from an account (it can be restored later). | |
| 13 | Restored | Some amount was restored into an account. | |
| 14 | Upgraded | who: AccountId | An account was upgraded. |
| 15 | Issued | amount: u64 | Total issuance was increased by `amount`, creating a credit to be balanced. |
| 16 | Rescinded | amount: u64 | Total issuance was decreased by `amount`, creating a debt to be balanced. |
| 17 | Locked | Some balance was locked. | |
| 18 | Unlocked | Some balance was unlocked. | |
| 19 | Frozen | Some balance was frozen. | |
| 20 | Thawed | Some balance was thawed. | |
| 21 | TotalIssuanceForced | The `TotalIssuance` was forcefully changed. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 22 possible variants.
- Size
- variable (1+ bytes)
Examples
Endowed = Endowed(account, free_balance)
0x00<field0><field1>00 Variant index 0 = Endowedfield 0 account: AccountIdfield 1 free_balance: u64DustLost = DustLost(account, amount)
0x01<field0><field1>01 Variant index 1 = DustLostfield 0 account: AccountIdfield 1 amount: u64Transfer = Transfer(from, to, amount)
0x02<field0><field1><field2>02 Variant index 2 = Transferfield 0 from: AccountIdfield 1 to: AccountIdfield 2 amount: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Balances::Event — variant "Endowed"
const value = registry.createType("Balances::Event", { Endowed: { account: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", free_balance: 1_000_000_000n } });
console.log("Hex:", value.toHex());Type Parameters
T
I
Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 36
- Kind
- Variant
- Path
- pallet_balances::pallet::Event
- Runtime
- v393