Magnet
  • Welcome to Magnet
  • Overview
    • Magnet Network Features
      • Magnet Coretime
      • Coretime Order Control and Assurance
      • Workflows of Magnet Network
      • Profit Calcuation and Distribution
    • Magnet Stack Features
      • Magnet Stack Coretime Modules
  • Product Guides
    • Setup a Local Node
      • Installing Substrate Dependencies
      • Launching the Local Relay Chain
      • Build the Magnet Node
      • Prepare the parachain Collator
      • Register on the Local Relay Chain
    • Deploy Contracts on Magnet Network
      • EVM Contract Deployment
      • WASM Contract Deployment
      • MoveVM Contract Deployment
    • Bridge Asset
      • Bridging Asset between EVM and Substrate
      • Bridging Asset with XCM
    • Develop Coretime-Ready chain with Magnet Stack
      • Preparation: Reserve a ParaID
      • Preparation: Generate the Collator's Address
      • Preparation: Purchase Bulk Core
      • Using Magnet Stack : Coretime Configuration
      • Using Magnet Stack : Virtual Machine Configuration
      • Using Magnet Stack : Functional Models
      • Using Magnet Stack : Summary
      • Deployment & Connection to Rocococ
        • Define the collator's address
Powered by GitBook
On this page
  1. Product Guides
  2. Develop Coretime-Ready chain with Magnet Stack
  3. Deployment & Connection to Rocococ

Define the collator's address

define the collator's address

You can manually define the collator's address by specifying a custom key pair when starting the node. This is done by providing the node with a key file or directly specifying the keys using CLI options.

  • Using a Key File: You can generate your key pair using the Substrate CLI or another tool and store it in a file. When you start the collator, you can instruct the node to use this key:

    bashCopy code./target/release/parachain-magnet-node --collator --chain raw-magnet-2000.json --base-path ./alice --node-key <path-to-your-node-key-file>

    The key file contains your private key, from which the public address is derived. This way, you can control which address your collator uses.

  • Specifying a Seed Phrase: Alternatively, you can specify the key using a seed phrase directly in the CLI:

    bashCopy code./target/release/parachain-magnet-node --collator --chain raw-magnet-2000.json --base-path ./alice --node-key <seed-phrase>

    This will generate the same address every time you use the same seed phrase.

PreviousDeployment & Connection to Rocococ

Last updated 8 months ago