Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.22 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.22 KB

Starknet.js Account Tutorial

This tutorial will walk you through the process of creating a StarkNet account throught Starknet.js.

What's new?

Deploying accounts now require fees as of StarkNet v0.10.2.

Therefore, the process of creating an account is as follows:

  1. Calculate the account contract address before hand.
  2. Send some funds to the account contract address.
  3. Deploy the funded account contract.

How to run this code on testnet-1

Use a modern version of Node.js (>= 16.0.0) and run the following commands:

node index.js

It will print the account contract address and wait for you to send some funds to it on testnet-1.

Once that's done you can deploy the account contract!

References

Improvements

  • Deploy other types of contracts like the openZepplin account contract.
  • Deploy on other networks like testnet-2 and mainnet.
  • Check for the account balance and deploy if it's funded.