Skip to content

Commit 4dbc400

Browse files
committed
Merge branch 'main' into sdk-refactor-introduction
2 parents 0968d52 + c30059a commit 4dbc400

File tree

32 files changed

+2177
-4640
lines changed

32 files changed

+2177
-4640
lines changed

.github/workflows/trivy-cache.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: trivy-cache-db
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "0 1 * * *"
11+
12+
jobs:
13+
trivy:
14+
name: Run trivy scanner
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Trivy Cache
19+
uses: ConsenSys/docs-gha/trivy-update-cache@main

developer-tools/dashboard/get-started/create-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For more information, see to the [Infura pricing page](https://www.infura.io/pri
2020
Infura allows you to enable multiple network endpoints and expansion APIs for your API key. If calls are
2121
made to a disabled network or service, then all requests to that network or service will fail.
2222

23-
To keep your account secure and cost effective, add only the necessary endpoints, as some have usage
23+
To keep your account secure and cost-effective, add only the necessary endpoints, as some have usage
2424
limits or charges based on request volume.
2525

2626
To create an API key:

developer-tools/dashboard/how-to/secure-an-api/set-rate-limits.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ Set rate limiting in the API key's **Settings** tab **Key Credit Limits** sectio
2626
credits per day in integers, for example, 20000. The value `0` means default limits are applied.
2727

2828
When the number of used credits reach this limit, all requests will be rejected until the next day (00:00 UTC).
29+
30+
If you exceed the specified limits, you'll receive a JSON response with an
31+
[HTTP error status code `429`](/services/reference/ethereum/json-rpc-methods#http-errors). For example:
32+
33+
```json
34+
{
35+
"jsonrpc": "2.0",
36+
"id": 1,
37+
"error": {
38+
"code": 429,
39+
"event": -33300,
40+
"message": "Too Many Requests",
41+
"details": "You have surpassed your user-defined key throughput limit setting. To make more requests with this key, review key setting configurations."
42+
}
43+
}
44+
```

docs/whats-new.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ 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+
## December 2024
13+
14+
- Documented [Snap Notifications Expanded View](/snaps/features/notifications/#expanded-view).
15+
([#1774](https://github.com/MetaMask/metamask-docs/pull/1774))
16+
- Documented [`snap_getInterfaceContext`](/snaps/reference/snaps-api/#snap_getinterfacecontext).
17+
([#1772](https://github.com/MetaMask/metamask-docs/pull/1772))
18+
1219
## November 2024
1320

21+
- Documented [updated error responses](/services/reference/ethereum/json-rpc-methods) when rate-limiting Infura JSON-RPC API calls. ([#1749](https://github.com/MetaMask/metamask-docs/pull/1749))
1422
- Documented [Unichain Sepolia](/services/reference/unichain) support. ([#1725](https://github.com/MetaMask/metamask-docs/pull/1725))
1523
- Updated Snaps [Custom UI documentation](/snaps/features/custom-ui/) for MetaMask Extension version 12.6.
1624
([#1715](https://github.com/MetaMask/metamask-docs/pull/1715))

0 commit comments

Comments
 (0)