Questions tagged [address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

How to convert h160 address to ss58 address?

I am a dApp developer in Astar. I want to convert EVM(h160) address to Substrate(ss58) address to implement the UI like the subscan page. https://astar.subscan.io/account/...
ttt's user avatar
  • 1
2 votes
1 answer
29 views

How to Recover Address from MasterPrivateKey in JS

I trying to make Signature using Polkadot.js without mnemonic in LedgerAddress. import { hdLedger } from "@polkadot/util-crypto"; import { u8aToHex } from "@polkadot/util"; import ...
Albert's user avatar
  • 21
0 votes
3 answers
103 views

Get SS58 Address from public key

I have my hex public key, how can I convert it to an SS58 Address? I have found the snippet to do it using PolkadotJS here: How to convert Public key (hex) to SS58 Address in JavaScript / Polkadot-JS? ...
Alex Bean's user avatar
  • 5,364
0 votes
0 answers
52 views

Mapping EVM Address to Substrate Address with Preserved Balance

I'm working on a project involving an EVM-compatible Substrate blockchain and facing a challenge. The problem arises when trying to map Ethereum-based addresses, acquired through Metamask, to the ...
Mr Coder's user avatar
  • 873
0 votes
1 answer
48 views

Bech32 encode/decode library for no_std to convert bytes32 into string address in runtime pallet?

I want to convert bytes into string address. I have only two options because of Junction limitation: bytes32 or bytes20. pub enum Junction { ... AccountId32 { network: Option<NetworkId>, ...
rust.dev's user avatar
  • 509
4 votes
0 answers
36 views

I need a way to gather information about the address length and value length of each parachain

Solang is a solidity compiler that compiles to the wasm pallet. In Solang's CLI, there are options to configure the target parachain address length and value length. What I want to add is a feature ...
salaheldin's user avatar
3 votes
1 answer
76 views

How substrate / frontier convert address

We are using frontier with substrate to be able to deploy evm smart contract. When I create a transfer between two evm address and that the second one does not exist, the node create a new ss58 ...
cibou's user avatar
  • 131
3 votes
1 answer
56 views

How to change the format of addresses on a substrate local blockchain?

I have run a local node on my local host using the substrate documentation at: https://docs.substrate.io/tutorials/build-a-blockchain/build-local-blockchain/ Also I git cloned the UI Frontend for ...
mohamad's user avatar
  • 31
3 votes
1 answer
133 views

Is there any way to convert an ss58 address to the 32 bytes pubkey? [duplicate]

I want to do this inside a precompile, so it is runtime and I don't have access to std.
Gabriel Martinez's user avatar
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 ...
dadzerlaze's user avatar
  • 1,073
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
33 views

dApp registration issue - Shiden Network

I'm in the process of making a video tutorial for The Kusamarian YouTube channel :"How to register a dApp on Shiden Network" I went through all the steps, but it failed at the end. Could you ...
Le Comte de Monte-Crypto's user avatar
1 vote
1 answer
113 views

Can I use ECDSA address which is compatible with Ethereum as the Native address in a substrate based blockchain?

For my project, I have to build a blockchain using ECDSA address in order to be compatible with Ethereum. But the native address is in sr25519 scheme in substrate. What should I do to implement this? ...
kugool's user avatar
  • 161
1 vote
1 answer
241 views

How is a substrate address, or multisig address, calcluated from private key?

What are the (high-level) steps to, firstly, create a substrate address from a private key and secondly, to create a m-of-n multisig address? A description similar to this image would be just about my ...
Morkymork's user avatar
0 votes
1 answer
79 views

Vec<AccountId> breaks compilation of ink! contract

In my contract I want to store addresses of all users who called a specific function of the contract. For that purpose I use #[ink(storage)] #[derive(SpreadAllocate)] pub struct Postbox { ...
CREESTL's user avatar
  • 474
0 votes
1 answer
83 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 ...
Kami's user avatar
  • 537