Timestamp Functions
How to use timestamp model using mitumjs SDK.
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()
orcontract.createWallet()
, and useoperation.sign()
andoperation.send()
, or usecontract.touch()
to sign and send at once.)Create a timestamp model operation using function
registerModel()
of timestamp class.Sign and send the operation to Mitum network. (You can check whether the model information has been properly registered using the
getModelInfo()
function.)The owner of the contract-account can issue new timestamp by using the function
issue()
to make raw operation.Sign and send the operation to Mitum network.
PreviousgetNFTs(contract, factHash?, limit?, offset?, reverse?)NextregisterModel(contract, sender, currency)
Last updated