@clawdvault/sdk 0.1.2 → 0.2.0
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 +5 -2
- package/dist/index.d.mts +1500 -302
- package/dist/index.d.ts +1500 -302
- package/dist/index.js +25 -10
- package/dist/index.mjs +25 -10
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -245,10 +245,13 @@ const { messages } = await client.getChat({
|
|
|
245
245
|
limit: 50
|
|
246
246
|
});
|
|
247
247
|
|
|
248
|
-
// Send message (requires
|
|
248
|
+
// Send message (requires session)
|
|
249
|
+
const { token } = await client.createSession();
|
|
250
|
+
client.setSessionToken(token);
|
|
251
|
+
|
|
249
252
|
await client.sendChat({
|
|
250
253
|
mint: 'MINT_ADDRESS',
|
|
251
|
-
|
|
254
|
+
message: 'Hello world!'
|
|
252
255
|
});
|
|
253
256
|
|
|
254
257
|
// Reactions
|