Quasar
Defined in: quasar.ts:21
Client of the Quasar API (Quasar Cloud at https://api.tuwa.io, or a self-hosted Quasar server). Create it on the
server: it sends the secret key of your Quasar app with every request.
Example
import { Quasar } from '@tuwaio/quasar-sdk';
const quasar = new Quasar({ secretKey: process.env.QUASAR_SECRET_KEY ?? '' });
const history = await quasar.pulsar.getHistory({ walletAddress: '0x...', limit: 20 });Constructors
Constructor
new Quasar(
config):Quasar
Defined in: quasar.ts:38
Creates the client. Sends no request.
Parameters
config
The secret key of the Quasar app and optional overrides.
Returns
Quasar
Throws
If config.secretKey is empty.
Properties
pulsar
readonlypulsar:PulsarModule
Defined in: quasar.ts:30
Syncs Pulsar transactions to Quasar and reads their history.
Last updated on