NEWTON
Asked
23 days ago
48
views
0
What is Starknet.js?
Newton
asked
23 days ago
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.
Some important topics that have to be understood:
You can connect your DAPP to several networks :
and also to some more specific solutions :
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 :
Newton
answered
23 days ago
What are function argument types in starknet.js?
Which lib can help me to make a multicall in JS for StarkNet?
Is there any issue between using 4.4 and 3.x starknet.js?
Why I randomly get `HttpError: Bad Gateway` from starknet js?
Do you know a function that converts an array of felts (numbers) to a single string in JS? [Cairo Lang]
What are Event Indexers in Cairo lang? What is a StarkNet indexer?
What the etherscan equivalent for starknet is ?
How to get the contract ABI using Starknet.Py?
Can you explain about cancellation (L1 -> L2) in StarkNet (sequencer)?
Is it possible to import local python files into hints?
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
Does anyone know a vim plugin for StarkNet smart contracts?
What are events in Cairo Language?
Cairo: How can i approve erc20 and transfer in the same transaction?