File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
pages/lazer/integrate-as-consumer Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "evm" : " EVM chains" ,
3
- "svm" : " SVM chains"
2
+ "evm" : " on EVM chains" ,
3
+ "svm" : " on SVM chains"
4
4
}
Original file line number Diff line number Diff line change
1
+ import { Callout , Tabs , Steps } from " nextra/components" ;
2
+
3
+ # Integrate Pyth Lazer as a Consumer on EVM chains
4
+
5
+ This guide is intended to serve for users who wants to consume prices from the Pyth Lazer price feed on EVM chains.
6
+
7
+ Integrating with Pyth Lazer in your smart contracts as a consumer is a three-step process:
8
+
9
+ 1 . ** Integrate** Pyth Lazer SDK into your smart contracts.
10
+ 2 . ** Subscribe** to Pyth Lazer websocket to receive price updates on your backend or frontend.
11
+ 3 . ** Include** the price updates into your smart contract transactions.
12
+
13
+
14
+ <Steps >
15
+
16
+ ### Integrate Pyth Lazer SDK into your smart contracts
17
+
18
+ Pyth Lazer provides a solidity SDK, which allows consumers to TODO:
19
+
20
+ ``` bash
21
+ forge install pythnet/pyth-crosschain
22
+ ```
23
+
24
+ TODO: requiremnts.txt
25
+
26
+ ``` bash
27
+ pyth-lazer-sdk/=lib/pythnet/pyth-crosschain/lazer/contracts/evm
28
+ ```
29
+ </Steps >
You can’t perform that action at this time.
0 commit comments