Skip to content

TokenLedger

TokenLedger class provides an interface for interacting with a token ledger.

Creating Instances

new TokenLedger( database: Database, id: string )

Creates a new instance of TokenLedger, 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

  • TokenLedger.databaseDatabase

  • TokenLedger.idstring

Static Methods

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

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



TokenLedger.generateSalt ( input: string )

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