Questions tagged [account]

Questions about account types, account IDs and account addresses.

Filter by
Sorted by
Tagged with
0 votes
2 answers
13 views

Fund transferred to smart contract address not showing in balances

I deploy an ink smart contract through a properly configured pallet_contracts (4.0.0-dev from the Substrate branch polkadot-v0.9.29) on chain. Then I use the unique address of that smart contract and ...
  • 283
3 votes
1 answer
86 views

Why do some crowdloan accounts have free balance?

For example, paraID 2000. The slot pallet is holding in reserve only the amount of balance that is reserved, however the total crowlodan account (which should hold the amount of tokens raised on the ...
1 vote
1 answer
33 views

Are there two types of sovereign accounts in Polkadot/Substrate?

The treasury pallet has the following code: /// The treasury's pallet id, used for deriving its sovereign account ID. #[pallet::constant] type PalletId: Get<PalletId>; https://github.com/...
  • 5,464
1 vote
1 answer
45 views

how to retrieve the list of public key addresses of all validators?

I am writing a custom gRPC server(not in runtime) and i want to retrieve the public keys of the validators to verify messages signed by them, but i need their public key addresses, how to do that in ...
1 vote
1 answer
63 views

What is a "sovereign" account in Polkadot/Substrate?

I have seen "sovereign" accounts used in multiple places in the Polkadot ecosystem yet I cannot find a formal definition of what a "sovereign" account is. What is a "sovereign&...
  • 5,464
0 votes
1 answer
10 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?...
0 votes
0 answers
21 views

Add additional information for substrate user account

At the time of creating the user and keys, I need a way to add a field or fields related to this particular blockchain network, such as role. Is there a solution?
1 vote
1 answer
61 views

how to operate the sovereign address's balance

If the "sovereign account" has some balance or vesting balance on a parachain, how to operate the sovereign address's balance? Example: para2000's sovereign account has 100Unit on para2001. ...
1 vote
0 answers
35 views

using any account for offchain worker signed transaction

I'm trying to implement the following sequence: Alice calls extrinsicA extrinsicA calls off-chain worker off-chain worker invokes an external service off-chain worker uses Alice for a signed ...
1 vote
1 answer
23 views

How to use as_derivative function found in the Utility pallet?

I found the as_derivative() function call in the FRAME Utility pallet which suggests that I can use it to call a function from address_A on behalf of address_B, provided that address_B was made as a ...
1 vote
1 answer
38 views

Compare static account stored in StorageMap [closed]

I have made a custom pallet that is storing a map of accountId and u32 in StorageMap Key: accountId("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY") value: u32 After storing it, I want ...
0 votes
0 answers
39 views

Get accounts managed by dev node

How to get accounts from dev node? By default dev node start with accounts derived from mnemonic bottom drive obey lake curtain smoke basket hold race lonely fit walk As mentioned here How can I get ...
  • 101
1 vote
1 answer
16 views

how to set a name to newly generated keys at relay_chain & parachain_template for v0.9.28

I was looking for an option to set a name for keys in both relay_chain & parachain_template For that, I was trying to generate new keys from relay_chain & parachain_template of v0.9.28 where I ...
0 votes
2 answers
101 views

Convert `String` to `AccountId` in ink! contract

I want to write a method which takes a String and converts it to an AccountId, like this: pub fn send( &mut self, address: String ) -> Result<()> { // Some type conversion `...
  • 1
2 votes
2 answers
74 views

How we can Create Wallet / Generate address in polkadot

I want to Create Wallet / Generate address like in ethereum we use web3.py but how could I do same thing in polkadot by using python?
4 votes
2 answers
85 views

<T::Lookup as StaticLookup>::Source vs T::AccountId?

I noticed https://github.com/paritytech/substrate/issues/6042 was recently resolved, replacing T::AccountId with <T::Lookup as StaticLookup>::Source. Substrate docs don't mention what is the ...
  • 399
3 votes
1 answer
149 views

How to pass an AccountId to a parameter of type <T::Lookup as StaticLookup>::Source?

I am using pallet_assets for creating custom assets and I want to call the transfer function from pallet_assets in my other custom pallet. The thing is I want to pass the AccountId of the recipient ...
1 vote
0 answers
43 views

How to do a manual implementation for 'AccountId'

I am working on creating a custom map which takes T::AccountId as a perimeter: #[pallet::storage] #[pallet::getter(fn declaration_map)] pub(super) type Declarations<T: Config> = StorageMap < ...
2 votes
1 answer
85 views

Using T::AccountId in a custom map

I would like to map T::AccountId to a custom struct I have Amendments <AccountId: #[pallet::storage] #[pallet::getter(fn declaration_map)] pub(super) type Declarations<T: Config> =...
0 votes
1 answer
53 views

Fetch an account's id using its Identity

In kusama account recovery, you have to have your lost account's id (address) to initiate the recovery process, but when you lost an account, in most cases it's id is forgotten too. If we can kind of ...
  • 427
3 votes
1 answer
169 views

Is there a link or guide on how to get a Sovereign Account Address?

I'm currently working on opening an HRMP Channel on Rococo with another parachain. In order to do this, I need to send an XCM to the relay chain. One of the items within this message requires a ...
1 vote
1 answer
34 views

into_sub_account(sub) encode the SAME adress for different sub

Here is a simplified example of what I encounter: I have this function in my pallet: fn(...) -> ... { let idx = get_index(); // let address = T::PalletId::get().into_sub_account(idx); ...
  • 384
0 votes
2 answers
94 views

Manually implement `Default` for `AccountId`

I am creating a parachain with a custom pallet, where i have this set up in storage: pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId; pub type NeuronMetadataOf<...
5 votes
1 answer
115 views

Why is there no `Default` implementation for `T::AccountId`?

Starting with version 9.17 and greater I started getting these errors for the custom pallets I've made. Could I please get a pointer in resolving this issue? Example output from compiler: #[derive(...
2 votes
1 answer
65 views

convert ethereum public key to substrate public key

given a known ethereum public key, is it possible to determine a substrate public key for the same account (for the purpose of an airdrop)? i believe that substrate keys are interchangeable across ...
2 votes
3 answers
59 views

Different representation of the same address between polkadot-js and an explorer

I am trying to create an address for Kusama. Here is my code: const seed = bip39.mnemonicToSeedSync(WALLET_MNEMONIC, WALLET_PASSWORD); const privateKeyBuffer = bip32 .fromSeed(seed) ....
  • 131
3 votes
1 answer
216 views

How to convert a Substrate address to an Etherum address? [duplicate]

How can I convert a Substrate address to an Etherum address? There is an EVM to substrate address conversion that Edgeware provides: https://edgewa.re/keygen
13 votes
2 answers
104 views

What are some good use cases for anonymous proxies?

There are some good conceptual explainers on what anonymous proxies are, yet it's not clear to me which use cases they serve best. What are some problems that using anonymous proxies would solve? What ...
  • 2,162
2 votes
1 answer
42 views

How to create an escrow account without runtime upgrade

I'd like to create an account that is only usable through the root origin like the treasury account. It should be possible to transfer funds to it, but sending from it should only be possible through ...
5 votes
1 answer
70 views

Can I have one controller account from which I can handle/control the funds of multiple stash accounts?

I have multiple stash accounts with funds which I will bond/stake but I would like to handle them from one controller account. Is that possible ? If yes, is it safe / recommended ?
  • 1,148
6 votes
2 answers
133 views

Get account transactions using Substrate API

I think Substrate API is really messy and difficult to understand. How could I get all the transactions for an account? And getting account by address is also counterintuitive: you need to make a ...
  • 63
3 votes
3 answers
183 views

Generate AccountId from sr25519::Public

I am trying to run a benchmark for one of the test cases where I need to have some AccountId in storage to check and verify that the origin of the caller exists in storage I there any way to convert ...
  • 403
5 votes
1 answer
146 views

Convert [u8;32] to AccountId

I am trying to call an extrinsic with specific AccoundId, I have considered two options Generate AccountId from Key-Pair let caller = sr25519::Pair::from_string("//1", None) ....
  • 403
6 votes
2 answers
98 views

Is it possible to define a custom origin in my pallet?

The actors in my pallet are identified by the tuple (AccountId, CurrencyId) which requires most extrinsics to specify the CurrencyId enum as a separate argument. Example: #[pallet::weight(<T as ...
5 votes
2 answers
149 views

How to convert AccountId32 to T::AccountId?

I am trying to put some test accounts into the storage of the following structure. #[pallet::storage] #[pallet::getter(fn account_collection)] pub(super) type AccountsCollection<T: Config> = ...
  • 403
4 votes
1 answer
70 views

How we can manage the accounts with multiple chains on substrate? [closed]

I need to do the transaction from the multiple chains(Eth, Solana, etc) on the substrate How can we manage the accounts with that interoperability of the chain? Do we have any solution for that ...
14 votes
0 answers
112 views

Why is it called Anonymous Proxy? [closed]

Proxies can be setup to sign specific or all (any) transactions on behalf of an account. You could say that the account is proxied, if it has a proxy. There is a provision to create a keyless account ...
  • 831
2 votes
2 answers
52 views

Polkadot.js and Ledger device compatibility

I linked a new Ledger to the Polkadot.js wallet and transferred some refunded DOT tokens into this wallet. But when I opened up my Ledger Live again, the DOT account is showing a 0 balance. Then I ...
5 votes
2 answers
64 views

How to prevent Polkadot{.js} extension from injecting all addresses into the site's JavaScript context

By default the Polkadot{.js} extension injects all addresses that have been imported into the browser wallet when a connection is requested by a website. In comparison, the Metamask extension on ...
  • 610
8 votes
1 answer
230 views

How to bind an Ethereum H160 address with a Substrate H256 address?

I'm trying to bind a H160 address with a H256 address, if we assume this function: fn bind(origin: OriginFor<T>, address: H160 , signature: [u8; 130]) -> Result<(), Error<T>>{ ...
2 votes
2 answers
100 views

Benchmarking: RawOrigin::Root as AccountId

One of benchmarked extrinsic of custom pallet requires Root sender (or Sudo), uses pallet_assets from runtime trait implementation (no coupling here). To verify I'm using balance() method to confirm ...
5 votes
2 answers
111 views

How can you setup your own pre-configured account in a relay/parachain spec?

I'm going through the different tutorials and I discovered rococo-local and polkadot-local network and now I would like to hack these networks to define my own pre-configured accounts (ie: replace ...
0 votes
2 answers
70 views

The node template can't fetch the accounts from chain-spec.rs

pub fn development_config() -> Result<ChainSpec, String> { let wasm_binary = WASM_BINARY.ok_or_else(|| "Development wasm not available".to_string())?; Ok(ChainSpec::...
4 votes
2 answers
112 views

How do treasury accounts compare to end user accounts in FRAME?

I would like to understand how treasury accounts are created and used under the hood. How do they compare to end user accounts? Are they also just an AccountId to AccountInfo map in storage?
  • 2,162
8 votes
1 answer
97 views

How do parachain crowdloan accounts work?

Each parachain has a crowdloan account when they conduct crowdloans for the purpose of winning a slot auction. How are these crowdloan accounts generated, and does the parachain have the private keys ...
  • 1,667
8 votes
2 answers
193 views

What are the predefined accounts (ALICE, BOB, etc)?

When creating a blockchain node, I noticed that there are predefined accounts with a bunch of balances. Does everyone on my blockchain have access to these accounts? And how do I remove them?