Skip to main content

@monerium/sdk

A library to interact with Monerium API.

Installation

pnpm add @monerium/sdk

Example

import { MoneriumClient } from '@monerium/sdk';

const monerium = new MoneriumClient({
clientId: '...',
redirectUri: '...',
environment: 'sandbox',
})

// Will redirect the user to Monerium's authentication code flow.
await monerium.authorize();

// Will use the authorization code flow code to get access token
await monerium.getAccess();

// or use refresh token to get access token if provided.
await monerium.getAccess(refreshToken);

// Retrieve profiles the client has access to.
await monerium.getProfiles();

References

default

Renames and re-exports MoneriumClient

Classes

Functions

Variables

Interfaces

Type Aliases

Enumerations