Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Latest commit

 

History

History
51 lines (41 loc) · 1.29 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.29 KB

Qitmeer Token

Prerequisites

For the convenience of our explanation, we take the private net as an example.

    ./qitmeer --privnet
    cd ./script

How to create a new token ?

    ./cli.sh createTokenRawTx new [CoinId] [CoinName] [TokenOwnersAddress] [UpLimit]
    ./cli.sh txSign fff2cefe258ca60ae5f5abec99b5d63e2a561c40d784ee50b04eddf8efc84b0d [RawTxHex]  
  • RawTxHex is results of the previous step.
  • fff2... is private key from testwallet
  • Please be careful not to use txSign in a formal scenario because it is not safe. Be sure to use qitmeer-wallet in formal cases.
    ./cli.sh sendRawTx [SignedRawTxHex]
    ./cli.sh generate 1
  • Finally, you can query the token status of the Qitmeer node.
    ./cli.sh tokeninfo

How to renew a token ?

    ./cli.sh createTokenRawTx renew [CoinId] [CoinName] [TokenOwnersAddress] [UpLimit]
    
    See above...
    ...

How to validate a token ?

    ./cli.sh createTokenRawTx validate [CoinId] 
    
    See above...
    ...

How to invalidate a token ?

    ./cli.sh createTokenRawTx invalidate [CoinId]
    
    See above...
    ...