Polkadot Apps
    Preparing search index...

    Function createDevSigner

    • Create a PolkadotSigner for a standard Substrate dev account.

      Dev accounts use the well-known Substrate dev mnemonic (DEV_PHRASE) with Sr25519 key derivation at the path //{Name}. These accounts have known private keys and are pre-funded on dev/test chains.

      Only for local development, scripts, and testing. Never use in production.

      Parameters

      • name: DevAccountName

        Dev account name ("Alice", "Bob", "Charlie", "Dave", "Eve", or "Ferdie").

      Returns PolkadotSigner

      A PolkadotSigner that can sign transactions.

      import { createDevSigner } from "@polkadot-apps/tx";

      const alice = createDevSigner("Alice");
      const result = await submitAndWatch(tx, alice);