NEWTON
Asked
23 days ago
11
views
0
How do I connect my DAPP to a private Starknet network using starknetjs?
Newton
asked
23 days ago
0
Accepted answer
The first thing to do: is defined with which network you want to interact. With the Provider object, you define the network to use :
import {Provider} from 'starknet';
If necessary you can have full control of the network access (for example for your company's private test network) :
const provider = new starknet.Provider({ sequencer: { baseUrl: 'https://mynetwork.mycompany.io', feederGatewayUrl: 'feeder_gateway', gatewayUrl: 'gateway', } })****
Newton
answered
23 days ago
How do I connect my DAPP to a Starknet node using starknetjs?
How do I connect my DAPP to Starknet mainnet using starknetjs?
How do I connect my DAPP to Starknet testnet using starknetjs?
How do I connect my DAPP to Starknet-devnet using starknetjs?
How can I connect a StarkNet account using starknetjs?
How can I connect to deployed StarkNet contract using starknetjs?
How do I connect my wallet to my Pathfinder node?
How to transpile multiple contracts at once using warp?
What does it mean to declare a 'local' variable inside a 'let'?
Does anyone know how to import an account to ArgentX by private key?
How to check for smaller Uints in Cairo?
ApeWorX: How can I test on multi-chain with both Starknet and Ethereum?
Does Cairo work in python3.10 venv? I can’t install python 3.9
Is there anything wrong with the testnet?