Questions tagged [account]
Questions about account types, account IDs and account addresses.
77
questions
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?
2
votes
0
answers
34
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
2
answers
143
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: ...
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 ...
5
votes
1
answer
93
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 ...
2
votes
1
answer
57
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 ...
3
votes
1
answer
55
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 ...
4
votes
2
answers
88
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?
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-...
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 ...
6
votes
0
answers
138
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 ...
4
votes
1
answer
65
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 ...
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.
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 ...
2
votes
2
answers
132
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 ...
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!&...
2
votes
1
answer
64
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"...
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 :
...
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 {
...
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?
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 ...
3
votes
1
answer
140
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 ...
3
votes
1
answer
113
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 ...
0
votes
1
answer
223
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,
};
...
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?
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 ...
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 ...
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/...
1
vote
1
answer
88
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 ...
2
votes
1
answer
236
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&...
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?...
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?
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.
...
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 ...
1
vote
1
answer
50
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
308
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 `...
2
votes
2
answers
225
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?
5
votes
2
answers
174
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 ...
4
votes
1
answer
211
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 ...
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
<
...
3
votes
1
answer
128
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> =...