Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fix issue neo-project#791

* follow up

* follow up

* add example
  • Loading branch information
Celia18305 authored and superboyiii committed Mar 28, 2019
1 parent 6ac22d9 commit d8f8f9a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions en-us/network/private-chain/private-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ Here we want to send the NEO from the contract address to the normal address.

Open the wallet you want to transfer GAS to and click `Advanced`->`Claim GAS`-> `Claim`.

> [!Note]
>
> GAS has two status, available and unavailable. Once NEO is spent (i.e. transferred out) from the account, the relevant GAS turns to available. Therefore you can transfer GAS to your own account to make them available.
![image](../../../assets/privatechain_21.png)

The next operation is similar to the transfer of the NEO. Copy the code that has insufficient signatures, open the second wallet and the third wallet successively to complete transaction signing and broadcasting.
Expand Down
12 changes: 11 additions & 1 deletion en-us/node/cli/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ unavailable: 133.024

Where `unavailable` represents the GAS that cannot be claimed and `available` represents the claimable GAS.

- This command does not show the GAS that has been claimed. Use `list asset` instead.
> [!Note]
>
> - This command does not show the GAS that has been claimed. Use `list asset` instead.
> - GAS has two status, available and unavailable. Once NEO is spent (i.e. transferred out) from the account, the relevant GAS turns to available. Therefore you can transfer GAS to your own account to make them available.
>
👉 `claim gas[all]`

Expand Down Expand Up @@ -141,6 +145,12 @@ If you are not sure of the asset ID, please enter the list asset command to view

The command is used to create a multi-party signed address. m is the minimal number of signatures. For example, creating a multi-party signed address with two public keys, m can be 1 or 2, and the parameter followed are the two parties public keys.

For example:

```
import multisigaddress 1 037ebe29fff57d8c177870e9d9eecb046b27fc290ccbac88a0e3da8bac5daa630d 03b34a4be80db4a38f62bb41d63f9b1cb664e5e0416c1ac39db605a8e30ef270cc
```

👉 `sign <jsonObjectToSign>`

This command is used to sign when withdrawing assets from a multi-signed address which requires multiple signatures. The parameter is the json string that records the transaction information. The translation can be broadcasted only after signing is completed.
Expand Down
2 changes: 2 additions & 0 deletions en-us/node/gui/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

GAS is generated with each new block and will be allocated to the address of NEO holders. (The number within the brackets of the balance of assets is the number of GAS that can be claimed) At any time, the NEO holder can initiate a claim to redeem these GAS to the corresponding address of the NEO. At the moment, only the PC version of the client has the functionality to extract GAS.

NEO has two status: unspent and spent. Unclaimed GAS has two status accordingly: unavailable and available. When NEO are transferred to an account, their status are unspent, the GAS generated during this period are unavailable for claiming. When NEO are transferred out their status become spent and related GAS become available. How to make the GAS in your account available? Transfer the NEO to any address in your wallet.

The specific steps are:

1. Transfer all the NEO within the wallet using a transfer operation. (It is possible to send the NEO straight to the current address) Once the claim for the GAS is settled, the GAS can be withdrawn. (Refer to the white paper for technical explanation of this process).
Expand Down
4 changes: 4 additions & 0 deletions zh-cn/network/private-chain/private-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ NEO 私有链的部署至少需要 4 台服务器才能取得共识,每台服

打开要转入 GAS 的钱包账户,点击 `高级` -> `提取 NeoGas` -> `全部提取`

> [!Note]
>
> GAS 有两种状态,可提取和不可提取。当账户中的 NEO 花费后(即转出),其产生的 GAS 会转变成可提取状态。你可以通过给自己转账将 GAS 变为可提取状态,即使钱包里只有一个地址也可以。
![](../assets/privatechain_21.jpg)

接下来的操作与转账 NEO 类似,将没有足够签名的代码复制下来,依次打开第二个和第三个钱包,完成交易签名和广播。提取成功后如下图所示。
Expand Down

0 comments on commit d8f8f9a

Please sign in to comment.