Questions tagged [account]

Questions about account types, account IDs and account addresses.

Filter by
Sorted by
Tagged with
1 vote
2 answers
71 views

Add roles to accounts

Is it possible to add different role to the accounts? I mean some accounts can do more things on the chain than other. How it is possible to do?
Vamosz's user avatar
  • 55
2 votes
0 answers
35 views

Cant produce new blocks with custom ChainSpec file

I was using substrate version of 4.0.0-dev-41ad4a6c9d7 and following the Add Trusted Nodes for making a custom account as a Authorites account here, I can't able to produce new blocks, I don't know ...
Mojo's user avatar
  • 95
2 votes
1 answer
52 views

How to create different accounts in Substrate?

I would like to build a blockchain with Substrate where people can trade with products. They can log in in web, where they can see only their balances and products.I created private/public keypairs to ...
Vamosz's user avatar
  • 55
2 votes
0 answers
55 views

Deploy ink! contracts with unified accounts

I have a chain similar to mentioned in this question, where I'm trying to deploy ink! smart contracts. I'm setting my Environment like this: use ink::env::{Environment, DefaultEnvironment}; use ...
Discardo's user avatar
  • 382
1 vote
1 answer
26 views

Can contract create and control a proxy account?

Can a smart contract create and control a proxy account? If yes, how can I create a proxy account for a contract and how can I send transactions from my contract on behalf of my contract's proxy ...
Yrefef's user avatar
  • 73
3 votes
1 answer
62 views

How to add custom account as initial authorities in chain_spec.rs file

I've successfully added custom accounts in the Sudo account and pre-funded accounts following this stack adding an account but I also wanted to set custom accounts as initial PoA authorities. Thank ...
Max's user avatar
  • 31
0 votes
1 answer
36 views

What does Alice polkadot account mean?

In the polkadot account there is a private key and a public key. What does the predefined account "Alice" means? I mean in the pre defined account is "Alice" is the title of the ...
Syed Kamran's user avatar
0 votes
0 answers
48 views

Converting a H256/bytes32 into a generic AccountId for EVM precompiles

Overview We are building out a precompile for pallet-staking and have run into the tricky challenge of converting H256 types into generic AccountIds so that we can implement functions like nominate ...
Drew Stone's user avatar
  • 1,164
1 vote
2 answers
168 views

system.ExtrinsicFailed Token.NotExpendable

I'm working on a project that involves setting up a shared pot account. Anyone can fund this account, and the owner has the ability to withdraw money from it. However, I'm encountering an error: ...
Deepak Chaudhary's user avatar
2 votes
1 answer
38 views

Are there any reasons to ensure account existence through incrementing account's references?

As we know from this doc, account get reaped when it's consumers/providers/sufficients (all of them) reference count decreased to 0. These counters described as: /// The number of other modules that ...
Данила Алексеев's user avatar
5 votes
1 answer
94 views

adding an account

I just want to simply add an account in the development config but have no idea how to do it, i tried simply adding the seed in the development_config function but it dosent work, what can i do to add ...
Muhammed Rasheed's user avatar
2 votes
1 answer
64 views

AccountId in offchain worker

I'm working on Substrate based project. In the project, each blockchain validator has an offchain worker. author_insertKey() is used to set up a key so the offchain worker can sign transactions. Each ...
Maksim Ramanenkau's user avatar
3 votes
1 answer
57 views

How to filter extrinsics senders?

Let's imagine that we have some blacklist pallet that stores accounts that are restricted to make some calls. How do we implement origins filtering based on that blacklist for other pallets? We could ...
Данила Алексеев's user avatar
4 votes
2 answers
90 views

How to fetch all accounts in a pallet?

I need to change the balances of all the accounts in my custom pallet, For that first i need to fetch the accounts in the pallet. How to do this?
Deepak Chaudhary's user avatar
1 vote
1 answer
61 views

How to properly use AccountId for ECDSA keypairs

I'm working on the Swift library for Substrate networks and can't understand how AccountId should work for ECDSA. In Polkadot/Kusama, metadata returns AccountId as AccountId32 - 32-byte array. This 32-...
Yehor Popovych's user avatar
5 votes
2 answers
76 views

Is it possible to use ink! with Ethereum-style accounts?

Wondering if anyone knows whether ink! supports AccountIds which are ethereum-style accounts? Let's assume this would be a chain with a Unified Accounts setup, similar to Moonbeam. In specific, we ...
Justin Frevert's user avatar
6 votes
0 answers
147 views

How to generate a Moonbeam Unified Account using Subkey?

In the Moonbeam Unified documentation here, it says that Moonbeam natively supports "Ethereum-style address (H160 format), which is 40+2 hex-characters long, in a Substrate based chain" and ...
Luke Schoen's user avatar
  • 2,292
4 votes
1 answer
68 views

private key rotation

There's any private key rotation using substrate ? i ask this question regarding a did implementation, step are : hash a data and signe it with an account another account should be able to verify ...
lsroudi's user avatar
  • 65
1 vote
1 answer
51 views

Unified Accounts with POS

is there any repository who are implementing unified accounts with Proof of Stake (POS) consensus except moonbeam. we want H160 type of account for both Substrate and EVM Transactions.
BlockBird's user avatar
0 votes
1 answer
23 views

How we send the crowdloan reward to the parachain wallet?

As you know in crowdloan we the contributor contribute from the polkadot account(1D....). So according to that how send the reward to the contributors native chain account(XGT...). How we basically ...
Pankaj's user avatar
  • 1,896
2 votes
2 answers
135 views

Invalid AccountId provided, expected 32 bytes, found 20

I've implemented an evm-based Substrate chain (i.e. it uses the H160 address format), but when I try to open Accounts page on Polkadot explorer, I get this error: Invalid AccountId provided, expected ...
Discardo's user avatar
  • 382
4 votes
1 answer
122 views

How to verify that a signed payload of an unsigned extrinsic is signed by a local account?

I've been following the how-to guide to implementing unsigned extrinsic call with a signed payload. My pallet defines the following KeyTypeId: pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"ver!&...
digital illusion's user avatar
2 votes
1 answer
65 views

How do withdraw or transfer tokens from the custom predefined accounts in a private network?

I've created a custom network from node-template with more pallets (staking, babe,...) I've generated a custom chain_specs.json following this tutorial chain_specs.json { ... "genesis"...
Hoang Viet Nguyen's user avatar
0 votes
1 answer
51 views

Get pool name and stash account from nomination pool creator

Can you explain me how I retrieve (from Polkadot JS) : The nomination pool name (from a given pool Id) The stash account of nomination pool creator ? For example, here is the first nomination pool : ...
Apolixit's user avatar
1 vote
1 answer
50 views

Where does AccountId get instantiated with its concrete form?

In the substrate node runtime, I can see this : pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId; where Signature is just this: pub enum MultiSignature { ...
RoboT's user avatar
  • 377
2 votes
2 answers
104 views

Security discussion with mnemonic in polkadot extension

Does the extension save mnemonic in the browser? If yes, is it safe?
INcre's user avatar
  • 35
2 votes
1 answer
41 views

What is the intended purpose of `sudo_as` from the sudo pallet?

I ask myself, why this extrinsic (https://github.com/paritytech/substrate/blob/e9b0facf70eeb08032cc7e83548c62f0b4a24bb1/frame/sudo/src/lib.rs#L224-L263) exists? I mean the sudo key could execute any ...
Chralt's user avatar
  • 523
3 votes
1 answer
141 views

Unified accounts with AURA

I want to use unified accounts for a Substrate-based EVM chain. I've looked into the mooonbeam implementation, and they are using it with a custom module pallet-author-inherent which is used for block ...
Discardo's user avatar
  • 382
3 votes
1 answer
120 views

Getting `insufficient funds for gas * price + value` error when performing transaction with another account than Alice

I'd like to use Substrate Frontier as a private blockchain for my current project. I have set up a project using a frontier-template-node build and I am now trying to adjust its settings. I am ...
Olivier Hory's user avatar
0 votes
1 answer
227 views

How to generate a new account with seed using rust? [duplicate]

I tried the following code, using method generate. https://paritytech.github.io/substrate/master/sp_core/crypto/trait.Pair.html#method.generate use sp_core::{ sr25519, ed25519, Pair, }; ...
Amiya Behera's user avatar
1 vote
1 answer
33 views

Are proxy accounts part of the accounts in storage and how to identify them

When we query the system.account storage function we get back a list of accounts, are proxy accounts part of this list and if yes, is there a way to identify them?
Pranay's user avatar
  • 141
0 votes
2 answers
34 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 ...
Alex Sed's user avatar
  • 545
3 votes
1 answer
101 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 ...
Santiago Balaguer's user avatar
1 vote
1 answer
56 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/...
Bruno's user avatar
  • 8,140
1 vote
1 answer
89 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 ...
dadzerlaze's user avatar
  • 1,073
2 votes
1 answer
238 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&...
Bruno's user avatar
  • 8,140
0 votes
1 answer
14 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
1 vote
1 answer
53 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?
Mehran Mazhar's user avatar
1 vote
1 answer
82 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. ...
Bart Yang's user avatar
1 vote
0 answers
88 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 ...
digital illusion's user avatar
1 vote
1 answer
52 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 ...
Jorrin Bruns's user avatar
0 votes
0 answers
56 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 ...
l00k's user avatar
  • 101
1 vote
1 answer
52 views

What are some other use cases for pallet indices?

The default implementation is to use a u32 as AccountIndex. This means that only 2^32 claims can be made. Besides reserving an integer, can we use String as AccountIndex thereby referencing an account ...
Purple_Turtle's user avatar
1 vote
1 answer
18 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 ...
Mojo's user avatar
  • 95
0 votes
2 answers
314 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 `...
Yunseo's user avatar
  • 1
2 votes
2 answers
233 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?
Shahbaz Ali's user avatar
5 votes
2 answers
176 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 ...
nazar-pc's user avatar
  • 539
4 votes
1 answer
214 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 ...
Eric Segall's user avatar
3 votes
0 answers
59 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 < ...
Jacgoldberg's user avatar
3 votes
1 answer
132 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> =...
Jacgoldberg's user avatar