@crypticdot/defituna-api 1.10.11 → 1.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,15 @@
1
1
  # DefiTuna SDK
2
2
 
3
3
  ## Overview
4
+
4
5
  This package provides developers with high-level functionalities for interacting with the DefiTuna Program on Solana.
5
6
 
6
7
  ## Key Features
7
- - **TunaApiClient**: The package includes a client for DefiTuna's public API. This allows to fetch the latest data from DefiTuna's on-chain program in a fast and efficient way without using Solana's RPC.
8
+
9
+ - **TunaApiClient**: The package includes a client for DefiTuna's public API. This allows to fetch the latest data from DefiTuna's on-chain program in a fast and efficient way without using Solana's RPC.
8
10
 
9
11
  ## Installation
12
+
10
13
  ```bash
11
14
  # NPM
12
15
  npm install @crypticdot/defituna-api
@@ -17,9 +20,11 @@ pnpm add @crypticdot/defituna-api
17
20
  ```
18
21
 
19
22
  ## Usage
23
+
20
24
  Here are some basic examples of how to use the package.
21
25
 
22
26
  ## Initializing the API client
27
+
23
28
  ```tsx
24
29
  import { TunaApiClient } from "@crypticdot/defituna-api";
25
30
 
@@ -27,6 +32,7 @@ export const ApiClient = new TunaApiClient("https://api.defituna.com/api");
27
32
  ```
28
33
 
29
34
  ## Fetching user's positions
35
+
30
36
  ```tsx
31
37
  const userTunaPositions = await ApiClient.getUserTunaPositions("CYCf8sBj4zLZheRovh37rWLe7pK8Yn5G7nb4SeBmgfMG");
32
38
  ```