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
To update documentation for standard Ethereum JSON-RPC API methods:
195
+
196
+
1. Fork [`ethereum/execution-apis`](https://github.com/ethereum/execution-apis), clone the forked
197
+
repository to your computer, and navigate into it:
156
198
157
-
The [`docusaurus-plugin-segment`](https://github.com/xer0x/docusaurus-plugin-segment) plugin enables simple usage analytics to inform documentation improvements that may be needed.
If you need to test analytics events in your local development environment be sure to export the appropriate key for the environment you are testing against before building and running the project:
204
+
2. Follow the repository's [`README.md`](https://github.com/ethereum/execution-apis/blob/main/README.md)
205
+
instructions to edit the OpenRPC specification and generate the output file, `openrpc.json`.
206
+
207
+
3. To test the API updates in the MetaMask doc site's interactive reference, make the following
208
+
temporary changes on a local branch of the doc site, `metamask-docs`:
209
+
210
+
1. Copy and paste the output file `openrpc.json` into the root directory of `metamask-docs`.
211
+
2. In `docusaurus.config.js`, update the following line to point to your local output file:
-**PER SECOND REQUESTS RATE-LIMITING** restricts requests per second for the API key. Set the maximum number of requests per second in decimals, e.g. 1.2. Whenever the rate of requests exceeds this value, requests are rejected. When the rate of requests drops below the limit again, requests are accepted again.
25
+
-**PER SECOND CREDIT RATE-LIMITING** restricts credits per second (throughput) for the API key. Set
26
+
the maximum number of credits per second in whole numbers. When credits per second rate exceeds
27
+
this value, requests are rejected. When the credit rate drops below the limit, requests
28
+
are accepted again.
19
29
20
-
Decimal value 0.0 means default limits are applied.
30
+
The value `0` means default limits are applied.
21
31
22
-
-**PER DAY TOTAL REQUESTS** restricts total daily requests for the API key. Set a limit on number of requests per day in integers, e.g. 20000. Integer value 0 means default limits are applied.
32
+
-**PER DAY TOTAL CREDITS** restricts total daily credit usage for the API key. Set a limit on number of
33
+
credits per day in integers, e.g. 20000. The value `0` means default limits are applied.
23
34
24
-
When the number of requests reach this limit, all requests will be rejected until the next day (00:00 UTC).
35
+
When the number of used credits reach this limit, all requests will be rejected until the next day (00:00 UTC).
-*The documentation site underwent a temporary freeze in August.*
14
32
- 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))
0 commit comments