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
[](https://github.com/centrifuge/sdk/actions/workflows/build-test-report.yml)
1
+
# Centrifuge SDK [](https://codecov.io/gh/centrifuge/sdk)[](https://github.com/centrifuge/sdk/actions/workflows/build-test-report.yml)[](https://github.com/centrifuge/sdk/releases/latest)
CentrifugeSDK provides a JavaScript client to interact with the Centrifuge ecosystem. It provides a comprehensive interface to easily create and manage pools, nfts, loans and metadata.
3
+
The Centrifuge SDK is a JavaScript client for interacting with the [Centrifuge](https://centrifuge.io) ecosystem. It provides a comprehensive, fully typed library to integrate investments and redemptions, generate financial reports, manage pools, and much more.
11
4
12
5
## Installation
13
6
14
-
CentrifugeSDK uses [Viem](https://viem.sh/) under the hood. It's necessary to install it alongside the SDK.
7
+
Centrifuge SDK uses [Viem](https://viem.sh/) under the hood. It's necessary to install it alongside the SDK.
15
8
16
9
```bash
17
10
npm install --save @centrifuge/sdk viem
11
+
# or
12
+
yarn install @centrifuge/sdk viem
18
13
```
19
14
20
15
## Init and config
@@ -27,7 +22,7 @@ import Centrifuge from '@centrifuge/sdk'
27
22
constcentrifuge=newCentrifuge()
28
23
```
29
24
30
-
The following config options can be passed on initilization of CentrifugeSDK:
25
+
The following config options can be passed on initialization of the SDK:
31
26
32
27
-`environment: 'mainnet' | 'demo' | 'dev'`
33
28
- Optional
@@ -66,7 +61,7 @@ To perform transactions, you need to set a signer on the `centrifuge` instance.
66
61
centrifuge.setSigner(signer)
67
62
```
68
63
69
-
`signer` can be a [EIP1193](https://eips.ethereum.org/EIPS/eip-1193)-compatible provider or a Viem [LocalAccount](https://viem.sh/docs/accounts/local)
64
+
`signer` can be a [EIP1193](https://eips.ethereum.org/EIPS/eip-1193)-compatible provider or a Viem [LocalAccount](https://viem.sh/docs/accounts/local).
70
65
71
66
With this you can call transaction methods. Similar to queries they can be awaited to get their final result, or subscribed to get get status updates.
0 commit comments