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: pages/price-feeds/pro/acquire-access-token.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@ import { Callout } from "nextra/components";
2
2
3
3
# Acquire an Access Token
4
4
5
-
This guide explains how to acquire an access token for Pyth Lazer, which is required to authenticate websocket connections and subscribe to price updates.
5
+
This guide explains how to acquire an access token for Pyth Pro, which is required to authenticate websocket connections and subscribe to price updates.
6
6
7
7
## Request Access Token
8
8
9
9
Please fill out [this form](https://tally.so/r/nP2lG5) to contact the Pyth team and get the access token.
10
10
11
11
<Callouttype="info">
12
-
Access tokens are required for all Pyth Lazer websocket connections. Make sure
12
+
Access tokens are required for all Pyth Pro websocket connections. Make sure
13
13
to keep your token secure and do not share it publicly.
|**Solution Type**| Stable, secure, and decentralized price data source for a broad spectrum of DeFi or TradFi applications. |**Permissioned** service focused on **ultra-low-latency** price and market data for highly latency-sensitive users. |
16
-
|**Frequency**| 400ms on Pythnet appchain with support for risk mitigation via Benchmarks and confidence intervals. |**1ms** (**real-time**), 50ms, and 200ms channels, **customizable** frequencies, and throttling support to address different needs. |
17
-
|**Data Types**| Aggregate price and confidence intervals. | Aggregate price, bid/ask price, and **customizable** market data (market depth and more). |
18
-
|**Fees**| On-chain fee per signed cross-chain price update. | On-chain fee per signed cross-chain price update. |
19
-
|**Update Costs**| >1,000-byte proofs and complex signature verification. |**100-byte proofs** and simple signature verification. |
20
-
|**Integration Process**| Open and permissionless integration for any Web3 or Web2 protocol. |**Specialized** and **permissioned** solution for protocols prioritizing performance over some elements of decentralization. |
17
+
<Cards>
18
+
<Cardicon={<KeyIcon />}title="Get your access token"href="./getting-started" />
19
+
<Cardicon={<LightningIcon />}title="Subscribe to prices"href="./subscribe-price-updates" />
# How to verify Price Updates as a Consumer on Blockchain
2
2
3
-
The following guides demonstrate how to integrate Pyth Lazer as a consumer in your application.
3
+
The following guides demonstrate how to verify price updates as a consumer on blockchain.
4
4
5
-
Lazer is available in Solana, Fogo, and EVM. Please consult the following guides to get started:
5
+
Pyth Pro price updates can be verified on Solana, Fogo, and EVM chains. Please consult the following guides to get started:
6
6
7
7
-[Solana and Fogo](integrate-as-consumer/svm)
8
8
-[EVM](integrate-as-consumer/evm)
9
9
10
-
Lazer price feeds can also be used in off-chain applications. See the
10
+
Pyth Pro price updates can also be used in off-chain applications. See the
11
11
[subscription guide](subscribe-price-updates) and the [Terms of Service](https://bafybeih2re4eaun3nzt5dyyc2bnjprw44kligacriftm24dfrjfik4ocv4.ipfs.w3s.link/250129-terms-of-service-pyth-lazer-final.pdf) for more information.
# Integrate Pyth Lazer as a Consumer on EVM chains
3
+
# Integrate as a Consumer on EVM chains
4
4
5
-
This guide is intended to serve users who wants to consume prices from the Pyth Lazer on **EVM chains**.
5
+
This guide is intended to serve users who wants to consume prices from the Pyth Pro on **EVM chains**.
6
6
7
-
Integrating with Pyth Lazer in smart contracts as a consumer is a three-step process:
7
+
Integrating with Pyth Pro in smart contracts as a consumer is a three-step process:
8
8
9
9
1.**Use** Pyth Lazer SDK in EVM smart contracts to parse the price updates.
10
-
2.**Subscribe** to Pyth Lazer websocket to receive price updates on backend or frontend.
10
+
2.**Subscribe** to Pyth Pro websocket to receive price updates on backend or frontend.
11
11
3.**Include** the price updates into the smart contract transactions.
12
12
13
13
<Steps>
14
14
15
15
### Use Pyth Lazer SDK in smart contracts
16
16
17
-
Pyth Lazer provides a [Solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
17
+
Pyth Pro provides a [Solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
18
18
19
19
```bash copy
20
20
forge install pyth-network/pyth-crosschain
@@ -52,7 +52,7 @@ contract ExampleConsumer {
52
52
53
53
```
54
54
55
-
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the Pyth Lazer price udpate:
55
+
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the price udpate:
56
56
57
57
```solidity copy
58
58
function updatePrice(bytes calldata priceUpdate) public payable {
@@ -125,11 +125,11 @@ for (uint8 i = 0; i < feedsLen; i++) {
125
125
price updates via WebSocket. This will be explained in the next step.
126
126
</Callout>
127
127
128
-
### Subscribe to Pyth Lazer to receive Price Updates
128
+
### Subscribe to Pyth Pro to receive Price Updates
129
129
130
-
Pyth Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
130
+
Pyth Pro/Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Pro/Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
131
131
132
-
Consult [How to subscribe to price updates from Pyth Lazer](../subscribe-price-updates.mdx) for a complete step-by-step guide.
132
+
Consult [How to subscribe to price updates](../subscribe-price-updates.mdx) for a complete step-by-step guide.
133
133
134
134
### Include the price updates into smart contract transactions
135
135
@@ -139,14 +139,14 @@ Now that you have the price updates, and your smart contract is able to parse th
139
139
140
140
## Additional Resources
141
141
142
-
You may find these additional resources helpful for integrating Pyth Lazer into your EVM smart contracts.
142
+
You may find these additional resources helpful for consuming prices from Pyth Pro into your EVM smart contracts.
143
143
144
144
### Price Feed IDs
145
145
146
-
Pyth Lazer supports a wide range of price feeds. Consult the [Price Feed IDs](../price-feed-ids.mdx) page for a complete list of supported price feeds.
146
+
Pyth Pro supports a wide range of price feeds. Consult the [Price Feed IDs](../price-feed-ids.mdx) page for a complete list of supported price feeds.
147
147
148
148
### Examples
149
149
150
-
[Pyth-lazer-example-evm](https://github.com/pyth-network/pyth-examples/tree/main/lazer/evm) is a simple example contract that parses and consumes price updates from Pyth Lazer.
150
+
[Pyth-lazer-example-evm](https://github.com/pyth-network/pyth-examples/tree/main/lazer/evm) is a simple example contract that parses and consumes price updates from Pyth Pro.
151
151
152
-
[pyth-lazer-example-js](https://github.com/pyth-network/pyth-examples/tree/main/lazer/js) is a simple example for subscribing to the Pyth Lazer websocket.
152
+
[pyth-lazer-example-js](https://github.com/pyth-network/pyth-examples/tree/main/lazer/js) is a simple example for subscribing to the Pyth Pro websocket.
0 commit comments