How can we create the wallet address for mainnet? By using that address, we can generate the aliases?

How can we create the wallet address for mainnet? By using that address, we can generate the aliases?

Dear saumya303,

to create an identity and an account on mainnet, you can follow the flow in one of our wallets:

Once you have an account address on Concordium. You can use concordium-client to generate alias accounts

concordium-client account show-alias 3ofwYFAkgV59BsHqzmiWyRmmKRB5ZzrPfbmx5nup24cE53jNX5 --alias 17

https://developer.concordium.software/en/mainnet/net/references/transactions.html#account-aliases

Dear @Doris
Is there any way present to create identity and wallet address for mainnet using nodejs sdk?

Here are examples of how to do it with the Concordium-web-sdk:

In this code so many parameters are present like seedPhraseKey present in constant file, how can I generate this in code?

Depending on what your use case is, the easier way might be to create an account (via e.g. the browser wallet) and then export the key file. This key file can then be imported into scripts to send transactions from that account.

Is there a specific use case, that requires you to create the account programmatically?

I want to create a mainnet address for concordium through code not by web wallet?

Dear saumya303,
we just released a comprehensive guide related to identity creation and account creation for the different wallet SDKs that we support:
https://developer.concordium.software/en/mainnet/net/guides/wallet-sdk/wallet-sdk.html

Since you asked about the seedPhrase: It is a string of random 12-words from a list of dictionary words. You need to generate these words randomly since your private keys are derived from it. The developer documentation link in the previous messages gives an example how such a seedPhrase can look:

const seedPhrase = ‘fence tongue sell large master side flock bronze ice accident what humble bring heart swear record valley party jar caution horn cushion endorse position’;