Skip to content

Commit ed9c865

Browse files
joaniekubealexandratran
authored andcommitted
Sync Starknet Infura content changes (#1483)
* Sync Starknet Infura content changes * Update whats-new on starknet methods * Update link * Update spacing * Update docs/whats-new.md --------- Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
1 parent 2b50830 commit ed9c865

9 files changed

+101
-656
lines changed

docs/whats-new.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ The latest major MetaMask documentation updates are listed by the month they wer
99
For a comprehensive list of recent product changes, visit the "Release Notes" section at the bottom
1010
of the [MetaMask developer page](https://metamask.io/developer/).
1111

12-
## July 2024
12+
## August 2024
13+
14+
- Updated [Starknet documentation](/services/reference/starknet) with API methods supported by new partners, Bware and Chainstack. ([#1483](https://github.com/MetaMask/metamask-docs/pull/1483))
1315

16+
## July 2024
1417
- Documented [Binance Smart Chain](/services/reference/bnb-smart-chain/) support. ([#1458](https://github.com/MetaMask/metamask-docs/pull/1458))
1518
- Documented [Celo WebSocket](/services/reference/celo/) support. ([#1446](https://github.com/MetaMask/metamask-docs/pull/1446))
1619
- Documented [ZKsync Era WebSocket](/services/reference/zksync) support. ([#1438](https://github.com/MetaMask/metamask-docs/pull/1438))

services/reference/starknet/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import CardList from '@site/src/components/CardList'
66

77
# Starknet
88

9+
:::note Decentralized Infrastructure Network (DIN)
10+
11+
Starknet is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service,
12+
meaning calls to the network are routed to a [partner infrastructure provider](#partner-and-privacy-policy).
13+
14+
:::
15+
916
Starknet is a decentralized, permissionless and scalable Layer-2 network protocol developed by StarkWare for the Ethereum
1017
network. It leverages zk-STARKs technology for scalability and privacy, allowing developers to build and deploy smart contracts
1118
that can perform more computations than on Ethereum's base layer, while maintaining a high level of security and decentralization.
@@ -36,3 +43,12 @@ See the [Starknet documentation](https://docs.starknet.io/documentation/) to fin
3643
}
3744
]}
3845
/>
46+
47+
## Partner and privacy policy
48+
49+
The following partners provide access to Starknet:
50+
51+
<!-- markdown-link-check-disable -->
52+
- Bware Labs ([Terms of Service](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy))
53+
- Chainstack ([Terms of Service](https://chainstack.com/tos/), [Privacy Policy](https://chainstack.com/privacy/))
54+
<!-- markdown-link-check-enable -->

services/reference/starknet/json-rpc-methods/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Infura supports a subset of the [Starknet API methods](https://github.com/starkw
99

1010
The following Starknet methods are not supported:
1111

12-
- `starknet_pendingTransactions`
13-
- `starknet_addDeployTransaction`
12+
- `starknet_estimateMessageFee`
1413
- `starknet_getBlockWithReceipts`
15-
- `pathfinder_getTransactionStatus`
14+
- `starknet_getTransactionStatus`
15+
- `starknet_specVersion`
16+
- `starknet_traceBlockTransactions`
17+
- `starknet_traceTransaction`

services/reference/starknet/json-rpc-methods/starknet_estimatemessagefee.mdx

Lines changed: 0 additions & 81 deletions
This file was deleted.

services/reference/starknet/json-rpc-methods/starknet_gettransactionstatus.mdx

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: "starknet_pendingTransactions"
3+
---
4+
5+
import Tabs from '@theme/Tabs';
6+
import TabItem from '@theme/TabItem';
7+
8+
Returns a list of pending transactions.
9+
10+
## Parameters
11+
12+
None.
13+
14+
## Returns
15+
16+
An array of pending
17+
[Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/)
18+
objects.
19+
20+
## Example
21+
22+
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard).
23+
24+
### Request
25+
26+
<Tabs>
27+
<TabItem value="cURL">
28+
29+
```bash
30+
curl https://starknet-mainnet.infura.io/v3/6e46ee5c0df54fb48c0fb2a94502c42a \
31+
-X POST \
32+
-H "Content-Type: application/json" \
33+
-d '{"jsonrpc": "2.0", "method": "starknet_pendingTransactions", "params": [], "id": 0}'
34+
```
35+
36+
</TabItem>
37+
</Tabs>
38+
39+
### Response
40+
41+
<Tabs>
42+
<TabItem value="JSON">
43+
44+
```json
45+
{
46+
"jsonrpc": "2.0",
47+
"result": [
48+
{
49+
"type": "INVOKE",
50+
"transaction_hash": "0x51b20a0fc4372f88251e85b273b3fdd1840abde65cd65861691abd8eae8ae24",
51+
"max_fee": "0x173ef69c85ddc",
52+
"version": "0x0",
53+
"signature": ["0x30f5c0835f649d07e0335bcfe9a2844ff644ba5ae746853ac607b304f4ef551", "0x87428cbd6d283c49652003effa075d1479f6ca24e7e6dae5da5e16a587875"],
54+
"nonce": "0x0",
55+
"contract_address": "0x8451e87f44cdadbe0e235804753194d24939603a025324ca380e73806e39a6",
56+
"entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad",
57+
"calldata": ["0x1", "0x7861c4e276294a7e859ff0ae2eec0c68300ad9cbb43219db907da9bad786488", "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", "0x0", "0x3", "0x3", "0x697066733a2f2f516d543577517453516e4a4173423550377a76436e787574", "0x6d70424b515a756a624e666444734b664c515a363933", "0x0", "0x5"]
58+
}, {
59+
"type": "INVOKE",
60+
"transaction_hash": "0x4a79fbaa6c898a9823ae7d58aa30f70f0cd76da83fcc796b0e8f686d714837a",
61+
"max_fee": "0x5fb93c8e0320",
62+
"version": "0x0",
63+
"signature": ["0x40b94d079352f30849cb1fd11d7e6b7ddb9bf82c0af6a6e59821a1c72607592", "0x7d25b96e4e2664ae0a9aaecf523242a5769773b4a1d2753db97711782fea1c9"],
64+
"nonce": "0x0",
65+
"contract_address": "0x1e3415180f65313145bb0c6afa3ea73600f5275fbd22c526bbff5de7f9532ee",
66+
"entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad",
67+
"calldata": ["0x1", "0x3090623ea32d932ca1236595076b00702e7d860696faf300ca9eb13bfe0a78c", "0x2d4c8ea4c8fb9f571d1f6f9b7692fff8e5ceaf73b1df98e7da8c1109b39ae9a", "0x0", "0x2", "0x2", "0x2a92f0f860bf7c63fb9ef42cff4137006b309e0e6e1484e42d0b5511959414d", "0x1", "0x3"]
68+
},
69+
...
70+
],
71+
"id": 0
72+
}
73+
```
74+
75+
</TabItem>
76+
</Tabs>

services/reference/starknet/json-rpc-methods/starknet_specversion.mdx

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)