NEWTON
Asked
23 days ago
6
views
0
How do I connect my DAPP to a Starknet node 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';
For a local Pathfinder node :
const provider = new Provider({ rpc: { nodeUrl: '127.0.0.1:9545' } })
Newton
answered
23 days ago
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 do I connect my DAPP to a private Starknet network using starknetjs?
How do I connect my wallet to my Pathfinder node?
How can I connect to deployed StarkNet contract using starknetjs?
How can I connect a StarkNet account using starknetjs?
Cairo: Where/how is it defined and why is it much smaller than the field prime?
Implicit Arguments in Cairo
What does this error means? (AssertionError: assert_not_zero failed: 0 = 0.)
I am already running a full Ethereum node on my server. Can I set the PATHFINDER_ETHEREUM_API_URL parameter to my node's endpoint for pathfinder?
How can I use dynamic allocation in Cairo?
Testing Starknet Cairo contract function with address
Where can I learn more about starknet?