constructor
Parameters
ThothSDKOptions Schema
Property
Type
Description
Default
Returns
Example
import { ThothIdSDK } from "thoth-id-sdk";
// Connect to mainnet with default settings
const sdk = new ThothIdSDK();
// Or connect to a testnet/local environment with custom options
const testnetSdk = new ThothIdSDK({
nodeUrl: "https://node1.testnet.hathor.network/v1a/nano_contract/state",
contractApiUrl: "http://localhost:3232/contract-ids", // Your custom contract API
timeoutMs: 10000,
});Last updated

