Skip to main content

Questions tagged [accountdata]

Filter by
Sorted by
Tagged with
1 vote
1 answer
32 views

Increment sufficient & providers

Can someone please provide me with an example of when to increase sufficients and providers in an account? Providers The providers reference counter prevents Substrate pallets from storing data about ...
Yatusabes's user avatar
  • 788
1 vote
2 answers
41 views

How do I find out what caused a reserved balance, and what I should do to free it up

I have a reserved balance on my account of n DOT but I cannot remember what I did that would cause the amount to be reserved. Is there a way that I can discover the reason for the reservation, and ...
T9b's user avatar
  • 468
1 vote
0 answers
19 views

How to provide an AccountData type implementing some trait?

In pallet config, it would be convenient to require the AccountData type to implement a given trait, like: #[pallet::config] pub trait Config: frame_system::Config<AccountData: SomeCustomTrait&...
Hugo Trentesaux's user avatar
2 votes
1 answer
46 views

What is the flags field in system account info?

In the Polkadot-JS UI, one can query account data under Developer > Chain state > system > account. According to Polkadot Wiki, we know data, the additional data that belongs to this ...
btwiuse's user avatar
  • 301
1 vote
1 answer
56 views

How do I create an Asset account using polkadot JS with a reason other than Consumer?

So there are 4 reasons listed on ExistenceReason for an Asset account namely: Consumer, Sufficient, DepositHeld, DepositRefunded Usually minting an asset would use the Consumer reason. I'd like to ...
b0zero's user avatar
  • 533
4 votes
1 answer
55 views

Get a breakdown of DOT for an account

For any given account can I get a breakdown of DOT that is bonded, vested, locked, transferable, locked for democracy etc. Ideally looking for way to do it through py-substrate-interface or PolkadotJs ...
Pranay's user avatar
  • 141
0 votes
1 answer
18 views

account_sequence and suggested_fee in substrate

I am looking into rosetta-api for substrate. I have two questions regarding one of its endpoint construction/metadata Does substrate maintain an account_sequence number somewhere? where can I find it?...
Rusty Pythonic Script's user avatar
3 votes
2 answers
65 views

How to calculate Total Value Locked for a Substrate Chain? Should 'Reserved Balances' be included?

If you wanted to calculate TVL for a substrate chain would you include 'Reserved Balances'? Or would you only be interested in 'Locked Balances'? (Locked Balance = max lock on an account)
olliecorbs's user avatar
7 votes
2 answers
404 views

How to get bytes [u8; 32] from AccountId?

There is a way to convert [u8; 32] to AccountId T::AccountId::decode(&mut &bytes[..]).unwrap_or_default(); but how to do the reverse? let sender: T::AccountId = ensure_signed(origin)?; let ...
Stefan Muto's user avatar
10 votes
2 answers
115 views

How does the AccountData type work in FRAME runtimes?

The FRAME system for runtime development defines an AccountData type, which is coupled with data from the Balances Pallet in the Polkadot runtime. What other types of data could be tracked using this ...
Dan Forbes's user avatar