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: developer-tools/dashboard/how-to/secure-an-api/use-an-allowlist.md
+20-29Lines changed: 20 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,16 +29,17 @@ Add the restriction details in the **ALLOWLISTS** section of your API key's **Se
29
29
#### Allowlist behavior
30
30
31
31
- If an API key has no allowlists, all requests are accepted.
32
-
-As soon as an API key has an allowlist definition, all requests must pass it.
32
+
-When an API key has an allowlist definition, all requests must pass the definition.
33
33
- Each API key has a maximum of 30 allowlist entries per type.
34
34
- Each allowlist type is "AND"ed together.
35
35
- Multiple entries of the same type are "OR"ed.
36
36
37
37
## Contract addresses
38
38
39
-
If your application only queries data from specific Ethereum smart contracts or addresses, add those addresses to the **CONTRACT ADDRESSES** allowlist.
39
+
If your application only queries data from specific Ethereum smart contracts or addresses, add those
40
+
addresses to the **Contract Addresses** allowlist.
40
41
41
-
Any requests which query addresses that are not in the allowlist are rejected.
42
+
Any requests which query addresses that aren't in the allowlist are rejected.
42
43
43
44
The following RPC methods take an Ethereum address parameter and are compatible with this type of allowlisting.
44
45
@@ -52,7 +53,8 @@ The following RPC methods take an Ethereum address parameter and are compatible
52
53
53
54
#### Example request
54
55
55
-
To allow a specific Ethereum address, click **ADD** and input it into the **CONTRACT ADDRESSES** allowlist.
56
+
To allow a specific Ethereum address, input it into the **Contract Addresses** field and select **Add**.
57
+
In the following example we'll use `0xfe05a3e72235c9f92fd9f2282f41a8154`.
56
58
57
59
<divclass="left-align-container">
58
60
<divclass="img-medium">
@@ -62,7 +64,7 @@ To allow a specific Ethereum address, click **ADD** and input it into the **CONT
62
64
</div>
63
65
</div>
64
66
65
-
Test with a method from the list.
67
+
You can test using a method that supports this type of allowlisting.
0 commit comments