Wallet

Introduction

Welcome to the Neucron SDK Wallet Module documentation. This module provides functionalities for managing wallets, accessing wallet information, and interacting with wallet-related features. Before using this module, make sure you have successfully authenticated with the Neucron SDK.

Getting Started

To use the Neucron SDK Wallet Module, follow these steps:

  1. Install the Neucron SDK:

    npm install neucron-sdk
  2. Import the SDK into your project:

    import NeucronSDK from "./src/neucron-sdk.js";
    
    const neucron = new NeucronSDK();
    await neucron.authentication.login({ email: "your-email@example.com", password: "your-password" });
  3. Access the Wallet Module:

    const walletModule = neucron.wallet;

Create Wallet

Create a new wallet with a specified name. If no walletId is provided, the default walletId will be used.

const walletCreation1 = await walletModule.createWallet({ walletName: 'Hello World-2' });
console.log(walletCreation1);

Create a wallet for a specific app by providing an appId. If no walletId is provided, the default walletId will be used.

const walletCreation2 = await walletModule.createWallet({
  walletName: 'for app Hello 00 9090 World-2',
  appId: 'd4622df9-d5ef-45e3-8d65-4837c45333ba'
});
console.log(walletCreation2);

Set Default Wallet

Set a wallet as the default wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get Wallet History

Retrieve the transaction history of a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get Wallet Keys

Retrieve the keys associated with a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get Wallet Balance

Retrieve the balance of a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get All Wallets

Retrieve information about all wallets associated with the authenticated user.

Get All UTXOs

Retrieve all unspent transaction outputs (UTXOs) associated with a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get XPub Keys

Retrieve the extended public (XPub) keys associated with a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get Mnemonic

Retrieve the mnemonic associated with a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Get Addresses by Wallet ID

Retrieve all addresses associated with a specific wallet using its walletId. If no walletId is provided, the default walletId will be used.

Feel free to further customize this documentation based on your actual API responses and any additional features or considerations for using the Neucron SDK Wallet Module.

Last updated