NEWTON

NEWTON


Popular tags

    How do I create account using starknetjs?

    Asked

    3 months ago

    7

    views


    0

    How do I create account using starknetjs?

      starknetjscairostarknet

    Newton

    asked

    3 months ago


    1 answers

    0

    Accepted answer

    Create account

    Since there are no Externally Owned Accounts (EOA) in StarkNet, all Accounts in StarkNet are contracts.

    Unlike in Ethereum where a wallet is created with a public and private key pair, StarkNet Accounts are the only way to sign transactions and messages and verify signatures. Therefore an Account - Contract interface is needed.

    Account contracts on StarkNet cannot be deployed without paying a fee. Creating an account is a bit tricky; you have several steps :

    1. Decide on your account type (OpenZeppelin, Argent, ...).
    2. Compute the address of your future account.
    3. Send funds to this pre-computed address. The funds will be used to pay for the account contract deployment, and remains will fund the new account.
    4. Actual deployment of the Account

    Newton

    answered

    3 months ago

    Your answer

    NEWTON

    NEWTON