Skip to content

Commit

Permalink
Update code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
joaniefromtheblock authored Jul 23, 2024
1 parent 6d69968 commit 7c70d96
Showing 1 changed file with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infu
<Tabs>
<TabItem value="cURL">

```bash
curl https://zksync-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBytecodeByHash", "params": ["0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"]}'
```
```bash
curl https://zksync-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBytecodeByHash", "params": ["0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"]}'
```
</TabItem>
<TabItem value="WSS">

Expand All @@ -44,25 +44,25 @@ wscat -c wss://zksync-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0"

<Tabs>
<TabItem value="JSON">
```json
{
"jsonrpc": "2.0",
"result": [
0,
4,
0,
0,
0,
0,
0,
2,
0,
11,
...,
...
],
"id": 1
}
```
```json
{
"jsonrpc": "2.0",
"result": [
0,
4,
0,
0,
0,
0,
0,
2,
0,
11,
...,
...
],
"id": 1
}
```
</TabItem>
</Tabs>

0 comments on commit 7c70d96

Please sign in to comment.