Skip to content

Sct

Sct class provides an interface for interacting with a Supply Chain Token (SCT).

Creating Instances

new Sct( database: Database, id: string )

Creates a new instance of Sct, enabling interaction with the CMS for data management and on-chain operations. It allows users to login, register assets, resolve asset details, retrieve recent records, and decrypt data.

Properties

  • Sct.databaseDatabase

  • Sct.idstring

Static Methods

Sct.prepareDeployTx ( provider: Provider, signerAddress: string, IdPredictionOptions: IdPredictionOptions ) ⇒ Promise<void>

Prepares the transaction data for deploying a contract using the CREATE2 opcode.



Sct.generateSalt ( input: string )

Generates a sha256 hash of the input that's passed.