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: packages/sdk/README.md
+116-15
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ as well as compresses multi step flows into single operations.
9
9
10
10
## Requirements
11
11
12
-
- npm 8.4.0 or higher
13
-
- node.js 16.17.0 or higher
12
+
- npm 10.0.0 or higher
13
+
- node.js 20.0.0 or higher
14
14
- Apillon API key and secret
15
15
16
16
## Getting started
@@ -46,6 +46,12 @@ View each individual module examples in the sections below.
46
46
47
47
This wiki only contains the basic installation and examples of SDK usage. For additional information on using the SDK, see the [Detailed SDK documentation](https://sdk-docs.apillon.io/).
48
48
49
+
### Examples
50
+
51
+
Examples for using Apillon can be found in a demo repo [here](https://github.com/Apillon/apillon-sdk-demo). Instructions on running the examples are in the [README file](https://github.com/Apillon/apillon-sdk-demo/blob/master/README.md).
52
+
53
+
> You can run examples directly in your browser via [CodeSandbox](https://codesandbox.io/p/github/Apillon/apillon-sdk-demo/master).
54
+
49
55
## Hosting
50
56
51
57
Hosting module encapsulates functionalities for Hosting service available on Apillon dashboard.
Identity module encapsulates functionalities for validating EVM and Polkadot wallet signatures, as well as fetching Polkadot Identity data for any wallet.
@@ -302,14 +318,13 @@ For detailed hosting SDK method, class and property documentation visit [SDK ide
// Note: for signature-related methods API config is not required
309
324
const identity =newIdentity({
310
325
key: 'yourApiKey',
311
326
secret: 'yourApiSecret',
312
-
logLevel: LogLevel.NONE,
327
+
logLevel: LogLevel.VERBOSE,
313
328
});
314
329
315
330
// obtain on-chain identity data for a Polkadot wallet
@@ -364,4 +379,90 @@ async function validatePolkadotWalletSignature() {
364
379
}
365
380
366
381
```
382
+
## Computing
383
+
384
+
The Computing module provides functionalities for managing computing contracts, including creating contracts, listing contracts, and interacting with specific contracts for operations like encryption and ownership transfer.
`Ownership transfer was ${successResult?'successful':'unsuccessful'}.`,
431
+
);
432
+
```
433
+
434
+
## Social
435
+
436
+
The Social module provides functionalities for managing social hubs and channels within the Apillon platform. This includes creating, listing, and interacting with hubs and channels. In the background it utilizes Grill.chat, a mobile-friendly, anonymous chat application powered by Subsocial.
437
+
438
+
### Usage example
439
+
440
+
```ts
441
+
import { Social } from'@apillon/sdk';
442
+
443
+
const social =newSocial({ key: 'yourApiKey', secret: 'yourApiSecret' });
0 commit comments