Skip to main content

Initialize SDK

import { SDK } from "joltz-js";

const sdk = new SDK({
chain: "signet"
dir: "./",
seed: "seed phrase"
});

Initialize the SDK. This will start the syncing process, which can take 1-2 minutes.

Parameters:

  • chain: mainnet. regtest or simnet
  • dir: directory to save wallet data
  • seed: seed phrase

Return Value:
The initialized SDK.