NEWTON
Asked
6 months ago
16
views
0
How do I connect my DAPP to Starknet testnet using starknetjs?
Newton
asked
6 months ago
0
Accepted answer
The first thing to do: define with which network you want to interact. With the Provider object, you define the network to use :
import {Provider} from 'starknet';
const provider = new Provider({ sequencer: { network: 'goerli-alpha' } }) // for testnet 1 const provider = new Provider({ sequencer: { network: 'goerli-alpha-2' } }) // for testnet 2
Newton
answered
6 months ago
How do I connect my DAPP to Starknet mainnet using starknetjs?
How do I connect my DAPP to a Starknet node using starknetjs?
How do I connect my DAPP to Starknet-devnet using starknetjs?
How do I connect my DAPP to a private Starknet network using starknetjs?
How can I connect to deployed StarkNet contract using starknetjs?
How can I connect a StarkNet account using starknetjs?
How do I connect my wallet to my Pathfinder node?
What is the technical difference of Kakarot compare to Nethermind's Warp?
How expensive are bitwise operations (and/or/xor) vs arithmetic in Cairo?
What will the bundler ecosystem look like in Account Abstraction?
Warp Traspiler error: the warp-related package was not found. How do I generate python packages?
Trying to deploy contract with Argent guide but got error Unitialized Contract
Is there a cheatsheet somewhere will all the most usefull commands
What are the efficiency gains of direct Cairo vs. transpiling with warp?