Skip to content

Commit

Permalink
Merge pull request #166 from chenzhitong/format
Browse files Browse the repository at this point in the history
format
  • Loading branch information
Celia18305 authored Nov 27, 2024
2 parents f02fddf + 1060b94 commit fa7b29d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docs/n3/exchange/transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The system fee is charged for the instructions executed by NeoVM. For each instr
SystemFee = InvocationCost = The sum of all executed opcode fee
```

### **Instructions fee**
### Instructions fee

In Neo N3, NeoVM instructions fee has decreased to 1/1000 of the original fee in Neo Legacy, which significantly reduces the development cost.

Expand Down Expand Up @@ -159,7 +159,7 @@ You need to replace these strings when querying the user's balance:

##### Example

##### **Invoking balanceOf**
##### Invoking balanceOf

Suppose the account address is NYxb4fSZVKAz8YsgaPK2WkT3KcAE9b3Vag, you need to convert it into Hash160 type and construct this parameter as a JSON object:

Expand Down Expand Up @@ -215,7 +215,7 @@ After sending the request, you will get the following response:

To get the balance divide the returned value by decimals, without needing of data conversion.

##### **Invoking decimals**
##### Invoking decimals

Request Body:

Expand Down Expand Up @@ -255,7 +255,7 @@ After sending the request, you will get the following response:

It returns integer 8.

##### **Invoking symbol**
##### Invoking symbol

Request Body:

Expand Down Expand Up @@ -295,7 +295,7 @@ After sending the request, you will get the following response:

It returns "R0FT" which can be decoded to "GAS".

##### **Calculating the User Balance**
##### Calculating the User Balance

According to all the returned values, we can calculate the user balance as follows:
The balance = return / 10<sup>decimals</sup>
Expand Down
2 changes: 1 addition & 1 deletion docs/n3/reference/scapi/framework/native/Gas/Transfer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **GAS.Transfer Method**
# GAS.Transfer Method

Transfers GAS

Expand Down
2 changes: 1 addition & 1 deletion docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **NEO.BalanceOf** Method (UInt160)
# NEO.BalanceOf Method (UInt160)

Gets the NEO balance in the account.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ symbol

##### 调用示例

##### **调用 balanceOf**
##### 调用 balanceOf

假设用户账户地址是 NYxb4fSZVKAz8YsgaPK2WkT3KcAE9b3Vag,你需要将其转换为 Hash160 类型并将此参数构造成 JSON 对象,如下所示:

Expand Down Expand Up @@ -213,7 +213,7 @@ symbol

返回值无需转换,只需除以 decimals 得到余额即可。

##### **调用 decimals**
##### 调用 decimals

请求正文:

Expand Down Expand Up @@ -253,7 +253,7 @@ symbol

返回值为整数 **8**

##### **调用 symbol**
##### 调用 symbol

请求正文:

Expand Down Expand Up @@ -293,7 +293,7 @@ symbol

返回值 "R0FT" 可以被 base64 解码为 "GAS"。

##### **计算用户余额**
##### 计算用户余额

根据所有返回值,可以计算出用户余额为:
用户余额 = balanceOf 返回值 / 10<sup>decimals</sup>。
Expand Down

0 comments on commit fa7b29d

Please sign in to comment.