diff --git a/docs/n3/exchange/transaction.md b/docs/n3/exchange/transaction.md index 4b41989..ad02f01 100644 --- a/docs/n3/exchange/transaction.md +++ b/docs/n3/exchange/transaction.md @@ -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. @@ -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: @@ -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: @@ -255,7 +255,7 @@ After sending the request, you will get the following response: It returns integer 8. -##### **Invoking symbol** +##### Invoking symbol Request Body: @@ -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 / 10decimals diff --git a/docs/n3/reference/scapi/framework/native/Gas/Transfer.md b/docs/n3/reference/scapi/framework/native/Gas/Transfer.md index 1f07c92..79e92ed 100644 --- a/docs/n3/reference/scapi/framework/native/Gas/Transfer.md +++ b/docs/n3/reference/scapi/framework/native/Gas/Transfer.md @@ -1,4 +1,4 @@ -# **GAS.Transfer Method** +# GAS.Transfer Method Transfers GAS diff --git a/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md b/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md index ea64f21..ad68bdd 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md +++ b/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md @@ -1,4 +1,4 @@ -# **NEO.BalanceOf** Method (UInt160) +# NEO.BalanceOf Method (UInt160) Gets the NEO balance in the account. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/n3/exchange/transaction.md b/i18n/zh/docusaurus-plugin-content-docs/current/n3/exchange/transaction.md index a1fcb6d..619789f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/n3/exchange/transaction.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/n3/exchange/transaction.md @@ -157,7 +157,7 @@ symbol ##### 调用示例 -##### **调用 balanceOf** +##### 调用 balanceOf 假设用户账户地址是 NYxb4fSZVKAz8YsgaPK2WkT3KcAE9b3Vag,你需要将其转换为 Hash160 类型并将此参数构造成 JSON 对象,如下所示: @@ -213,7 +213,7 @@ symbol 返回值无需转换,只需除以 decimals 得到余额即可。 -##### **调用 decimals** +##### 调用 decimals 请求正文: @@ -253,7 +253,7 @@ symbol 返回值为整数 **8**。 -##### **调用 symbol** +##### 调用 symbol 请求正文: @@ -293,7 +293,7 @@ symbol 返回值 "R0FT" 可以被 base64 解码为 "GAS"。 -##### **计算用户余额** +##### 计算用户余额 根据所有返回值,可以计算出用户余额为: 用户余额 = balanceOf 返回值 / 10decimals