# How to set a collator for Statemint/e 1) Start the collator: ``` ./polkadot-parachain \ --collator \ --name="<collator name>" \ --port "<port>" \ --ws-port "<ws port>" \ --chain=<statemint/e chain spec> \ --base-path "./path" \ -- --execution wasm \ --chain <polkadot/kusama chain spec> \ --port <port> ``` 2) Generate session key from PolkadotJS-APPS 2.1) From PolkadotJS-APPS connect to the RPC port of the collator. 2.2) Go to developer -> RPC calls -> author / rotateKeys() ![](https://i.imgur.com/2v5Nakb.png) 2.3) Save the public key returned by the process since it will be used in the next step. :::info You can access to the private key generated in this process by reaching the file generated under ***chains/statemint_local/keystore*** ::: 3) Execute from the stash account the extrinsic `session.setKeys(public key from step 2, 0x01)` 6) Execute from the stash account `collatorSelection.registerAsCandidate()`