Quick Start
1. Initialize the SDK
import NeucronSDK from '@timechainlabs/neucron-ts-sdk';
const sdk = new NeucronSDK();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_...'
// }3. Log In
4. Get User Info
5. List Wallets
6. Create a Wallet
7. Work in Business Context
Complete Example
Log Out
What's Next?
Last updated