Balances::Error
Variant 423 v393pallet_balances::pallet::Error
The `Error` enum of this pallet.
About This Type
Error enum for the Error pallet.
Contains all error types that the Error pallet can return when a call fails.
Variants (12)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | VestingBalance | none | Vesting balance too high to send value. |
| 1 | LiquidityRestrictions | none | Account liquidity restrictions prevent withdrawal. |
| 2 | InsufficientBalance | none | Balance too low to send value. |
| 3 | ExistentialDeposit | none | Value too low to create account due to existential deposit. |
| 4 | Expendability | none | Transfer/payment would kill account. |
| 5 | ExistingVestingSchedule | none | A vesting schedule already exists for this account. |
| 6 | DeadAccount | none | Beneficiary account must pre-exist. |
| 7 | TooManyReserves | none | Number of named reserves exceed `MaxReserves`. |
| 8 | TooManyHolds | none | Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`. |
| 9 | TooManyFreezes | none | Number of freezes exceed `MaxFreezes`. |
| 10 | IssuanceDeactivated | none | The issuance cannot be modified since it is already deactivated. |
| 11 | DeltaZero | none | The delta cannot be zero. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 12 possible variants.
- Size
- variable (1+ bytes)
Examples
VestingBalance
0x0000 Variant index 0 = VestingBalanceLiquidityRestrictions
0x0101 Variant index 1 = LiquidityRestrictionsInsufficientBalance
0x0202 Variant index 2 = InsufficientBalanceCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Balances::Error — variant "VestingBalance"
const value = registry.createType("Balances::Error", "VestingBalance");
console.log("Hex:", value.toHex());Type Parameters
T
I
Referenced By (21)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 423
- Kind
- Variant
- Path
- pallet_balances::pallet::Error
- Runtime
- v393