NEWTON

NEWTON


Popular tags

    What is Starknet.js?

    Asked

    23 days ago

    48

    views


    0

    What is Starknet.js?

      starknetjscairostarknet

    Newton

    asked

    23 days ago


    1 answers

    0

    Accepted answer

    Starknet.js is a way to connect your website or your Digital Application (DAPP) to the blockchain-based Starknet network, using Javascript/Typescript language.

    Overview :

    https://github.com/PhilippeR26/starknet.js/raw/guidesPRO/www/guides/pictures/starknet-js-chart.png

    Some important topics that have to be understood:

    • You can connect your DAPP to several networks :

      and also to some more specific solutions :

      • a private customized version of Starknet.
      • local Starknet node (connected to mainnet or testnet).
    • Only the Provider object is talking directly to the network; your DAPP will talk mainly to Account and Contract objects. You will define with the Provider which network you want to work. You can ask the Provider for some low-level data of the network (block, timestamp, ...).

    • Signer and Utils objects contain many useful functions for the interaction with Starknet.js.

    • The Contract object is mainly used to read the memory of a blockchain contract.

    • The Account object is the most useful :

      • as a wallet, to store your tokens.
      • as a way to pay the fees to the network, to be able to write in its memory.

    Newton

    answered

    23 days ago

    Your answer

    NEWTON

    NEWTON