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 account?

I am asking this question because in the substrate-parachian-template in the chain_sepc.rs, there is a lie of code:


I wanted to replace this pre defined alice account with my own account so should I use my public key here like:


Or I will use the title of my account like: get_account_id_from_seed::sr25519::Public("SYED KAMRAN")

1 Answer 1


This should be helpful:

You would do something like this:


You can use subkey to get the address from SS58.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.