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: docs.wrm/api/providers/api-providers.wrm
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -100,19 +100,24 @@ you also need to specify the ``applicationID`` property.
100
100
- ``applicationOrigin``: By specifying this property you are setting the `Origin` header in your request
101
101
(remember that browsers will swap this header based on the actual origin of the website loaded).
102
102
- ``applicationUserAgent``: By specifying this property you are setting the `User-Agent` header in your request.
103
+
- ``endpointType``: By specifying this property you can select to connect via the Pocket Gateway Single Application endpoint or a Load Balancer Endpoint (defaults to Load Balancer)
103
104
104
105
The //network// and //apiKey// are specified the same as [the constructor](PocketGatewayProvider).
105
106
106
107
_note: Note: Default API keys
107
108
In the event of the //apiKey// not being present in the constructor, a shared ApplicationID will be provided,
108
-
which has the capacity of sending up to 1 million requests per day (41,750 per hour).
109
+
which has the capacity of sending up to 10 million requests per day (417,500 per hour) for Ethereum Mainnet,
110
+
for Ropsten, Rinkeby and Görli there's a shared capacity of 1 million requests per day each (41,750 per hour).
109
111
110
112
For production applications it is highly recommended to register your application on the
111
113
[Pocket Gateway](link-pocket-gateway) for your own API key.
112
114
113
115
_definition: **Supported Networks**
114
116
115
-
- Homestead (Mainnet Full nodes (Archival Support coming soon))
117
+
- Homestead (Mainnet Full nodes (non-Archival Nodes))
118
+
- Ropsten (proof-of-work testnet)
119
+
- Rinkeby (proof-of-authority testnet)
120
+
- Görli (clique testnet)
116
121
117
122
_code: Pocket Gateway Examples @lang<javascript>
118
123
@@ -122,6 +127,8 @@ const applicationId = "...";
122
127
const applicationSecretKey = "...";
123
128
const applicationOrigin = "...";
124
129
const applicationUserAgent = "...";
130
+
// Endpoint Type can be either application or loadbalancer
131
+
const endpointType = "...";
125
132
// </hide>
126
133
127
134
// Connect to mainnet (homestead)
@@ -136,7 +143,8 @@ provider = new PocketGatewayProvider("homestead", {
0 commit comments