Questions tagged [accountid]
The accountid tag has no summary.
23 questions
0 votes
1 answer
32 views
How to "inspect" AccountId20 keys?
Alith has Public Address: 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac and Private Key: 0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133. Using subkey inspect I could not find a way to ...
1 vote
2 answers
49 views
How to Convert String Address to Substrate AccountId in Runtime for Storage Map?
I am working on a Substrate runtime and would like to convert a string representation of an address, such as "5HYKElof8yaKoyCX9L...GHii4BkrgvKymz34W", into a Substrate AccountId so that I ...
1 vote
1 answer
61 views
Set Off-chain worker with AccountId20 [closed]
The examples in substrate use the sr25519 AccountId and Multisignature for creating offchain workers with signed transactions. Is there a way to use AccountId20 and EthereumSignature for a node using ...
2 votes
0 answers
40 views
How to convert AccountId from [hexadecimal, SS58Check]?[Updated]
I have two 2 storage in the pallet : #[pallet::storage] #[pallet::getter(fn subscriber)] pub type Subscriber<T:Config> = StorageValue<_, BoundedVec<T::AccountId, T::...
0 votes
0 answers
65 views
How to convert `AccountId` to `AuthorityId`
699 | acc_vec.push((account_id, userInfo.weight.saturated_into::<u64>())); | ^^^^^^^^^^ expected `Public`, found associated type | ...
1 vote
1 answer
68 views
AssetHub interaction with AccountId20 [closed]
Say I want to send and receive tokens from AssetHub in my chain that is using AccountId20 format to interact with internal pallets. I understand that Rococo uses AccountId32 so how would I go about ...
0 votes
1 answer
103 views
How to fund AccountId32?
I want to deliver some test where in part of the task is to create accounts and deposit them. I do it in the code below: let account_id_bytes: [u8; 32] = [0u8; 32]; let account_id_1: AccountId32 = ...
1 vote
1 answer
147 views
Customizing AccountId
In my runtime I'm using pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;. Within my pallet I also need this type to implement From<SomeType>. I ...
3 votes
1 answer
127 views
Will we be able to use the BLS signature scheme to control funds?
After reading through the BLS related issues in the substrate repo, it isn't quite clear to me what type of support is planned for the BLS signature scheme. It seems like the primary goal is to ...
1 vote
2 answers
19 views
What is the purpose of the `contracts_runtime.scale` file in the `cargo-contracts` repository?
Cargo Contract is a popular tool for developing ink! contracts. This tool is known to work well with the substrate contracts node, and I thought it should work with other chains that support pallet ...
4 votes
1 answer
59 views
Custom session keys in Chainspec for Mainnet config
I've seen some Substrate repo's where the SessionKeys (Aura, Babe, Grandpa, etc) are used with unchecked_into() .While the stash/controller keys are only used with into(). These are some examples: ...
2 votes
1 answer
88 views
How can I convert an account of type sp_runtime::traits::IdentifyAccount::AccountId to sp_runtime::AccountId32?
I get the following error when trying to convert my frame_system::Config::AccountId to a MultiAddress. expected enum `MultiAddress<sp_runtime::AccountId32, ()>` found enum `MultiAddress<&...
2 votes
1 answer
105 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
0 answers
86 views
Difference between "ink_primitives::AccountId" and just default "AccountId" type
I try to solve Rust's error that I included below: = note: expected struct `Mapping<ink::ink_primitives::AccountId, u128>` found reference `&Mapping<ink::ink_primitives::...
1 vote
3 answers
414 views
How to convert AccountId to String
I'm building a dApp and would like to treat the contract address as a String. I was able to find a way to convert a String to an AccountId, but no example exists for the reverse case. I also tried ...