For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick Start

This guide walks you through authenticating and making your first calls with the Neucron TypeScript SDK.

1. Initialize the SDK

import NeucronSDK from '@timechainlabs/neucron-ts-sdk';

const sdk = new NeucronSDK();

You can optionally pass a pre-existing auth token:

const sdk = new NeucronSDK({
  authToken: 'your-existing-jwt-token',
});

2. Sign Up (new users)

const signUpResult = await sdk.auth.signUp({
  email: 'user@example.com',
  password: 'SecurePassword123!',
  first_name: 'Jane',
  last_name: 'Doe',
  platform: 'NEUCRON',
});

console.log(signUpResult.data);
// {
//   paymail_id: 'jane@...',
//   token: 'eyJhbG...',
//   user_id: 'usr_...',
//   wallet_id: 'wal_...'
// }

Sign-up automatically creates a default wallet and Paymail for the user, and returns an auth token.

3. Log In

After login(), the SDK stores the token internally. You do not need to pass it manually to other services.

4. Get User Info

5. List Wallets

6. Create a Wallet

7. Work in Business Context

Most business features require a businessId. Pass it per request:

Complete Example

Log Out

What's Next?

  • Overview — Configuration, auth, headers, responses, and errors

  • Features Overview — Full SDK function documentation by feature

Last updated