Skip to content

chenzhitong/LockVerify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEO lock contract verify

How to use

If you want to send an asset to the other on the Neo blockchain and ask the other person to be unable to use the asset for a specified period of time.

How do we do that?

Receiver:

You need to create an lock account via neo-gui, then send Redeem Script and Address to sender.

  1. Open neo-gui and create/open your wallet.

  2. Right-click in a blank place, Create Contract Add. Lock...

  3. Select your Account and Unlock Date, then click Create.

  4. Now you can see a Contract Address in your wallet. Righ click this Address, View Contract,and copy Redeem Script and Address to sender.

Sender:

  1. Open http://lockverify.azurewebsites.net/ and paste Redeem Script in textbox.

  2. Click Verify

  3. If the Redeem Script is not correct lock contract, it will be alert error.

  4. If the Redeem Script is correct lock contract, you can see Unlock date and Address.

  5. Compare this address to the address which sender gave you.

Once everything is in place, the sender can send assets to the lock address. No assets (Neo,gas, and other assets) in this address can be transferred until the unlock date. After the date, the recipient can transfer the assets freely.

Releases

No releases published

Packages

No packages published