Timestamp Functions

How to use timestamp model using mitumjs SDK.

  1. Create a contract-account first using function of contract class. The account must be deployed on the Mitum network. (Create an operation with contract.createAccount() or contract.createWallet(), and use operation.sign() and operation.send(), or use contract.touch() to sign and send at once.)

  2. Create a timestamp model operation using function registerModel() of timestamp class.

  3. Sign and send the operation to Mitum network. (You can check whether the model information has been properly registered using the getModelInfo() function.)

  4. The owner of the contract-account can issue new timestamp by using the function issue() to make raw operation.

  5. Sign and send the operation to Mitum network.

Last updated