Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to analyze the use of NEO Lock contract

Shulou Source: shulou.com Published: 2022-06-01 04:36:26 11月12日 Update

How to analyze the use of NEO lock contracts, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

If you want to send an asset to someone else on the NEO block chain and agree on an unlocking time, the other party cannot use the asset before the unlocking time, and the other party is free to transfer the asset after the unlocking time arrives.

How do we do this?

Recipient:

First you need to create a lock contract using neo-gui, and then send the contract address and contract script to the sender.

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

two。 Right-click outside the blank and create the contract address (A) Lock (L).

3. Select your account and unlock date, and then click create.

4. Now, you can see that there is an additional contract address in your account, right-click this address, click, view the contract, and then send the address and script to the sender.

Sender:

1. Open http://lockverify.azurewebsites.net/ and paste the contract script sent by the other party in the text box.

two。 Click Verify

3. If the contract script is incorrect, an error will be prompted here.

4. If the contract is a standard lock contract, you can see the unlock date and the contract address here.

5. Compare whether the contract address is the same as the one sent to you by the recipient.

When everything is in place, the sender can send the asset to the lock address. Any assets in this address (NEO,GAS, and other assets) cannot be transferred until the unlocking date. After the unlocked date, the recipient is free to transfer the asset.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Contract address asset date script counterparty recipient time freedom account help transfer analysis clear same content block this text article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Information Docker macOS Apple