You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/docs/guides/L1message.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ sidebar_position: 14
6
6
7
7
You can exchange messages between L1 & L2 networks:
8
8
9
-
- L2 Starknet mainnet ↔️ L1 Ethereum.
10
-
- L2 Starknet testnet ↔️ L1 Sepolia ETH testnet.
11
-
- L2 local Starknet devnet ↔️ L1 local ETH testnet (anvil, ...).
9
+
- L2 Starknet Mainnet ↔️ L1 Ethereum.
10
+
- L2 Starknet Testnet ↔️ L1 Sepolia ETH testnet.
11
+
- L2 local Starknet Devnet ↔️ L1 local ETH testnet (anvil, ...).
12
12
13
-
You can find an explanation of the global mechanism [here](https://docs.starknet.io/documentation/architecture_and_concepts/L1-L2_Communication/messaging-mechanism/).
13
+
You can find an explanation of the global mechanism [here](https://docs.starknet.io/architecture-and-concepts/network-architecture/messaging-mechanism/).
14
14
15
15
Most of the code for this messaging process will be written in Cairo, but Starknet.js provides some functionalities for this subject.
Copy file name to clipboardExpand all lines: www/docs/guides/connect_contract.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ Once your provider is initialized, you can connect a contract already deployed i
9
9
You need 2 pieces of data:
10
10
11
11
- the address of the contract
12
-
- the ABI file of the contract (or the compiled/compressed contract file, that includes the abi)
12
+
- the ABI file of the contract (or the compiled/compressed contract file, that includes the ABI)
13
13
14
-
> If you don't have the abi file, the `provider.getClassAt()` and `provider.getClassByHash()` commands will recover the compressed contract file. As these methods generate a significant workload for the sequencer/node, it's recommended to store the result on your computer to be able to reuse it later without using the provider each time:
14
+
> If you don't have the ABI file, the `provider.getClassAt()` and `provider.getClassByHash()` commands will recover the compressed contract file. As these methods generate a significant workload for the node, it's recommended to store the result on your computer to be able to reuse it later without using the provider each time:
> When possible, prefer to read the compiled contract from a local Json file, as it's much more faster, using the `json.parse` util provided by Starknet.js, as shown below.
> when using this syntax, a random public node will be selected.
103
+
> When using this syntax, a random public node will be selected.
66
104
67
-
Using a specific nodeUrl is the better approach, as such a node will have fewer limitations, the last version of software and will be less crowded.
105
+
Using a specific `nodeUrl` is the better approach, as such nodes will have fewer limitations, their software will be more up to date, and they will be less congested.
68
106
69
-
Some examples of RpcProvider instantiation to connect to RPC node providers:
107
+
Some examples of `RpcProvider` instantiation to connect to RPC node providers:
Your node can be located in your local network (example: Pathfinder node running on a computer in your network, launched with this additional option: `--http-rpc 0.0.0.0:9545`).
0 commit comments