From 235d6e9bc7cdf0167df6cd66b907057535248cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E5=90=8C?= Date: Mon, 20 May 2024 10:15:25 +0800 Subject: [PATCH 1/5] update --- docs/n3/Advances/neofs/topics/objects.mdx | 2 +- docs/n3/develop/write/basics.md | 2 +- docs/n3/gettingstarted/develop.md | 4 ++-- docs/n3/node/cli/config.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/n3/Advances/neofs/topics/objects.mdx b/docs/n3/Advances/neofs/topics/objects.mdx index 6c0ab3e..15aed50 100644 --- a/docs/n3/Advances/neofs/topics/objects.mdx +++ b/docs/n3/Advances/neofs/topics/objects.mdx @@ -37,7 +37,7 @@ fileNameAttr.SetValue(path.Base(filepath)) //path.Base(filepath) returns the las expirationEpochAttr := new(object.Attribute) expirationEpochAttr.SetKey("__NEOFS__EXPIRATION_EPOCH") // Reserved case for when the life of the object should expire -expirationEpochAttr.SetValue(strconv.Itoa(epoch))) //The epoch at which the object will expire +expirationEpochAttr.SetValue(strconv.Itoa(epoch)) //The epoch at which the object will expire attributes = append(attributes, []*object.Attribute{timeStampAttr, fileNameAttr, expirationEpochAttr}...) diff --git a/docs/n3/develop/write/basics.md b/docs/n3/develop/write/basics.md index abdd9f3..de063ca 100644 --- a/docs/n3/develop/write/basics.md +++ b/docs/n3/develop/write/basics.md @@ -208,7 +208,7 @@ public class Contract1 : SmartContract - `DisplayName`: The name of the nef and manifest.json files generated by the compiler, and the DisplayName is also written to the name field of manifest.json. - `SupportedStandards`: The NEP standards the contract conform to, such as NEP-17, a token standard on Neo. -- `ContractPermission` : The permission requested by the contract, and `ContractTrust` indicates which contracts trust the contract to call itself. See [invocation-permission](... /deploy/invoke.html#invocation-permission). +- `ContractPermission` : The permission requested by the contract, and `ContractTrust` indicates which contracts trust the contract to call itself. See [invocation-permission](../deploy/invoke.md#invocation-permission). - `ContractAuthor`: The author field, which can be filled with the author's name and email address. It will output to the extra json object in manifest.json. - `ContractEmail`: The email field. It will be output to the extra json object in manifest.json. - `ContractSourceCode`: The URL of the contract source code. It will be output to the extra json object in manifest.json. diff --git a/docs/n3/gettingstarted/develop.md b/docs/n3/gettingstarted/develop.md index 4e086f2..68705ea 100644 --- a/docs/n3/gettingstarted/develop.md +++ b/docs/n3/gettingstarted/develop.md @@ -81,9 +81,9 @@ In comparison with Neo Legacy, the Neo N3 NEP17 sample has the following changes - Implemented onNEP17Payment to automatically execute the smart contract when NEP17 assets are received. -- Major changes occurred in smart contract framework. For details refer to [Smart Contract API](https://docs.neo.org/docs/en-us/reference/scapi/interop.html) +- Major changes occurred in smart contract framework. For details refer to [Smart Contract API](../reference/scapi/interop.md) -For more information refer to [NEP-17](https://docs.neo.org/docs/en-us/develop/write/nep17.html) . +For more information refer to [NEP-17](../develop/write/nep17.md) . ## Compiling contract file diff --git a/docs/n3/node/cli/config.md b/docs/n3/node/cli/config.md index 0d998f1..be60751 100644 --- a/docs/n3/node/cli/config.md +++ b/docs/n3/node/cli/config.md @@ -112,7 +112,7 @@ The following table lists all the plugins: |RpcServer|Enables RPC for the node|[RPC API](../../reference/rpc/latest-version/api)|Mandatory| |SQLiteWallet|A SQLite-based wallet provider that supports wallet files with .db3 suffix||Optional| |StatesDumper|Exports Neo-CLI status data.||Optional| -|StateService|StateRoot consensus service plugin|[getstateroot](../../reference/rpc/latest-version/api/getstateroot) [getproof](../../reference/rpc/latest-version/api/getproof.html) [verifyproof](../../reference/rpc/latest-version/api/verifyproof.html) [getstateheight](../../reference/rpc/latest-version/api/getstateheight.html) |Mandatory when served as a StateRoot consensus node| +|StateService|StateRoot consensus service plugin|[getstateroot](../../reference/rpc/latest-version/api/getstateroot) [getproof](../../reference/rpc/latest-version/api/getproof) [verifyproof](../../reference/rpc/latest-version/api/verifyproof.md) [getstateheight](../../reference/rpc/latest-version/api/getstateheight.md) |Mandatory when served as a StateRoot consensus node| |TokensTracker|Enquiries NEP-11 and NEP-17 assets balance and transactions history of accounts through RPC|[getnep11balances](../../reference/rpc/latest-version/api/getnep11balances) [getnep11properties](../../reference/rpc/latest-version/api/getnep11properties) [getnep11transfers](../../reference/rpc/latest-version/api/getnep11transfers) [getnep17balances](../../reference/rpc/latest-version/api/getnep17balances) [getnep17transfers](../../reference/rpc/latest-version/api/getnep17transfers) |Recommended| You can choose one of the following ways to install plugins: From f105c3f0611a5282bcac59a70c01614cfd04ea06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E5=90=8C?= Date: Mon, 20 May 2024 11:25:56 +0800 Subject: [PATCH 2/5] update --- docs/n3/Advances/Neo VM instructions.md | 5 +++-- docs/n3/Advances/Oracles.md | 9 +++++---- .../n3/Advances/neofs/topics/acl-permissions.mdx | 2 +- docs/n3/Advances/neons/index.md | 5 +++-- docs/n3/develop/deploy/deploy.md | 15 ++++++++------- docs/n3/develop/deploy/invoke.md | 6 +++--- docs/n3/develop/write/nep17.md | 16 ++++++++-------- docs/n3/fees.md | 1 - 8 files changed, 31 insertions(+), 28 deletions(-) diff --git a/docs/n3/Advances/Neo VM instructions.md b/docs/n3/Advances/Neo VM instructions.md index 61651c2..5031833 100644 --- a/docs/n3/Advances/Neo VM instructions.md +++ b/docs/n3/Advances/Neo VM instructions.md @@ -365,11 +365,13 @@ It's used to control the running process of NeoVM, including jump, call and othe | Bytecode | 0x41 | | Fee | 0 GAS | | Function | Calls to an interop service. | + ### Stack Operation Copy, remove and swap the elements of the stack. #### DEPTH + | Instruction | DEPTH | |----------|------------------------------------------| | Bytecode | 0x43 | @@ -849,7 +851,6 @@ Copy, remove and swap the elements of the stack. | Fee | 0.00000004 GAS | | Function | Returns 0 if the input is 0. 1 otherwise. | - #### NUMEQUAL | Instruction | NUMEQUAL | @@ -906,7 +907,6 @@ Copy, remove and swap the elements of the stack. | Fee | 0.00000008 GAS | | Function | Returns the smaller of a and b. | - #### MAX | Instruction | MAX | @@ -1125,3 +1125,4 @@ It has implemented common operations for array, map, struct, etc. The operation code with \* indicates that the result of the operation is not pushed back to the `EvaluationStack` using `PUSH()`. ::: + diff --git a/docs/n3/Advances/Oracles.md b/docs/n3/Advances/Oracles.md index ca45aab..04899cd 100644 --- a/docs/n3/Advances/Oracles.md +++ b/docs/n3/Advances/Oracles.md @@ -12,7 +12,7 @@ Neo Oracle Service is an out-of-chain data access service built into Neo N3. It The commit-reveal mechanism is a sequential protocol that prevents data plagiarism for multiple Oracle nodes. -**Process** +#### Process 1. Oracle node submits ciphertext information (hash, signature, etc.) about data to other Oracle nodes and collects ciphertext information submitted by other Oracle nodes. @@ -32,7 +32,7 @@ Neo Oracle Service adopts the request-response processing mechanism, which is an ![](assets/oralce_response.png) -**Process** +#### Process 1. The user writes the smart contract to call the `Request` method of the Oracle contract. @@ -54,11 +54,11 @@ Oracle service currently supports two URL schemes, `https` and `neofs`. `https` ## Fees and rewards -- **Fees** +- ### Fees Neo Oracle Service charges the user by the number of requests, 0.5 GAS by default for each. Besides, the user has to pay additional fees for the callback function. All the fees will be paid when the Request is created. -- **Rewards** +- ### Rewards The fee paid by the user for the Request is distributed to the Oracle node in turn when executing the `PostPersist` logic. @@ -240,3 +240,4 @@ The Code field defines the status Code for Oracle responses, including the follo | `0x1a` | `ResponseTooLarge` | result size is out of limit | `byte` | | `0x1c` | `InsufficientFunds` | the fee is insufficient | `byte` | | `0xff` | `Error` | error occurs in the execution | `byte` | + diff --git a/docs/n3/Advances/neofs/topics/acl-permissions.mdx b/docs/n3/Advances/neofs/topics/acl-permissions.mdx index bb354ab..9b5dbba 100644 --- a/docs/n3/Advances/neofs/topics/acl-permissions.mdx +++ b/docs/n3/Advances/neofs/topics/acl-permissions.mdx @@ -108,7 +108,7 @@ Note, there are multiple types of attribute filter you can apply, such as filter Firstly we need two records. One for the `others` and one for our privileged key ```go -import "github.com/nspcc-dev/neofs-sdk-go/eacl" +import "github.com/nspcc-dev/neofs-sdk-go/eacl" othersRecord := eacl.NewRecord() privRecord := eacl.NewRecord() diff --git a/docs/n3/Advances/neons/index.md b/docs/n3/Advances/neons/index.md index 2edf88f..c62f16a 100644 --- a/docs/n3/Advances/neons/index.md +++ b/docs/n3/Advances/neons/index.md @@ -5,7 +5,7 @@ sidebar_position: 1 # Welcome to NeoNS Documentation -### What is NeoNS +## What is NeoNS The Neo Name Service (NeoNS) is a distributed open naming system based on Neo blockchain. The main goal of NeoNS is to map names like "alice.neo" to other source identifiers such as N3 addresses, NeoFS shared link, IPV4 addresses, IPV6 addresses, and other metadata. @@ -13,10 +13,11 @@ NNS also has dot-separated hierarchical names called domains. The owner of a dom Top-level domains, like `.neo`, are owned by the Neo Committee. Users can only register domains with the registered top-level domains, such as `alice.neo` instead of `alice.eth` if the top-level domain `.eth` is not registered yet. Once the domain `alice.neo` registered users can register any subdomains ended with it, for example, `hello.alice.neo`, and configure it with records. -### Quick Start +## Quick Start NeoNS Mainnet Contract Hash: `0x50ac1c37690cc2cfc594472833cf57505d5f46de` NeoNS Magnet testnet Hash: `0xd4dbd72c8965b8f12c14d37ad57ddd91ee1d98cb` The source code can be found at [https://github.com/neo-project/non-native-contracts/tree/master/src/NameService](https://github.com/neo-project/non-native-contracts/tree/master/src/NameService). + diff --git a/docs/n3/develop/deploy/deploy.md b/docs/n3/develop/deploy/deploy.md index 481276e..62a545e 100644 --- a/docs/n3/develop/deploy/deploy.md +++ b/docs/n3/develop/deploy/deploy.md @@ -1,12 +1,12 @@ # Deploying Smart Contracts -When a smart contract is deployed on the blockchain, it can be used by other users or invoked by other contracts. This section describes how to deploy and invoke the smart contract in the Neo blockchain using Neo-CLI or Neo-GUI. The instructions in this section are generic and applicable to all contract types including NEP-17 assets. +When a smart contract is deployed on the blockchain, it can be used by other users or invoked by other contracts. This section describes how to deploy and invoke the smart contract in the Neo blockchain using Neo-CLI or Neo-GUI. The instructions in this section are generic and applicable to all contract types including NEP-17 assets. ## What contracts need to be deployed? When a smart contract needs to store data or to be invoked by another smart contract through syscall `System.Contract.Call` on the blockchain, it needs to be deployed. Contracts triggered only by the verification trigger, such as the lock contract and multi-signature contract, do not need to be deployed as they will not be invoked by other contracts. Contracts such as `return 1+1` do not need to be deployed as they do not require any input parameters. -From the programming language perspective, only when a smart contract will be used as a class library, it needs to be deployed. For example: +From the programming language perspective, only when a smart contract will be used as a class library, it needs to be deployed. For example: - When a smart contract has variable incoming parameters, it must serve as a storage. The caller or other smart contracts provide the parameters. - When a smart contract uses storage it must serve as a class library. @@ -14,14 +14,15 @@ From the programming language perspective, only when a smart contract will be us ### How to deploy? -Smart contracts are deployed by invoking APIs. Usually we use Neo-CLI or Neo-GUI to deploy smart contracts. +Smart contracts are deployed by invoking APIs. Usually we use Neo-CLI or Neo-GUI to deploy smart contracts. Deploying and invoking smart contracts cost fees. For more information, refer to [Fees](../../fees.md). ## Before you start + Make sure you have done the following: -- Confirmed that your contract should be deployed. +- Confirmed that your contract should be deployed. - Compiled a contract file (\*.nef) and a descriptive file of contract (\*.manifest.json). - Installed Neo-CLI or Neo-GUI and completed block synchronization. For more information, refer to [Neo-CLI](../../node/cli/setup.md) and [Neo-GUI](../../node/gui/install.md) @@ -31,7 +32,7 @@ In Neo-CLI run the following command to deploy your contract: `deploy [manifestFile]` -- `` : mandatory. The contract file +- `` : mandatory. The contract file - `[manifestFile]` : optional. The descriptive file of contract ### Example @@ -63,7 +64,7 @@ Signed and relayed transaction with hash=0xe03aade81fb96c44e115a1cc9cfe984a9df4a When a contract has been deployed a scripthash is generated as a unified identifier of the contract. The contract scripthash can be converted into the standard 20-byte address for receiving assets from transfer transactions. In that case the contract scripthash is used in big endian format. For example: -- Contract ScriptHash (big endian): 0xb7f4d011241ec13db16c0e3484bdd5dd9a536f26 +- Contract ScriptHash (big endian): 0xb7f4d011241ec13db16c0e3484bdd5dd9a536f26 - Corresponding address: NPRCE9me1CdXBA6StQ7kff52p61rHQqnS7 @@ -79,6 +80,6 @@ When a contract has been deployed a scripthash is generated as a unified identif ## Deploying contracts with Neo-GUI 1. In Neo-GUI click `Contract` -> `Deploy Contract`。 -2. Select the desired *.nef and *.manifest.json files. +2. Select the desired *.nef and*.manifest.json files. 3. Click `Deploy`. diff --git a/docs/n3/develop/deploy/invoke.md b/docs/n3/develop/deploy/invoke.md index 9d1530e..cd533d8 100644 --- a/docs/n3/develop/deploy/invoke.md +++ b/docs/n3/develop/deploy/invoke.md @@ -35,7 +35,7 @@ You can choose one of the following ways to invoke the contract using Neo-CLI: ### Invoking a contract using Neo-GUI -1. In Neo-GUI click `Contract `->`Invoke Contract`。 +1. In Neo-GUI click `Contract`->`Invoke Contract`。 2. Enter the contract script hash and click `Search`. @@ -45,7 +45,7 @@ You can choose one of the following ways to invoke the contract using Neo-CLI: The trial run at this step does not affect the blockchain as it is just create a NeoVM on your local computer to simulate the invocation. -4. If the trial run goes smoothly and you want to invoke it on the blockchain, click `Invoke`. +4. If the trial run goes smoothly and you want to invoke it on the blockchain, click `Invoke`. ## Cosignature @@ -113,7 +113,7 @@ Three fields related to the contract invocation permission are defined in the co | Fields | Type | Description | | ------------- | ----------------------------- | ------------------------------------------------------------ | | `Groups` | `ContractGroup[]` | Defines a group of trusted contracts, consisting of a public key and a signature of contract hash. | -| `Permissions` | `ContractPermission[]` | This field is an array containing a permission object, which defines other contracts and methods that the contract wants to call. The contract can be ScriptHash, Group, or wildcard *. The method is the method name or wildcard *. Contracts or methods not declared in the manifest cannot be called by the contract. | +| `Permissions` | `ContractPermission[]` | This field is an array containing a permission object, which defines other contracts and methods that the contract wants to call. The contract can be ScriptHash, Group, or wildcard \*. The method is the method name or wildcard \*. Contracts or methods not declared in the manifest cannot be called by the contract. | | `Trusts` | `WildcardContainer` | Defines other contracts trusted by the contract. The contract can be ScriptHash, Group, or wildcard *. If a contract is trusted, the user will not receive any warning message when the contract is called. | Assuming that the contract A calls the contract B, the following table details the invoking behavior and wallet behavior of the contract in various setting scenarios. diff --git a/docs/n3/develop/write/nep17.md b/docs/n3/develop/write/nep17.md index 87098ca..b21d7b4 100644 --- a/docs/n3/develop/write/nep17.md +++ b/docs/n3/develop/write/nep17.md @@ -6,7 +6,7 @@ NEP17 assets are recorded in the contract storage area, through updating account In the method definitions below, we provide both the definitions of the functions as they are defined in the contract as well as the invoke parameters. -**totalSupply** +## totalSupply { "name": "totalSupply", @@ -16,7 +16,7 @@ In the method definitions below, we provide both the definitions of the function Returns the total token supply deployed in the system. -**symbol** +## symbol { "name": "symbol", @@ -30,7 +30,7 @@ This string MUST be valid ASCII, MUST NOT contain whitespace or control characte This method MUST always return the same value every time it is invoked. -**decimals** +## decimals { "name": "decimals", @@ -42,7 +42,7 @@ Returns the number of decimals used by the token - e.g. `8`, means to divide the This method MUST always return the same value every time it is invoked. -**balanceOf** +## balanceOf { "name": "balanceOf", @@ -61,7 +61,7 @@ The parameter `account` MUST be a 20-byte address. If not, this method SHOULD `t If the `account` is an unused address, this method MUST return `0`. -**transfer** +## transfer { "name": "transfer", @@ -102,7 +102,7 @@ If the transfer is not processed, the function MUST return `false`. If the receiver is a deployed contract, the function MUST call `onNEP17Payment` method on receiver contract with the `data` parameter from `transfer` AFTER firing the `Transfer` event. If the receiver doesn't want to receive this transfer it MUST call `ABORT`. -**Transfer Event** +## Transfer Event { "name": "Transfer", @@ -274,7 +274,6 @@ This section summaries NEP-17 changes compared to the previous NEP-5 protocol. - The TokenSale contract should implement the `onNEP17Payment` method to receive assets and modify the Manifest file to trust the received asset contract. - ### name method The name method is moved to the manifest file, and you need to add `[DisplayName("Token Name")]` when writing the contract. @@ -308,4 +307,5 @@ The ability of the contract to receive assets has been changed from a fixed cons ### Compatibility check Compatibility checks will be activated for any contract that includes the `[SupportedStandards("NEP-17")]` or `[SupportedStandards("NEP-11")]` attribute. -The Compatibility Check reviews method names, parameters, return values, events, and similar elements to ensure they comply with the standard, and alerts about any failures in the check. \ No newline at end of file +The Compatibility Check reviews method names, parameters, return values, events, and similar elements to ensure they comply with the standard, and alerts about any failures in the check. + diff --git a/docs/n3/fees.md b/docs/n3/fees.md index f18d9b3..3e0aaab 100644 --- a/docs/n3/fees.md +++ b/docs/n3/fees.md @@ -23,7 +23,6 @@ System fees include: - CPU processing fee for native contracts - Storage fee - ### Instruction fee | Fee(GAS) | OpCode | From e30ef39276b573fef10913408049b10adae94ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E5=90=8C?= Date: Mon, 20 May 2024 11:30:13 +0800 Subject: [PATCH 3/5] update --- docs/n3/Advances/neons/api/getAllRecords.md | 210 +++++++++--------- docs/n3/Advances/neons/api/getRecord.md | 18 +- docs/n3/Advances/neons/api/roots.md | 40 ++-- .../network/private-chain/private-chain2.md | 2 +- docs/n3/develop/network/testnet.md | 2 +- docs/n3/develop/write/1_dotnet.md | 2 +- docs/n3/develop/write/difference.md | 2 +- docs/n3/develop/write/manifest.md | 2 +- docs/n3/exchange/client.md | 2 +- docs/n3/exchange/deploynode.md | 2 +- docs/n3/exchange/general.md | 2 +- docs/n3/foundation/Blocks.md | 2 +- docs/n3/foundation/Cryptography/MerkleTree.md | 2 +- .../Cryptography/encode_algorithm.md | 2 +- docs/n3/foundation/Wallets.md | 80 +++---- docs/n3/foundation/introduction.md | 2 +- docs/n3/foundation/neovm.md | 2 +- docs/n3/gettingstarted/prerequisites.md | 2 +- docs/n3/node/cli/cli.md | 2 +- docs/n3/node/cli/config.md | 2 +- docs/n3/node/gui/install.md | 2 +- docs/n3/node/gui/wallet.md | 2 +- docs/n3/node/syncblocks.md | 2 +- docs/n3/overview.md | 2 +- docs/n3/reference/governance_api/decimals.md | 6 +- .../governance_api/getBlockedAccounts.md | 24 +- .../reference/governance_api/getValidators.md | 24 +- docs/n3/reference/governance_api/index.md | 2 +- docs/n3/reference/governance_api/name.md | 6 +- docs/n3/reference/governance_api/onPersist.md | 6 +- .../governance_api/supportedStandards.md | 18 +- docs/n3/reference/governance_api/symbol.md | 6 +- .../rpc/latest-version/api/closewallet.md | 2 +- .../rpc/latest-version/api/dumpprivkey.md | 4 +- .../rpc/latest-version/api/findstates.md | 2 +- .../latest-version/api/getbestblockhash.md | 4 +- .../rpc/latest-version/api/getblock.md | 2 +- .../rpc/latest-version/api/getblockcount.md | 2 +- .../rpc/latest-version/api/getblockhash.md | 4 +- .../rpc/latest-version/api/getblockheader.md | 2 +- .../rpc/latest-version/api/getcommittee.md | 2 +- .../latest-version/api/getconnectioncount.md | 4 +- .../latest-version/api/getcontractstate.md | 2 +- .../latest-version/api/getnep17transfers.md | 2 +- .../rpc/latest-version/api/getnewaddress.md | 4 +- .../api/getnextblockvalidators.md | 2 +- .../rpc/latest-version/api/getpeers.md | 2 +- .../rpc/latest-version/api/getproof.md | 2 +- .../rpc/latest-version/api/getrawmempool.md | 4 +- .../latest-version/api/getrawtransaction.md | 2 +- .../rpc/latest-version/api/getstate.md | 2 +- .../rpc/latest-version/api/getstateheight.md | 2 +- .../rpc/latest-version/api/getstateroot.md | 2 +- .../rpc/latest-version/api/getstorage.md | 4 +- .../api/gettransactionheight.md | 2 +- .../rpc/latest-version/api/getunclaimedgas.md | 2 +- .../rpc/latest-version/api/getversion.md | 2 +- .../latest-version/api/getwalletbalance.md | 2 +- .../api/getwalletunclaimedgas.md | 4 +- .../rpc/latest-version/api/importprivkey.md | 4 +- .../api/invokecontractverify.md | 2 +- .../rpc/latest-version/api/invokefunction.md | 2 +- .../rpc/latest-version/api/invokescript.md | 2 +- .../rpc/latest-version/api/listaddress.md | 4 +- .../rpc/latest-version/api/listplugins.md | 2 +- .../rpc/latest-version/api/sendfrom.md | 2 +- .../rpc/latest-version/api/sendmany.md | 48 ++-- .../latest-version/api/sendrawtransaction.md | 2 +- .../rpc/latest-version/api/sendtoaddress.md | 2 +- .../rpc/latest-version/api/submitblock.md | 4 +- .../latest-version/api/traverseiterator.md | 2 +- .../rpc/latest-version/api/validateaddress.md | 4 +- .../rpc/latest-version/api/verifyproof.md | 2 +- .../native/ContractManagement/Deploy.md | 2 +- .../native/ContractManagement/Destroy.md | 2 +- .../native/ContractManagement/GetContract.md | 2 +- .../ContractManagement/GetContractHashes.md | 2 +- .../native/ContractManagement/Update.md | 2 +- .../scapi/framework/native/CryptoLib.md | 2 +- .../reference/scapi/framework/native/Gas.md | 2 +- .../scapi/framework/native/Gas/BalanceOf.md | 6 +- .../scapi/framework/native/Gas/TotalSupply.md | 2 +- .../scapi/framework/native/Gas/Transfer.md | 4 +- .../scapi/framework/native/Ledger/GetBlock.md | 2 +- .../framework/native/Ledger/GetTransaction.md | 2 +- .../native/Ledger/GetTransactionFromBlock.md | 2 +- .../native/Ledger/GetTransactionHeight.md | 2 +- .../scapi/framework/native/Neo/BalanceOf.md | 4 +- .../framework/native/Neo/GetAccountState.md | 2 +- .../framework/native/Neo/GetCandidates.md | 22 +- .../framework/native/Neo/GetCommittee.md | 12 +- .../framework/native/Neo/GetGasPerBlock.md | 6 +- .../native/Neo/GetNextBlockValidators.md | 12 +- .../framework/native/Neo/RegisterCandidate.md | 6 +- .../scapi/framework/native/Neo/TotalSupply.md | 6 +- .../scapi/framework/native/Neo/Transfer.md | 4 +- .../native/Neo/UnRegisterCandidate.md | 6 +- .../framework/native/Neo/UnclaimedGas.md | 6 +- .../scapi/framework/native/Neo/Vote.md | 6 +- .../scapi/framework/native/Oracle.md | 2 +- .../scapi/framework/native/Oracle/Request.md | 2 +- .../scapi/framework/native/StdLib.md | 2 +- .../scapi/framework/services/CallFlags.md | 2 +- .../scapi/framework/services/Contract/Call.md | 2 +- .../framework/services/Contract/CallEx.md | 2 +- .../framework/services/Contract/IsPayable.md | 2 +- .../services/Contract/StorageContext.md | 2 +- .../scapi/framework/services/Crypto.md | 2 +- .../scapi/framework/services/Iterator.md | 2 +- .../scapi/framework/services/Iterator/Key.md | 2 +- .../scapi/framework/services/Iterator/Next.md | 14 +- .../framework/services/Iterator/Value.md | 2 +- .../scapi/framework/services/Runtime.md | 2 +- .../services/Runtime/CheckWitness.md | 2 +- .../services/Runtime/GetNotifications.md | 2 +- .../scapi/framework/services/Runtime/Log.md | 2 +- .../scapi/framework/services/Runtime/Time.md | 2 +- .../framework/services/Runtime/Trigger.md | 2 +- .../scapi/framework/services/Storage.md | 2 +- .../framework/services/StorageContext.md | 2 +- .../scapi/framework/services/TriggerType.md | 2 +- .../invoke-a-method-in-smart-contract.md | 2 +- .../encrypt-decrypt-data-using-aes256.md | 2 +- docs/recipes/NeoFS/read-file-from-neofs.md | 2 +- docs/recipes/NeoFS/save-file-to-neofs.md | 2 +- docs/recipes/NeoFS/set-permission-to-file.md | 2 +- docs/recipes/NeoNS/add-record-to-neons.md | 2 +- docs/recipes/NeoNS/get-records-from-neons.md | 2 +- docs/recipes/NeoNS/register-name-on-neons.md | 2 +- .../call-rest-api-from-smart-contract.md | 2 +- .../Wallet/create-a-new-wallet-with-neojs.md | 2 +- docs/recipes/readme.md | 2 +- 132 files changed, 418 insertions(+), 418 deletions(-) diff --git a/docs/n3/Advances/neons/api/getAllRecords.md b/docs/n3/Advances/neons/api/getAllRecords.md index 7a6029e..9502a4d 100644 --- a/docs/n3/Advances/neons/api/getAllRecords.md +++ b/docs/n3/Advances/neons/api/getAllRecords.md @@ -22,12 +22,12 @@ curl --request POST \ "jsonrpc": "2.0", "method": "invokefunction", "params": [ "0x538355b776538a5da0b2a08c139b9900b9c0cbb6", "getAllRecords", - [ - { - "type":"String","value":"flamincome.neo" - } - ], - [] + [ + { + "type":"String","value":"flamincome.neo" + } + ], + [] ], "id": 1 } @@ -38,90 +38,90 @@ Response body #1 ```json5 { - "jsonrpc": "2.0", - "id": 1, - "result": { - "script": "DA5mbGFtaW5jb21lLm5lbxHAHwwNZ2V0QWxsUmVjb3JkcwwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", - "state": "HALT", - "gasconsumed": "725394", - "exception": null, - "stack": [ - { - "type": "InteropInterface", - "iterator": [ - { - "type": "Array", - "value": [ - { - "type": "ByteString", - "value": "c3ViMS5mbGFtaW5jb21lLm5lbw==" - }, - { - "type": "Integer", - "value": "1" - }, - { - "type": "ByteString", - "value": "MTY1LjIzLjM0LjU0" - } - ] - }, - { - "type": "Array", - "value": [ - { - "type": "ByteString", - "value": "ZmxhbWluY29tZS5uZW8=" - }, - { - "type": "Integer", - "value": "5" - }, - { - "type": "ByteString", - "value": "YWxpYXMubmVv" - } - ] - }, - { - "type": "Array", - "value": [ - { - "type": "ByteString", - "value": "ZmxhbWluY29tZS5uZW8=" - }, - { - "type": "Integer", - "value": "16" - }, - { - "type": "ByteString", - "value": "TlpIZjFOSnZ6MXR2RUxHTFdaamhwYjNOcVpKRkZVWXB4VA==" - } - ] - }, - { - "type": "Array", - "value": [ - { - "type": "ByteString", - "value": "ZmxhbWluY29tZS5uZW8=" - }, - { - "type": "Integer", - "value": "28" - }, - { - "type": "ByteString", - "value": "MjAwMToxZGI4OjA6Og==" - } - ] - } - ], - "truncated": false - } - ] - } + "jsonrpc": "2.0", + "id": 1, + "result": { + "script": "DA5mbGFtaW5jb21lLm5lbxHAHwwNZ2V0QWxsUmVjb3JkcwwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", + "state": "HALT", + "gasconsumed": "725394", + "exception": null, + "stack": [ + { + "type": "InteropInterface", + "iterator": [ + { + "type": "Array", + "value": [ + { + "type": "ByteString", + "value": "c3ViMS5mbGFtaW5jb21lLm5lbw==" + }, + { + "type": "Integer", + "value": "1" + }, + { + "type": "ByteString", + "value": "MTY1LjIzLjM0LjU0" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "ByteString", + "value": "ZmxhbWluY29tZS5uZW8=" + }, + { + "type": "Integer", + "value": "5" + }, + { + "type": "ByteString", + "value": "YWxpYXMubmVv" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "ByteString", + "value": "ZmxhbWluY29tZS5uZW8=" + }, + { + "type": "Integer", + "value": "16" + }, + { + "type": "ByteString", + "value": "TlpIZjFOSnZ6MXR2RUxHTFdaamhwYjNOcVpKRkZVWXB4VA==" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "ByteString", + "value": "ZmxhbWluY29tZS5uZW8=" + }, + { + "type": "Integer", + "value": "28" + }, + { + "type": "ByteString", + "value": "MjAwMToxZGI4OjA6Og==" + } + ] + } + ], + "truncated": false + } + ] + } } ``` @@ -137,12 +137,12 @@ curl --request POST \ "jsonrpc": "2.0", "method": "invokefunction", "params": [ "0x538355b776538a5da0b2a08c139b9900b9c0cbb6", "getAllRecords", - [ - { - "type":"String","value":"expired.neo" - } - ], - [] + [ + { + "type":"String","value":"expired.neo" + } + ], + [] ], "id": 1 } @@ -153,14 +153,14 @@ Response body #2 ```json5 { - "jsonrpc": "2.0", - "id": 1, - "result": { - "script": "DAtleHBpcmVkLm5lbxHAHwwNZ2V0QWxsUmVjb3JkcwwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", - "state": "FAULT", - "gasconsumed": "622077", - "exception": "An unhandled exception was thrown. The name has expired.", - "stack": [] - } + "jsonrpc": "2.0", + "id": 1, + "result": { + "script": "DAtleHBpcmVkLm5lbxHAHwwNZ2V0QWxsUmVjb3JkcwwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", + "state": "FAULT", + "gasconsumed": "622077", + "exception": "An unhandled exception was thrown. The name has expired.", + "stack": [] + } } ``` diff --git a/docs/n3/Advances/neons/api/getRecord.md b/docs/n3/Advances/neons/api/getRecord.md index c286b04..30da5e4 100644 --- a/docs/n3/Advances/neons/api/getRecord.md +++ b/docs/n3/Advances/neons/api/getRecord.md @@ -246,14 +246,14 @@ Response body #5 ```json5 { - "jsonrpc": "2.0", - "id": 1, - "result": { - "script": "IAwLZXhwaXJlZC5uZW8SwB8MCWdldFJlY29yZAwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", - "state": "FAULT", - "gasconsumed": "1083138", - "exception": "An unhandled exception was thrown. The name has expired.", - "stack": [] - } + "jsonrpc": "2.0", + "id": 1, + "result": { + "script": "IAwLZXhwaXJlZC5uZW8SwB8MCWdldFJlY29yZAwUtsvAuQCZmxOMoLKgXYpTdrdVg1NBYn1bUg==", + "state": "FAULT", + "gasconsumed": "1083138", + "exception": "An unhandled exception was thrown. The name has expired.", + "stack": [] + } } ``` diff --git a/docs/n3/Advances/neons/api/roots.md b/docs/n3/Advances/neons/api/roots.md index 38d538b..dc9a059 100644 --- a/docs/n3/Advances/neons/api/roots.md +++ b/docs/n3/Advances/neons/api/roots.md @@ -30,25 +30,25 @@ Response body ```json5 { - "jsonrpc": "2.0", - "id": 1, - "result": { - "script": "wh8MBXJvb3RzDBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", - "state": "HALT", - "gasconsumed": "228888", - "exception": null, - "stack": [ - { - "type": "InteropInterface", - "iterator": [ - { - "type": "ByteString", - "value": "bmVv" - } - ], - "truncated": false - } - ] - } + "jsonrpc": "2.0", + "id": 1, + "result": { + "script": "wh8MBXJvb3RzDBQaidSNifjBpm09PQ70gyzrzqkvFUFifVtS", + "state": "HALT", + "gasconsumed": "228888", + "exception": null, + "stack": [ + { + "type": "InteropInterface", + "iterator": [ + { + "type": "ByteString", + "value": "bmVv" + } + ], + "truncated": false + } + ] + } } ``` diff --git a/docs/n3/develop/network/private-chain/private-chain2.md b/docs/n3/develop/network/private-chain/private-chain2.md index 9ec2f71..3017e71 100644 --- a/docs/n3/develop/network/private-chain/private-chain2.md +++ b/docs/n3/develop/network/private-chain/private-chain2.md @@ -340,4 +340,4 @@ Here we want to send NEO from the contract address to the normal address. ![image](../assets/balance.png) -Similarly, you can refer to the preceding steps to withdraw GAS from the multi-party signature address. \ No newline at end of file +Similarly, you can refer to the preceding steps to withdraw GAS from the multi-party signature address. diff --git a/docs/n3/develop/network/testnet.md b/docs/n3/develop/network/testnet.md index 7559b13..87af656 100644 --- a/docs/n3/develop/network/testnet.md +++ b/docs/n3/develop/network/testnet.md @@ -61,4 +61,4 @@ To access the assets, in your Neo-gui you will create a "Multi-party signed addr ## Alternatives to the TestNet -Testing your Smart Contract on the TestNet is a good idea before publishing it on the live network but earlier in your development cycle you should consider using other methods to test your Smart Contacts such as running you own private chain, for more information, refer to [Setting up private chain](private-chain/solo.md). \ No newline at end of file +Testing your Smart Contract on the TestNet is a good idea before publishing it on the live network but earlier in your development cycle you should consider using other methods to test your Smart Contacts such as running you own private chain, for more information, refer to [Setting up private chain](private-chain/solo.md). diff --git a/docs/n3/develop/write/1_dotnet.md b/docs/n3/develop/write/1_dotnet.md index 4913402..807e65e 100644 --- a/docs/n3/develop/write/1_dotnet.md +++ b/docs/n3/develop/write/1_dotnet.md @@ -168,4 +168,4 @@ Contract template for community maintenance: - [Neo3.SmartContract.Templates](https://www.nuget.org/packages/Neo3.SmartContract.Templates) by: shuaishuimen -- [NeoEvents.SmartContract.Templates](https://www.nuget.org/packages/NeoEvents.SmartContract.Templates) by: cschuchardt \ No newline at end of file +- [NeoEvents.SmartContract.Templates](https://www.nuget.org/packages/NeoEvents.SmartContract.Templates) by: cschuchardt diff --git a/docs/n3/develop/write/difference.md b/docs/n3/develop/write/difference.md index d5261f6..5d8f6d3 100644 --- a/docs/n3/develop/write/difference.md +++ b/docs/n3/develop/write/difference.md @@ -77,7 +77,7 @@ static readonly UInt160 Owner = default; | | Neo Legacy | Neo N3 | | ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | main | | Removed. Developers no longer need to write the redundant main method for contract method jumping | -| Verify | Determined in the Main method, for example:
public static object Main(string method, object[] args)
{
if (Runtime.Trigger == TriggerType.Verification)
{
return IsOwner();
)
} | Independent method:
`public static bool Verify() => IsOwner();` | +| Verify | Determined in the Main method, for example:
public static object Main(string method, object[] args)
{
if (Runtime.Trigger == TriggerType.Verification)
{
return IsOwner();
)
} | Independent method:
`public static bool Verify() => IsOwner();` | | Method Name | To make the method name conform to the smart contract naming rules, the method is declared like this:
[DisplayName("balanceOf")]
public static BigInteger BalanceOf(byte[] account) | The first letter of the method name is automatically compiled to lowercase, so developers no longer have to use DisplayName, but DisplayName is still acceptable. | | Deployment | Initialization variables are placed into a separate method that is called manually after deployment. | The method `_deploy` is added, which is executed automatically after deployment. | | Update and destroy | You need to write the Update and Destroy methods by yourself. | Update and Destroy methods are built in the contract template | diff --git a/docs/n3/develop/write/manifest.md b/docs/n3/develop/write/manifest.md index 3355f08..a85c293 100644 --- a/docs/n3/develop/write/manifest.md +++ b/docs/n3/develop/write/manifest.md @@ -32,7 +32,7 @@ The Manifest file includes the following fields. | Groups | ContractGroup[] Consisting of a public key and a signature on the contract hash | Defines a group of trusted contracts. Contracts in a group trusts each other and can be invoked by each other, without prompting the user any warnings. For example, a series of contracts that call each other for a DeFi project. A group is identified by a public key and must has a signature for the contract hash to prove that the contract is included in the group. | | SupportedStandards | string[] | Supported NEP standard, equivalent to NEP-10 in Neo Legacy.x | | Abi | ContractAbi | NEP-14 (NeoContract ABI) Description of smart contract methods (name, parameters, return value, offset, safe or not), events (name, parameters) | -| Permissions | ContractPermission[] Consisting of the contract and its method names | This field is an array containing a permission object, which defines other contracts and methods that the contract wants to call. The contract can be ScriptHash, Group, or wildcard *. The method is the method name or wildcard *. Contracts or methods not declared in the manifest cannot be called by the contract. | +| Permissions | ContractPermission[] Consisting of the contract and its method names | This field is an array containing a permission object, which defines other contracts and methods that the contract wants to call. The contract can be ScriptHash, Group, or wildcard \*. The method is the method name or wildcard \*. Contracts or methods not declared in the manifest cannot be called by the contract. | | Trusts | WildcardContainer | Defines other contracts trusted by the contract. The contract can be ScriptHash, Group, or wildcard *. If a contract is trusted, the user will not receive any warning message when the contract is called. | | Extra | object | Other user-defined data, such as developer, email, URL, contract profile, etc. | diff --git a/docs/n3/exchange/client.md b/docs/n3/exchange/client.md index 48356fe..d122d77 100644 --- a/docs/n3/exchange/client.md +++ b/docs/n3/exchange/client.md @@ -94,4 +94,4 @@ There are two methods to generate deposit addresses: :::note Either way, the exchange must import the addresses into the database and distribute them to users. It is generally recommend the exchange use the second way, so as to reduce the external controls and run the wallet more stably. -::: \ No newline at end of file +::: diff --git a/docs/n3/exchange/deploynode.md b/docs/n3/exchange/deploynode.md index 954d2e2..15c0b01 100644 --- a/docs/n3/exchange/deploynode.md +++ b/docs/n3/exchange/deploynode.md @@ -47,4 +47,4 @@ Before running Neo-CLI, you need to make necessary configurations in the Neo-CLI :::caution Be cautious to enable automatic opening of wallet. Before you do that, make sure your firewall is open and safe as Password specified in the file is in clear text. -::: \ No newline at end of file +::: diff --git a/docs/n3/exchange/general.md b/docs/n3/exchange/general.md index 34fb592..7d8888f 100644 --- a/docs/n3/exchange/general.md +++ b/docs/n3/exchange/general.md @@ -16,4 +16,4 @@ This document contains the following topics: :::note Different versions of Neo-CLI are different in ways of interfacing with exchanges. Please note the version behavior differences before upgrading your client version. -::: \ No newline at end of file +::: diff --git a/docs/n3/foundation/Blocks.md b/docs/n3/foundation/Blocks.md index 01475bc..fc53cfd 100644 --- a/docs/n3/foundation/Blocks.md +++ b/docs/n3/foundation/Blocks.md @@ -52,4 +52,4 @@ At present, there can be up to 512 transactions per block. :::note When a block persistent, it stores a hash list of the block's transaction, and the transaction data is stored separately to facilitate queries. -::: \ No newline at end of file +::: diff --git a/docs/n3/foundation/Cryptography/MerkleTree.md b/docs/n3/foundation/Cryptography/MerkleTree.md index 2e793c0..5a86317 100644 --- a/docs/n3/foundation/Cryptography/MerkleTree.md +++ b/docs/n3/foundation/Cryptography/MerkleTree.md @@ -18,4 +18,4 @@ Transaction001's validity can be verified by comparing original Top Hash value w - Builds a Merkle tree root when constructing a block header - Verifies the block data using SPV wallets. -- As a data structure, generates a stateRoot for Neo blocks. This is used in cross-chain and light node scenarios for quickly verifying the validity of blocks. \ No newline at end of file +- As a data structure, generates a stateRoot for Neo blocks. This is used in cross-chain and light node scenarios for quickly verifying the validity of blocks. diff --git a/docs/n3/foundation/Cryptography/encode_algorithm.md b/docs/n3/foundation/Cryptography/encode_algorithm.md index 2b80d8d..0831cca 100644 --- a/docs/n3/foundation/Cryptography/encode_algorithm.md +++ b/docs/n3/foundation/Cryptography/encode_algorithm.md @@ -101,4 +101,4 @@ Scenarios: - Switch between contract script hash and address -- Import / export NEP2 format secret key \ No newline at end of file +- Import / export NEP2 format secret key diff --git a/docs/n3/foundation/Wallets.md b/docs/n3/foundation/Wallets.md index 3cd6110..885d338 100644 --- a/docs/n3/foundation/Wallets.md +++ b/docs/n3/foundation/Wallets.md @@ -202,34 +202,34 @@ An NEP6 wallet file complies with the NEP6 standard, and the file name extension ```json { - "name": null, - "version": "3.0", - "scrypt": { - "n": 16384, - "r": 8, - "p": 8 - }, - "accounts": [ - { - "address": "Nf8iN8CABre87oDaDrHSnMAyVoU9jYa2FR", - "label": null, - "isdefault": false, - "lock": false, - "key": "6PYM9DxRY8RMhKHp512xExRVLeB9DSkW2cCKCe65oXgL4tD2kaJX2yb9vD", - "contract": { - "script": "DCEDYgBftumtbwC64LbngHbZPDVrSMrEuHXNP0tJzPlOdL5BdHR2qg==", - "parameters": [ - { - "name": "signature", - "type": "Signature" - } - ], - "deployed": false - }, - "extra": null - } - ], - "extra": null + "name": null, + "version": "3.0", + "scrypt": { + "n": 16384, + "r": 8, + "p": 8 + }, + "accounts": [ + { + "address": "Nf8iN8CABre87oDaDrHSnMAyVoU9jYa2FR", + "label": null, + "isdefault": false, + "lock": false, + "key": "6PYM9DxRY8RMhKHp512xExRVLeB9DSkW2cCKCe65oXgL4tD2kaJX2yb9vD", + "contract": { + "script": "DCEDYgBftumtbwC64LbngHbZPDVrSMrEuHXNP0tJzPlOdL5BdHR2qg==", + "parameters": [ + { + "name": "signature", + "type": "Signature" + } + ], + "deployed": false + }, + "extra": null + } + ], + "extra": null } ``` In this example the password is 1 @@ -265,17 +265,17 @@ An NEP6 wallet uses scrypt algorithm as the core method of wallet encryption and 2. Calculate a `derivedkey` by the scrypt algorithm, and divide the 64-byte data into two halves as `derivedhalf1` and `derivedhalf2` Scrypt uses the following parameters: - ciphertext: The entered password (UTF-8 format) - - salt: address hash - - n: 16384 - - r: 8 - - p: 8 - - length: 64 + - salt: address hash + - n: 16384 + - r: 8 + - p: 8 + - length: 64 3. Do xor operation on the private key and `derivedhalf1`, and then get `encryptedkey` by using AES256 to encrypt it with `derivedhalf2` 4. Concatenate data according to the following format and obtain `NEP2Key` by using Base58Check encoding of it - `0x01` + `0x42` + `0xe0` + address hash + `encryptedkey` + `0x01` + `0x42` + `0xe0` + address hash + `encryptedkey` **Decryption steps**: @@ -340,18 +340,18 @@ Example: | Function Name | Description | | ---------------- | ------------------------------------------------------------ | | Import wallet file | Import the account information from the specified wallet file | -| Export wallet file | Store the account information (including private key, password, address, etc.) in the specified wallet file such as db3 wallet file, nep6 json file. | +| Export wallet file | Store the account information (including private key, password, address, etc.) in the specified wallet file such as db3 wallet file, nep6 json file. | | Unlock wallet | Verify user password to prevent leaks | -| Create private key | Recommend safe random generator | +| Create private key | Recommend safe random generator | | Import private key | Add new private key to the wallet with wif format or digital certificate | -| Export private key | Export accounts' private key | +| Export private key | Export accounts' private key | | Generate public key | Obtain public key by ECC algorithm with private key | | Generate address | Generate address based on private key | -| Import address | Add new address to the wallet | +| Import address | Add new address to the wallet | | Export address | Export accounts' address | | Import offline data | Load block data in `chain.acc` file to reduce synchronization time | -| Export offline data | Export block data in `chain.acc` file | -| Synchronize block data | | +| Export offline data | Export block data in `chain.acc` file | +| Synchronize block data | | | Transfer | Transfer to other addresses | | Sign | Sign data, such as transactions | | Claim Gas | Claim the newly allocated gas from the neo held by the account | diff --git a/docs/n3/foundation/introduction.md b/docs/n3/foundation/introduction.md index 1b6c2d4..be29428 100644 --- a/docs/n3/foundation/introduction.md +++ b/docs/n3/foundation/introduction.md @@ -10,4 +10,4 @@ sidebar_position: 0 Neo is the most feature-complete blockchain platform for building decentralized applications. Neo enables developers to digitize and automate the management of assets through smart contracts. Multi-language support (including C#, Python, Go, TypeScript, and Java) makes it easy for developers to build on the platform in the language they are most comfortable with. Neo also provides powerful native infrastructures such as decentralized storage, oracles, and domain name service, creating a solid foundation for the Next-Gen Internet. -[Read more about Neo](https://neo.org/about) \ No newline at end of file +[Read more about Neo](https://neo.org/about) diff --git a/docs/n3/foundation/neovm.md b/docs/n3/foundation/neovm.md index a8c8360..9e07ce8 100644 --- a/docs/n3/foundation/neovm.md +++ b/docs/n3/foundation/neovm.md @@ -52,4 +52,4 @@ A complete execution process is as follows: 2. Execution engine of NeoVM loads the bytecode file, and then constructs the bytecodes together with the related parameters in the file as an execution context and finally pushes it into invocation stack. 3. Each time execution engine takes an instruction from current context, and then executes corresponding operations according to the instruction. The data generated in execution process will be stored in the evaluation stack and alt stack of current context. 4. For accessing external data, encrypting data, zero-knowledge proof and other operations, the interoperation interfaces will be invoked. -5. After all scripts are executed, the result will be stored in the result stack. \ No newline at end of file +5. After all scripts are executed, the result will be stored in the result stack. diff --git a/docs/n3/gettingstarted/prerequisites.md b/docs/n3/gettingstarted/prerequisites.md index 38a3782..64507fe 100644 --- a/docs/n3/gettingstarted/prerequisites.md +++ b/docs/n3/gettingstarted/prerequisites.md @@ -12,4 +12,4 @@ You are recommended to run Neo-CLI in the following environments that we have te ### Download Neo-CLI -Refer to [Neo-CLI Setup](../node/cli/setup.md) to download and install Neo-CLI package from GitHub. \ No newline at end of file +Refer to [Neo-CLI Setup](../node/cli/setup.md) to download and install Neo-CLI package from GitHub. diff --git a/docs/n3/node/cli/cli.md b/docs/n3/node/cli/cli.md index 97ad929..24521f2 100644 --- a/docs/n3/node/cli/cli.md +++ b/docs/n3/node/cli/cli.md @@ -1439,4 +1439,4 @@ Verifies with root hash and proof. ``` neo> verify proof 0x7bf925dbd33af0e00d392b92313da59369ed86c82494d0e02040b24faac0a3ca Bfv///8XBiQBAQ8DRzb6Vkdw0r5nxMBp6Z5nvbyXiupMvffwm0v5GdB6jHvyAAQEBAQEBAQEA7l84HFtRI5V11s58vA+8CZ5GArFLkGUYLO98RLaMaYmA5MEnx0upnVI45XTpoUDRvwrlPD59uWy9aIrdS4T0D2cA6Rwv/l3GmrctRzL1me+iTUFdDgooaz+esFHFXJdDANfA2bdshZMp5ox2goVAOMjvoxNIWWOqjJoRPu6ZOw2kdj6A8xovEK1Mp6cAG9z/jfFDrSEM60kuo97MNaVOP/cDZ1wA1nf4WdI+jksYz0EJgzBukK8rEzz8jE2cb2Zx2fytVyQBANC7v2RaLMCRF1XgLpSri12L2IwL9Zcjz5LZiaB5nHKNgQpAQYPDw8PDw8DggFffnsVMyqAfZjg+4gu97N/gKpOsAK8Q27s56tijRlSAAMm26DYxOdf/IjEgkE/u/CoRL6dDnzvs1dxCg/00esMvgPGioeOqQCkDOTfliOnCxYjbY/0XvVUOXkceuDm1W0FzQQEBAQEBAQEBAQEBAQEBJIABAPH1PnX/P8NOgV4KHnogwD7xIsD8KvNhkTcDxgCo7Ec6gPQs1zD4igSJB4M9jTREq+7lQ5PbTH/6d138yUVvtM8bQP9Df1kh7asXrYjZolKhLcQ1NoClQgEzbcJfYkCHXv6DQQEBAOUw9zNl/7FJrWD7rCv0mbOoy6nLlHWiWuyGsA12ohRuAQEBAQEBAQEBAYCBAIAAgA= AAI= -``` \ No newline at end of file +``` diff --git a/docs/n3/node/cli/config.md b/docs/n3/node/cli/config.md index be60751..17c2f95 100644 --- a/docs/n3/node/cli/config.md +++ b/docs/n3/node/cli/config.md @@ -176,4 +176,4 @@ If you want the external program to access the node API need to open the firewal :::warning If you open the API service and the wallet in Neo-CLI, you need to set up your firewall policy. For example, set a whitelist for the firewall to only allow access to these ports by whitelisted IP addresses. If completely opening the service to external network, others may be able to export the private key or transfer assets using API. -::: \ No newline at end of file +::: diff --git a/docs/n3/node/gui/install.md b/docs/n3/node/gui/install.md index 797c7d2..6868cf2 100644 --- a/docs/n3/node/gui/install.md +++ b/docs/n3/node/gui/install.md @@ -46,4 +46,4 @@ If you have already built a private chain (see [Setting up private chain](../../ ![](../../assets/guinetwork.png) -After a while, when you see the block synchronization data displayed at the top of the main page is increasing, that indicates your client has connected to the network successfully. \ No newline at end of file +After a while, when you see the block synchronization data displayed at the top of the main page is increasing, that indicates your client has connected to the network successfully. diff --git a/docs/n3/node/gui/wallet.md b/docs/n3/node/gui/wallet.md index 11eac09..e5b0e18 100644 --- a/docs/n3/node/gui/wallet.md +++ b/docs/n3/node/gui/wallet.md @@ -112,4 +112,4 @@ If the transfer transaction is initiated from a multi-signature address, you wil ## Address book -The address book shows all the addresses in the current wallet. \ No newline at end of file +The address book shows all the addresses in the current wallet. diff --git a/docs/n3/node/syncblocks.md b/docs/n3/node/syncblocks.md index d1ef957..b42d536 100644 --- a/docs/n3/node/syncblocks.md +++ b/docs/n3/node/syncblocks.md @@ -54,4 +54,4 @@ Run the client again and check the blocks downloading status: - The client cannot be reached during the process when it is synchronizing with the offline package, thus the connected nodes is 0 and you cannot invoke APIs from the client until it has completed synchronization. - You can also use the Neo-CLI command `export blocks`, to export the entire blockchain data to a package or export the specified number of block data from the specified block height . For more information, see [CLI Command Line](cli/cli.md). -::: \ No newline at end of file +::: diff --git a/docs/n3/overview.md b/docs/n3/overview.md index 889b961..674f3df 100644 --- a/docs/n3/overview.md +++ b/docs/n3/overview.md @@ -7,4 +7,4 @@ slug: / # Overview Here you’ll find documentation to help you build with Neo. Explore these documents to learn about the Neo blockchain at a conceptual level, understand the basics of the Neo technology stack, and drill down further into advanced topics that cover more complex applications and use cases. -Neo has been an open-source community effort from the beginning. We invite you to contribute your own ideas and knowledge to help Neo continue to improve and evolve. Wherever you see a need, you are welcome to suggest new topics, add your own content, or provide examples. All documentation can be edited via [GitHub.](https://github.com/neo-project/neo-dev-portal) \ No newline at end of file +Neo has been an open-source community effort from the beginning. We invite you to contribute your own ideas and knowledge to help Neo continue to improve and evolve. Wherever you see a need, you are welcome to suggest new topics, add your own content, or provide examples. All documentation can be edited via [GitHub.](https://github.com/neo-project/neo-dev-portal) diff --git a/docs/n3/reference/governance_api/decimals.md b/docs/n3/reference/governance_api/decimals.md index 9ffa64d..7c98f77 100644 --- a/docs/n3/reference/governance_api/decimals.md +++ b/docs/n3/reference/governance_api/decimals.md @@ -4,7 +4,7 @@ Returns token decimals. ## Contract - Nep17Token + Nep17Token ## Example @@ -18,8 +18,8 @@ Respond content: ```json { - "Type":"Integer", - "value":"0" + "Type":"Integer", + "value":"0" } ``` diff --git a/docs/n3/reference/governance_api/getBlockedAccounts.md b/docs/n3/reference/governance_api/getBlockedAccounts.md index 16b9c5c..eb2b0e7 100644 --- a/docs/n3/reference/governance_api/getBlockedAccounts.md +++ b/docs/n3/reference/governance_api/getBlockedAccounts.md @@ -4,7 +4,7 @@ Returns the blocked accounts. ## Contract - PolicyContract + PolicyContract ## Example @@ -18,17 +18,17 @@ Respond content: ```json { - "type": "Array", - "value": [{ - "type": "Struct", - "value": [{ - "type": "ByteString", - "value": "AkuBfvN/L8PUoz/jZoflktnzD\u002BJLPigYfcjxKzs7K4Oe" - }, { - "type": "Integer", - "value": "0" - }] - }] + "type": "Array", + "value": [{ + "type": "Struct", + "value": [{ + "type": "ByteString", + "value": "AkuBfvN/L8PUoz/jZoflktnzD\u002BJLPigYfcjxKzs7K4Oe" + }, { + "type": "Integer", + "value": "0" + }] + }] } ``` diff --git a/docs/n3/reference/governance_api/getValidators.md b/docs/n3/reference/governance_api/getValidators.md index 46a4ba4..390d449 100644 --- a/docs/n3/reference/governance_api/getValidators.md +++ b/docs/n3/reference/governance_api/getValidators.md @@ -4,7 +4,7 @@ Returns current validators. ## Contract - NeoToken + NeoToken ## Example @@ -18,17 +18,17 @@ Respond content: ```json { - "type": "Array", - "value": [{ - "type": "Struct", - "value": [{ - "type": "ByteString", - "value": "AkuBfvN/L8PUoz/jZoflktnzD\u002BJLPigYfcjxKzs7K4Oe" - }, { - "type": "Integer", - "value": "0" - }] - }] + "type": "Array", + "value": [{ + "type": "Struct", + "value": [{ + "type": "ByteString", + "value": "AkuBfvN/L8PUoz/jZoflktnzD\u002BJLPigYfcjxKzs7K4Oe" + }, { + "type": "Integer", + "value": "0" + }] + }] } ``` diff --git a/docs/n3/reference/governance_api/index.md b/docs/n3/reference/governance_api/index.md index e41a8ee..8732cfc 100644 --- a/docs/n3/reference/governance_api/index.md +++ b/docs/n3/reference/governance_api/index.md @@ -141,4 +141,4 @@ Contract methods by NEO: | Method | Parameters | Fee in GAS | Return value | | ---- | ------------------------------------ | ---- | ---- | -| [`UnclaimedGas`](../scapi/framework/native/Neo/UnclaimedGas) | UInt160 account | 0.00131072 (CpuFee) | unclaimed GAS amount of this address in uint | \ No newline at end of file +| [`UnclaimedGas`](../scapi/framework/native/Neo/UnclaimedGas) | UInt160 account | 0.00131072 (CpuFee) | unclaimed GAS amount of this address in uint | diff --git a/docs/n3/reference/governance_api/name.md b/docs/n3/reference/governance_api/name.md index 4242311..96a9b6b 100644 --- a/docs/n3/reference/governance_api/name.md +++ b/docs/n3/reference/governance_api/name.md @@ -4,7 +4,7 @@ Returns contract name. ## Contract - NativeContract + NativeContract ## Example @@ -18,8 +18,8 @@ Respond content: ```json { - "Type":"ByteString", - "value":"NEO" + "Type":"ByteString", + "value":"NEO" } ``` diff --git a/docs/n3/reference/governance_api/onPersist.md b/docs/n3/reference/governance_api/onPersist.md index 07dabe8..9756d30 100644 --- a/docs/n3/reference/governance_api/onPersist.md +++ b/docs/n3/reference/governance_api/onPersist.md @@ -4,7 +4,7 @@ Manually performs actions the Nep17 contract will do upon block persisting. ## Contract - NativeContract + NativeContract ## Parameters @@ -18,8 +18,8 @@ Respond content: ```json { - "Type":"Void", - "value":"NULL" + "Type":"Void", + "value":"NULL" } ``` diff --git a/docs/n3/reference/governance_api/supportedStandards.md b/docs/n3/reference/governance_api/supportedStandards.md index 1038dbd..de0183d 100644 --- a/docs/n3/reference/governance_api/supportedStandards.md +++ b/docs/n3/reference/governance_api/supportedStandards.md @@ -4,7 +4,7 @@ Returns supported NEP standards. ## Contract - NativeContract + NativeContract ## Example @@ -18,14 +18,14 @@ Respond content: ```json { - "type": "Array", - "value": [{ - "type": "ByteString", - "value": "NEP-5" - }, { - "type": "ByteString", - "value": "NEP-10" - }] + "type": "Array", + "value": [{ + "type": "ByteString", + "value": "NEP-5" + }, { + "type": "ByteString", + "value": "NEP-10" + }] } ``` diff --git a/docs/n3/reference/governance_api/symbol.md b/docs/n3/reference/governance_api/symbol.md index 4cd0931..8c66340 100644 --- a/docs/n3/reference/governance_api/symbol.md +++ b/docs/n3/reference/governance_api/symbol.md @@ -4,7 +4,7 @@ Returns token symbol. ## Contract - Nep17Token + Nep17Token ## Example @@ -18,8 +18,8 @@ Respond content: ```json { - "Type":"ByteString", - "value":"neo" + "Type":"ByteString", + "value":"neo" } ``` diff --git a/docs/n3/reference/rpc/latest-version/api/closewallet.md b/docs/n3/reference/rpc/latest-version/api/closewallet.md index 03aa45d..fcc5536 100644 --- a/docs/n3/reference/rpc/latest-version/api/closewallet.md +++ b/docs/n3/reference/rpc/latest-version/api/closewallet.md @@ -35,4 +35,4 @@ Response body: Response Description: true: The wallet is closed successfully. -Others: failure \ No newline at end of file +Others: failure diff --git a/docs/n3/reference/rpc/latest-version/api/dumpprivkey.md b/docs/n3/reference/rpc/latest-version/api/dumpprivkey.md index df13a00..b35962c 100644 --- a/docs/n3/reference/rpc/latest-version/api/dumpprivkey.md +++ b/docs/n3/reference/rpc/latest-version/api/dumpprivkey.md @@ -1,4 +1,4 @@ -# dumpprivkey Method +# dumpprivkey Method Exports the private key of the specified address. @@ -38,4 +38,4 @@ Response body: Response Description: -Returns the private key of the standard address. \ No newline at end of file +Returns the private key of the standard address. diff --git a/docs/n3/reference/rpc/latest-version/api/findstates.md b/docs/n3/reference/rpc/latest-version/api/findstates.md index 7fdc2d7..a3b8062 100644 --- a/docs/n3/reference/rpc/latest-version/api/findstates.md +++ b/docs/n3/reference/rpc/latest-version/api/findstates.md @@ -91,4 +91,4 @@ Response body: ] } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getbestblockhash.md b/docs/n3/reference/rpc/latest-version/api/getbestblockhash.md index 67437ae..de19079 100644 --- a/docs/n3/reference/rpc/latest-version/api/getbestblockhash.md +++ b/docs/n3/reference/rpc/latest-version/api/getbestblockhash.md @@ -1,4 +1,4 @@ -# getbestblockhash Method +# getbestblockhash Method Returns the latest block hash of the block chain. @@ -31,4 +31,4 @@ Returns the latest block hash of the block chain. ##### Response Description -Result: The latest block hash of the block chain. \ No newline at end of file +Result: The latest block hash of the block chain. diff --git a/docs/n3/reference/rpc/latest-version/api/getblock.md b/docs/n3/reference/rpc/latest-version/api/getblock.md index 5a6daf3..51ab2c5 100644 --- a/docs/n3/reference/rpc/latest-version/api/getblock.md +++ b/docs/n3/reference/rpc/latest-version/api/getblock.md @@ -1,4 +1,4 @@ -# getblock Method +# getblock Method Returns the corresponding block information according to the specified hash or index. diff --git a/docs/n3/reference/rpc/latest-version/api/getblockcount.md b/docs/n3/reference/rpc/latest-version/api/getblockcount.md index 97fc746..0322b0a 100644 --- a/docs/n3/reference/rpc/latest-version/api/getblockcount.md +++ b/docs/n3/reference/rpc/latest-version/api/getblockcount.md @@ -1,4 +1,4 @@ -# getblockcount Method +# getblockcount Method Gets the block count of the blockchain. diff --git a/docs/n3/reference/rpc/latest-version/api/getblockhash.md b/docs/n3/reference/rpc/latest-version/api/getblockhash.md index 266fe12..dbf3576 100644 --- a/docs/n3/reference/rpc/latest-version/api/getblockhash.md +++ b/docs/n3/reference/rpc/latest-version/api/getblockhash.md @@ -1,4 +1,4 @@ -# getblockhash Method +# getblockhash Method Returns the hash value of the corresponding block based on the specified index. @@ -31,4 +31,4 @@ Response body: "id": 1, "result": "0xdf17b40c5627a45e83d61b286a6d6d14859136621760d0a5b58dd59d18fd53d4" } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getblockheader.md b/docs/n3/reference/rpc/latest-version/api/getblockheader.md index 35c92f5..23f5faa 100644 --- a/docs/n3/reference/rpc/latest-version/api/getblockheader.md +++ b/docs/n3/reference/rpc/latest-version/api/getblockheader.md @@ -1,4 +1,4 @@ -# getblockheader Method +# getblockheader Method Returns the corresponding block header information according to the specified script hash or index. diff --git a/docs/n3/reference/rpc/latest-version/api/getcommittee.md b/docs/n3/reference/rpc/latest-version/api/getcommittee.md index 7330f6f..6c1c1c1 100644 --- a/docs/n3/reference/rpc/latest-version/api/getcommittee.md +++ b/docs/n3/reference/rpc/latest-version/api/getcommittee.md @@ -48,4 +48,4 @@ Response body: "02df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e895093" ] } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getconnectioncount.md b/docs/n3/reference/rpc/latest-version/api/getconnectioncount.md index fff224d..45c8b32 100644 --- a/docs/n3/reference/rpc/latest-version/api/getconnectioncount.md +++ b/docs/n3/reference/rpc/latest-version/api/getconnectioncount.md @@ -1,4 +1,4 @@ -# getconnectioncount Method +# getconnectioncount Method Gets the current number of connections for the node. @@ -27,4 +27,4 @@ Response body: "id": 1, "result": 10 } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getcontractstate.md b/docs/n3/reference/rpc/latest-version/api/getcontractstate.md index a04e9a5..8c8e614 100644 --- a/docs/n3/reference/rpc/latest-version/api/getcontractstate.md +++ b/docs/n3/reference/rpc/latest-version/api/getcontractstate.md @@ -1,4 +1,4 @@ -# getcontractstate Method +# getcontractstate Method Queries the contract information with the contract script hash or native contract name. diff --git a/docs/n3/reference/rpc/latest-version/api/getnep17transfers.md b/docs/n3/reference/rpc/latest-version/api/getnep17transfers.md index 16e1dc4..8123dbd 100644 --- a/docs/n3/reference/rpc/latest-version/api/getnep17transfers.md +++ b/docs/n3/reference/rpc/latest-version/api/getnep17transfers.md @@ -114,4 +114,4 @@ Response body: "address": "NikhQp1aAD1YFCiwknhM5LQQebj4464bCJ" } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getnewaddress.md b/docs/n3/reference/rpc/latest-version/api/getnewaddress.md index 194caad..8632f4c 100644 --- a/docs/n3/reference/rpc/latest-version/api/getnewaddress.md +++ b/docs/n3/reference/rpc/latest-version/api/getnewaddress.md @@ -1,4 +1,4 @@ -# getnewaddress Method +# getnewaddress Method Creates a new address. @@ -34,4 +34,4 @@ Response body: Response Description: -Returns the newly created address. \ No newline at end of file +Returns the newly created address. diff --git a/docs/n3/reference/rpc/latest-version/api/getnextblockvalidators.md b/docs/n3/reference/rpc/latest-version/api/getnextblockvalidators.md index 5df3167..c64f806 100644 --- a/docs/n3/reference/rpc/latest-version/api/getnextblockvalidators.md +++ b/docs/n3/reference/rpc/latest-version/api/getnextblockvalidators.md @@ -39,4 +39,4 @@ Response body: :::note The default vote of validator is 0 when voting has not started. -::: \ No newline at end of file +::: diff --git a/docs/n3/reference/rpc/latest-version/api/getpeers.md b/docs/n3/reference/rpc/latest-version/api/getpeers.md index 9456abb..be29c5c 100644 --- a/docs/n3/reference/rpc/latest-version/api/getpeers.md +++ b/docs/n3/reference/rpc/latest-version/api/getpeers.md @@ -1,4 +1,4 @@ -# getpeers Method +# getpeers Method Gets a list of nodes that the node is currently connected/disconnected from. diff --git a/docs/n3/reference/rpc/latest-version/api/getproof.md b/docs/n3/reference/rpc/latest-version/api/getproof.md index 6a15e7a..04e13e7 100644 --- a/docs/n3/reference/rpc/latest-version/api/getproof.md +++ b/docs/n3/reference/rpc/latest-version/api/getproof.md @@ -56,4 +56,4 @@ Response body: "id": "1", "result": "Bfv///8XBiQBAQ8DRzb6Vkdw0r5nxMBp6Z5nvbyXiupMvffwm0v5GdB6jHvyAAQEBAQEBAQEA7l84HFtRI5V11s58vA+8CZ5GArFLkGUYLO98RLaMaYmA5MEnx0upnVI45XTpoUDRvwrlPD59uWy9aIrdS4T0D2cA6Rwv/l3GmrctRzL1me+iTUFdDgooaz+esFHFXJdDANfA2bdshZMp5ox2goVAOMjvoxNIWWOqjJoRPu6ZOw2kdj6A8xovEK1Mp6cAG9z/jfFDrSEM60kuo97MNaVOP/cDZ1wA1nf4WdI+jksYz0EJgzBukK8rEzz8jE2cb2Zx2fytVyQBANC7v2RaLMCRF1XgLpSri12L2IwL9Zcjz5LZiaB5nHKNgQpAQYPDw8PDw8DggFffnsVMyqAfZjg+4gu97N/gKpOsAK8Q27s56tijRlSAAMm26DYxOdf/IjEgkE/u/CoRL6dDnzvs1dxCg/00esMvgPGioeOqQCkDOTfliOnCxYjbY/0XvVUOXkceuDm1W0FzQQEBAQEBAQEBAQEBAQEBJIABAPH1PnX/P8NOgV4KHnogwD7xIsD8KvNhkTcDxgCo7Ec6gPQs1zD4igSJB4M9jTREq+7lQ5PbTH/6d138yUVvtM8bQP9Df1kh7asXrYjZolKhLcQ1NoClQgEzbcJfYkCHXv6DQQEBAOUw9zNl/7FJrWD7rCv0mbOoy6nLlHWiWuyGsA12ohRuAQEBAQEBAQEBAYCBAIAAgA=" } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getrawmempool.md b/docs/n3/reference/rpc/latest-version/api/getrawmempool.md index f8fa5aa..3a4097d 100644 --- a/docs/n3/reference/rpc/latest-version/api/getrawmempool.md +++ b/docs/n3/reference/rpc/latest-version/api/getrawmempool.md @@ -1,4 +1,4 @@ -# getrawmempool Method +# getrawmempool Method Obtains a list of confirmed / unconfirmed transactions in memory. @@ -65,4 +65,4 @@ Response body: "unverified": [] } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getrawtransaction.md b/docs/n3/reference/rpc/latest-version/api/getrawtransaction.md index d4b9bdc..7659d87 100644 --- a/docs/n3/reference/rpc/latest-version/api/getrawtransaction.md +++ b/docs/n3/reference/rpc/latest-version/api/getrawtransaction.md @@ -1,4 +1,4 @@ -# getrawtransaction Method +# getrawtransaction Method Returns the corresponding transaction information based on the specified hash value. diff --git a/docs/n3/reference/rpc/latest-version/api/getstate.md b/docs/n3/reference/rpc/latest-version/api/getstate.md index 78aea7b..5cbf090 100644 --- a/docs/n3/reference/rpc/latest-version/api/getstate.md +++ b/docs/n3/reference/rpc/latest-version/api/getstate.md @@ -35,4 +35,4 @@ Response body: "id": 1, "result": "nMJ4AQ==" } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getstateheight.md b/docs/n3/reference/rpc/latest-version/api/getstateheight.md index be60035..61f1296 100644 --- a/docs/n3/reference/rpc/latest-version/api/getstateheight.md +++ b/docs/n3/reference/rpc/latest-version/api/getstateheight.md @@ -30,4 +30,4 @@ Response body: "validatedrootindex": 602 } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getstateroot.md b/docs/n3/reference/rpc/latest-version/api/getstateroot.md index 90d3ee5..d2b97d5 100644 --- a/docs/n3/reference/rpc/latest-version/api/getstateroot.md +++ b/docs/n3/reference/rpc/latest-version/api/getstateroot.md @@ -36,4 +36,4 @@ Response body: "witnesses": [] } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getstorage.md b/docs/n3/reference/rpc/latest-version/api/getstorage.md index 6944c54..2ff743e 100644 --- a/docs/n3/reference/rpc/latest-version/api/getstorage.md +++ b/docs/n3/reference/rpc/latest-version/api/getstorage.md @@ -1,4 +1,4 @@ -# getstorage Method +# getstorage Method Returns the stored value according to the contract script hash and the stored key. Both key and value are Base64-encoded. @@ -37,4 +37,4 @@ Response body: } ``` -`d29ybGQ=` is converted into the string `world`. \ No newline at end of file +`d29ybGQ=` is converted into the string `world`. diff --git a/docs/n3/reference/rpc/latest-version/api/gettransactionheight.md b/docs/n3/reference/rpc/latest-version/api/gettransactionheight.md index abbd230..130dc59 100644 --- a/docs/n3/reference/rpc/latest-version/api/gettransactionheight.md +++ b/docs/n3/reference/rpc/latest-version/api/gettransactionheight.md @@ -1,4 +1,4 @@ -# gettransactionheight method +# gettransactionheight method Returns the transaction height with the specified transaction hash. diff --git a/docs/n3/reference/rpc/latest-version/api/getunclaimedgas.md b/docs/n3/reference/rpc/latest-version/api/getunclaimedgas.md index 06321c5..c0c7fa0 100644 --- a/docs/n3/reference/rpc/latest-version/api/getunclaimedgas.md +++ b/docs/n3/reference/rpc/latest-version/api/getunclaimedgas.md @@ -34,4 +34,4 @@ Response body: "address": "NgaiKFjurmNmiRzDRQGs44yzByXuSkdGPF" } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/getversion.md b/docs/n3/reference/rpc/latest-version/api/getversion.md index 5a11e06..e0d61fb 100644 --- a/docs/n3/reference/rpc/latest-version/api/getversion.md +++ b/docs/n3/reference/rpc/latest-version/api/getversion.md @@ -1,4 +1,4 @@ -# getversion Method +# getversion Method Returns the version information of the node. diff --git a/docs/n3/reference/rpc/latest-version/api/getwalletbalance.md b/docs/n3/reference/rpc/latest-version/api/getwalletbalance.md index 93bce55..9af3c9c 100644 --- a/docs/n3/reference/rpc/latest-version/api/getwalletbalance.md +++ b/docs/n3/reference/rpc/latest-version/api/getwalletbalance.md @@ -1,4 +1,4 @@ -# getwalletbalance Method +# getwalletbalance Method Returns the balance of the corresponding asset in the wallet, based on the specified asset number. This method applies to the contract assets that conform to [NEP-17](https://github.com/neo-project/proposals/blob/1937ff56a09ac7e8380637e61129e9359e01a1b6/nep-17.mediawiki) standards. diff --git a/docs/n3/reference/rpc/latest-version/api/getwalletunclaimedgas.md b/docs/n3/reference/rpc/latest-version/api/getwalletunclaimedgas.md index d9b84c7..ee1a48d 100644 --- a/docs/n3/reference/rpc/latest-version/api/getwalletunclaimedgas.md +++ b/docs/n3/reference/rpc/latest-version/api/getwalletunclaimedgas.md @@ -1,4 +1,4 @@ -# getwalletunclaimedgas Method +# getwalletunclaimedgas Method Gets the amount of unclaimed GAS in the wallet. @@ -34,4 +34,4 @@ Response body: Response description: -Returns the unclaimed GAS amount. \ No newline at end of file +Returns the unclaimed GAS amount. diff --git a/docs/n3/reference/rpc/latest-version/api/importprivkey.md b/docs/n3/reference/rpc/latest-version/api/importprivkey.md index 831bc07..62e0d1e 100644 --- a/docs/n3/reference/rpc/latest-version/api/importprivkey.md +++ b/docs/n3/reference/rpc/latest-version/api/importprivkey.md @@ -1,4 +1,4 @@ -# importprivkey Method +# importprivkey Method Imports the private key to the wallet. @@ -43,4 +43,4 @@ Response body: Response description: -Returns the address corresponding to the key. \ No newline at end of file +Returns the address corresponding to the key. diff --git a/docs/n3/reference/rpc/latest-version/api/invokecontractverify.md b/docs/n3/reference/rpc/latest-version/api/invokecontractverify.md index 16ecbce..7145f9c 100644 --- a/docs/n3/reference/rpc/latest-version/api/invokecontractverify.md +++ b/docs/n3/reference/rpc/latest-version/api/invokecontractverify.md @@ -90,4 +90,4 @@ Response description: - script: the invocation script of the contract. You can convert it to OpCode at [Neo 3.0 data converter](https://neo.org/converter). - state: `HALT` means the vm executed successfully, and`FAULT` means the vm exited due to an exception. - gasconsumed: the system fee consumed for invocation. -- stack: the contract execution result. If the value is String or ByteArray, it is encoded by Base64. \ No newline at end of file +- stack: the contract execution result. If the value is String or ByteArray, it is encoded by Base64. diff --git a/docs/n3/reference/rpc/latest-version/api/invokefunction.md b/docs/n3/reference/rpc/latest-version/api/invokefunction.md index 8c883cd..b1f28c9 100644 --- a/docs/n3/reference/rpc/latest-version/api/invokefunction.md +++ b/docs/n3/reference/rpc/latest-version/api/invokefunction.md @@ -1,4 +1,4 @@ -# invokefunction Method +# invokefunction Method Invokes a smart contract with its scripthash based on the specified operation and parameters and returns the result. diff --git a/docs/n3/reference/rpc/latest-version/api/invokescript.md b/docs/n3/reference/rpc/latest-version/api/invokescript.md index 3859954..b3a24ca 100644 --- a/docs/n3/reference/rpc/latest-version/api/invokescript.md +++ b/docs/n3/reference/rpc/latest-version/api/invokescript.md @@ -1,4 +1,4 @@ -# invokescript Method +# invokescript Method Returns the result after passing a script through the VM. diff --git a/docs/n3/reference/rpc/latest-version/api/listaddress.md b/docs/n3/reference/rpc/latest-version/api/listaddress.md index 2583909..fd905c3 100644 --- a/docs/n3/reference/rpc/latest-version/api/listaddress.md +++ b/docs/n3/reference/rpc/latest-version/api/listaddress.md @@ -1,4 +1,4 @@ -# listaddress Method +# listaddress Method Lists all the addresses in the current wallet. @@ -53,4 +53,4 @@ haskey: Whether there is a private key for the address. label: Address label. -watchonly: Indicates whether it is a watch only address. \ No newline at end of file +watchonly: Indicates whether it is a watch only address. diff --git a/docs/n3/reference/rpc/latest-version/api/listplugins.md b/docs/n3/reference/rpc/latest-version/api/listplugins.md index f42afc2..f1005fc 100644 --- a/docs/n3/reference/rpc/latest-version/api/listplugins.md +++ b/docs/n3/reference/rpc/latest-version/api/listplugins.md @@ -59,4 +59,4 @@ Response body: } ] } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/sendfrom.md b/docs/n3/reference/rpc/latest-version/api/sendfrom.md index 142a42c..f4dc148 100644 --- a/docs/n3/reference/rpc/latest-version/api/sendfrom.md +++ b/docs/n3/reference/rpc/latest-version/api/sendfrom.md @@ -1,4 +1,4 @@ -# sendfrom Method +# sendfrom Method Transfer from the specified address to the destination address. diff --git a/docs/n3/reference/rpc/latest-version/api/sendmany.md b/docs/n3/reference/rpc/latest-version/api/sendmany.md index 7db8808..e1be857 100644 --- a/docs/n3/reference/rpc/latest-version/api/sendmany.md +++ b/docs/n3/reference/rpc/latest-version/api/sendmany.md @@ -1,4 +1,4 @@ -# sendmany Method +# sendmany Method Bulk transfer order, and you can specify a change address. @@ -75,29 +75,29 @@ Request text (with fromAddress): "method": "sendmany", "params": [ "NY9nnDv7cAJ44C2xeRScrXfzkrCJfFWYku", - [ - { - "asset": "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", - "value": 100, - "address": "NbtvbHpwv6nswDtVFpKEyooHhDHwZh2LHf" - }, - { - "asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf", - "value": 100, - "address": "NbtvbHpwv6nswDtVFpKEyooHhDHwZh2LHf" - }, - { - "asset": "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", - "value": 100, - "address": "NPTvd2T1zi7ioj3LmvpeBd45pPvAJU3gvr" - }, - { - "asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf", - "value": 100, - "address": "NPTvd2T1zi7ioj3LmvpeBd45pPvAJU3gvr" - } - ] - ], + [ + { + "asset": "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", + "value": 100, + "address": "NbtvbHpwv6nswDtVFpKEyooHhDHwZh2LHf" + }, + { + "asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf", + "value": 100, + "address": "NbtvbHpwv6nswDtVFpKEyooHhDHwZh2LHf" + }, + { + "asset": "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", + "value": 100, + "address": "NPTvd2T1zi7ioj3LmvpeBd45pPvAJU3gvr" + }, + { + "asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf", + "value": 100, + "address": "NPTvd2T1zi7ioj3LmvpeBd45pPvAJU3gvr" + } + ] + ], "id": 1 } ``` diff --git a/docs/n3/reference/rpc/latest-version/api/sendrawtransaction.md b/docs/n3/reference/rpc/latest-version/api/sendrawtransaction.md index 7955bd5..a98ea4e 100644 --- a/docs/n3/reference/rpc/latest-version/api/sendrawtransaction.md +++ b/docs/n3/reference/rpc/latest-version/api/sendrawtransaction.md @@ -1,4 +1,4 @@ -# sendrawtransaction Method +# sendrawtransaction Method Broadcasts transactions over the NEO network. diff --git a/docs/n3/reference/rpc/latest-version/api/sendtoaddress.md b/docs/n3/reference/rpc/latest-version/api/sendtoaddress.md index f910768..150d911 100644 --- a/docs/n3/reference/rpc/latest-version/api/sendtoaddress.md +++ b/docs/n3/reference/rpc/latest-version/api/sendtoaddress.md @@ -1,4 +1,4 @@ -# sendtoaddress Method +# sendtoaddress Method Transfers to the specified address. diff --git a/docs/n3/reference/rpc/latest-version/api/submitblock.md b/docs/n3/reference/rpc/latest-version/api/submitblock.md index f6a94c6..cec97e5 100644 --- a/docs/n3/reference/rpc/latest-version/api/submitblock.md +++ b/docs/n3/reference/rpc/latest-version/api/submitblock.md @@ -1,4 +1,4 @@ -# submitblock Method +# submitblock Method Broadcasts a new block in the NEO network. @@ -69,4 +69,4 @@ When result is false, the block has failed to broadcast and an exception occurs. | | Invalid | The format or parameter is incorrect | | | Expired | The block information is expired | | | InsufficientFunds | Insufficient funds | -| | PolicyFail | The behavior is not allowed (such as blacklist address trading) | \ No newline at end of file +| | PolicyFail | The behavior is not allowed (such as blacklist address trading) | diff --git a/docs/n3/reference/rpc/latest-version/api/traverseiterator.md b/docs/n3/reference/rpc/latest-version/api/traverseiterator.md index b27edde..dbd882f 100644 --- a/docs/n3/reference/rpc/latest-version/api/traverseiterator.md +++ b/docs/n3/reference/rpc/latest-version/api/traverseiterator.md @@ -90,4 +90,4 @@ Response body: Response Description: -The result is the first `count` of data traversed in the Iterator, and follow-up requests will continue traversing from `count + 1`. \ No newline at end of file +The result is the first `count` of data traversed in the Iterator, and follow-up requests will continue traversing from `count + 1`. diff --git a/docs/n3/reference/rpc/latest-version/api/validateaddress.md b/docs/n3/reference/rpc/latest-version/api/validateaddress.md index e3fde9f..5393f6b 100644 --- a/docs/n3/reference/rpc/latest-version/api/validateaddress.md +++ b/docs/n3/reference/rpc/latest-version/api/validateaddress.md @@ -1,4 +1,4 @@ -# validateaddress Method +# validateaddress Method Verifies that the address is a valid NEO address. @@ -101,4 +101,4 @@ Response body: "isvalid": false } } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/rpc/latest-version/api/verifyproof.md b/docs/n3/reference/rpc/latest-version/api/verifyproof.md index 81d30f3..c2ec4a4 100644 --- a/docs/n3/reference/rpc/latest-version/api/verifyproof.md +++ b/docs/n3/reference/rpc/latest-version/api/verifyproof.md @@ -33,4 +33,4 @@ Response body: "id": 1, "result": "AAI=" } -``` \ No newline at end of file +``` diff --git a/docs/n3/reference/scapi/framework/native/ContractManagement/Deploy.md b/docs/n3/reference/scapi/framework/native/ContractManagement/Deploy.md index b11b8e8..cc2a40b 100644 --- a/docs/n3/reference/scapi/framework/native/ContractManagement/Deploy.md +++ b/docs/n3/reference/scapi/framework/native/ContractManagement/Deploy.md @@ -59,4 +59,4 @@ public static void _deploy(object data, bool update) } ``` -[Back](../ContractManagement.md) \ No newline at end of file +[Back](../ContractManagement.md) diff --git a/docs/n3/reference/scapi/framework/native/ContractManagement/Destroy.md b/docs/n3/reference/scapi/framework/native/ContractManagement/Destroy.md index b50ea8d..1c590dd 100644 --- a/docs/n3/reference/scapi/framework/native/ContractManagement/Destroy.md +++ b/docs/n3/reference/scapi/framework/native/ContractManagement/Destroy.md @@ -39,4 +39,4 @@ Response description: - Other: failed. -[back](../ContractManagement.md) \ No newline at end of file +[back](../ContractManagement.md) diff --git a/docs/n3/reference/scapi/framework/native/ContractManagement/GetContract.md b/docs/n3/reference/scapi/framework/native/ContractManagement/GetContract.md index e6b00f1..c785a75 100644 --- a/docs/n3/reference/scapi/framework/native/ContractManagement/GetContract.md +++ b/docs/n3/reference/scapi/framework/native/ContractManagement/GetContract.md @@ -46,4 +46,4 @@ Response description: - Other: failed. -[Back](../ContractManagement.md) \ No newline at end of file +[Back](../ContractManagement.md) diff --git a/docs/n3/reference/scapi/framework/native/ContractManagement/GetContractHashes.md b/docs/n3/reference/scapi/framework/native/ContractManagement/GetContractHashes.md index 4229b03..ec56d25 100644 --- a/docs/n3/reference/scapi/framework/native/ContractManagement/GetContractHashes.md +++ b/docs/n3/reference/scapi/framework/native/ContractManagement/GetContractHashes.md @@ -152,4 +152,4 @@ Base64 string `AAAABA==` to hexadecimal string is `00000004`. Base64 script hash `huXqo6mYsgw2Ns85UsyIqhHxT8A=` to script hash (little-endian) is `86e5eaa3a998b20c3636cf3952cc88aa11f14fc0`. -[Back](../ContractManagement.md) \ No newline at end of file +[Back](../ContractManagement.md) diff --git a/docs/n3/reference/scapi/framework/native/ContractManagement/Update.md b/docs/n3/reference/scapi/framework/native/ContractManagement/Update.md index 32af881..924bb23 100644 --- a/docs/n3/reference/scapi/framework/native/ContractManagement/Update.md +++ b/docs/n3/reference/scapi/framework/native/ContractManagement/Update.md @@ -50,4 +50,4 @@ Response description: The contract hash remains unchanged after the update. ::: -[Back](../ContractManagement.md) \ No newline at end of file +[Back](../ContractManagement.md) diff --git a/docs/n3/reference/scapi/framework/native/CryptoLib.md b/docs/n3/reference/scapi/framework/native/CryptoLib.md index 548554f..2d3af98 100644 --- a/docs/n3/reference/scapi/framework/native/CryptoLib.md +++ b/docs/n3/reference/scapi/framework/native/CryptoLib.md @@ -24,4 +24,4 @@ public static class CryptoLib | ---------------------------------------- | --------------- | | Sha256(ByteString value) | Calculates the byte array with SHA256 hash | | ripemd160(ByteString value) | Calculates the byte array with RIPEMD160 | -| VerifyWithECDsa(ByteString message, Cryptography.ECC.ECPoint pubkey, ByteString signature, NamedCurve curve) | Uses elliptic curve to verify the signature | \ No newline at end of file +| VerifyWithECDsa(ByteString message, Cryptography.ECC.ECPoint pubkey, ByteString signature, NamedCurve curve) | Uses elliptic curve to verify the signature | diff --git a/docs/n3/reference/scapi/framework/native/Gas.md b/docs/n3/reference/scapi/framework/native/Gas.md index ac15883..d44b3b6 100644 --- a/docs/n3/reference/scapi/framework/native/Gas.md +++ b/docs/n3/reference/scapi/framework/native/Gas.md @@ -29,4 +29,4 @@ public class GAS | [TotalSupply()](Gas/TotalSupply.md) | Gets the total supply of GAS | | [BalanceOf(UInt160 account)](Gas/BalanceOf.md) | Gets the balance | | [Transfer(UInt160 from, UInt160 to, BigInteger amount, object data = null)](Gas/Transfer.md) | Transfers GAS | -| Refuel | Refuel (adding fees) for smart contract | \ No newline at end of file +| Refuel | Refuel (adding fees) for smart contract | diff --git a/docs/n3/reference/scapi/framework/native/Gas/BalanceOf.md b/docs/n3/reference/scapi/framework/native/Gas/BalanceOf.md index 088f3e6..fd52cdf 100644 --- a/docs/n3/reference/scapi/framework/native/Gas/BalanceOf.md +++ b/docs/n3/reference/scapi/framework/native/Gas/BalanceOf.md @@ -35,8 +35,8 @@ Response body: ```json { - "Type":"Integer", - "value":"100000000" + "Type":"Integer", + "value":"100000000" } ``` @@ -46,4 +46,4 @@ Response description - Other: failed. -[Back](../Gas.md) \ No newline at end of file +[Back](../Gas.md) diff --git a/docs/n3/reference/scapi/framework/native/Gas/TotalSupply.md b/docs/n3/reference/scapi/framework/native/Gas/TotalSupply.md index dbca915..373bd9a 100644 --- a/docs/n3/reference/scapi/framework/native/Gas/TotalSupply.md +++ b/docs/n3/reference/scapi/framework/native/Gas/TotalSupply.md @@ -25,4 +25,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } ``` -[Back](../Gas.md) \ No newline at end of file +[Back](../Gas.md) diff --git a/docs/n3/reference/scapi/framework/native/Gas/Transfer.md b/docs/n3/reference/scapi/framework/native/Gas/Transfer.md index a351d02..3b3262c 100644 --- a/docs/n3/reference/scapi/framework/native/Gas/Transfer.md +++ b/docs/n3/reference/scapi/framework/native/Gas/Transfer.md @@ -39,8 +39,8 @@ Respond: ```json { - "type":"Boolean", - "value":"true" + "type":"Boolean", + "value":"true" } ``` diff --git a/docs/n3/reference/scapi/framework/native/Ledger/GetBlock.md b/docs/n3/reference/scapi/framework/native/Ledger/GetBlock.md index a2c2801..dc63833 100644 --- a/docs/n3/reference/scapi/framework/native/Ledger/GetBlock.md +++ b/docs/n3/reference/scapi/framework/native/Ledger/GetBlock.md @@ -33,4 +33,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } } ``` -[Back](../Ledger.md) \ No newline at end of file +[Back](../Ledger.md) diff --git a/docs/n3/reference/scapi/framework/native/Ledger/GetTransaction.md b/docs/n3/reference/scapi/framework/native/Ledger/GetTransaction.md index b5d5df8..ae68fdd 100644 --- a/docs/n3/reference/scapi/framework/native/Ledger/GetTransaction.md +++ b/docs/n3/reference/scapi/framework/native/Ledger/GetTransaction.md @@ -27,4 +27,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } } ``` -[Back](../Ledger.md) \ No newline at end of file +[Back](../Ledger.md) diff --git a/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionFromBlock.md b/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionFromBlock.md index 8d109e7..2d9d7cd 100644 --- a/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionFromBlock.md +++ b/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionFromBlock.md @@ -35,4 +35,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } } ``` -[Back](../Ledger.md) \ No newline at end of file +[Back](../Ledger.md) diff --git a/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionHeight.md b/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionHeight.md index dcb23df..6325670 100644 --- a/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionHeight.md +++ b/docs/n3/reference/scapi/framework/native/Ledger/GetTransactionHeight.md @@ -27,4 +27,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } } ``` -[Back](../Ledger.md) \ No newline at end of file +[Back](../Ledger.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md b/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md index c6e7ec7..568ce39 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md +++ b/docs/n3/reference/scapi/framework/native/Neo/BalanceOf.md @@ -35,8 +35,8 @@ Response body: ```json { - "Type":"Integer", - "value":"100000000" + "Type":"Integer", + "value":"100000000" } ``` diff --git a/docs/n3/reference/scapi/framework/native/Neo/GetAccountState.md b/docs/n3/reference/scapi/framework/native/Neo/GetAccountState.md index 20c7942..bba236e 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/GetAccountState.md +++ b/docs/n3/reference/scapi/framework/native/Neo/GetAccountState.md @@ -56,4 +56,4 @@ Response description: - 2nd value: The block height at last update. - 3rd value: The public key of the account address to vote. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/GetCandidates.md b/docs/n3/reference/scapi/framework/native/Neo/GetCandidates.md index 5f65708..d45e0b7 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/GetCandidates.md +++ b/docs/n3/reference/scapi/framework/native/Neo/GetCandidates.md @@ -29,17 +29,17 @@ Response description: ```json [{ - "type": "Array", - "value": [{ - "type": "Struct", - "value": [{ - "type": "ByteString", - "value": "Apls6R4n/uoL7MTn/cB3Llj8G\u002BuLJ7LUyL/JWBQg4I0y" - }, { - "type": "Integer", - "value": "10000" - }] - }] + "type": "Array", + "value": [{ + "type": "Struct", + "value": [{ + "type": "ByteString", + "value": "Apls6R4n/uoL7MTn/cB3Llj8G\u002BuLJ7LUyL/JWBQg4I0y" + }, { + "type": "Integer", + "value": "10000" + }] + }] }] ``` diff --git a/docs/n3/reference/scapi/framework/native/Neo/GetCommittee.md b/docs/n3/reference/scapi/framework/native/Neo/GetCommittee.md index 878c150..07c5e4c 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/GetCommittee.md +++ b/docs/n3/reference/scapi/framework/native/Neo/GetCommittee.md @@ -29,11 +29,11 @@ Response body: ```json [{ - "type": "Array", - "value": [{ - "type": "ByteString", - "value": "Auj/F8Vn1i8nT\u002BJHzIhKKmzTuP0Nd5qMWFYomlYKzKy0" - }] + "type": "Array", + "value": [{ + "type": "ByteString", + "value": "Auj/F8Vn1i8nT\u002BJHzIhKKmzTuP0Nd5qMWFYomlYKzKy0" + }] }] ``` @@ -43,4 +43,4 @@ Respond description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/GetGasPerBlock.md b/docs/n3/reference/scapi/framework/native/Neo/GetGasPerBlock.md index 259b9d9..0764ac0 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/GetGasPerBlock.md +++ b/docs/n3/reference/scapi/framework/native/Neo/GetGasPerBlock.md @@ -29,8 +29,8 @@ Response body: ```json { - "Type":"Integer", - "value":"100000000" + "Type":"Integer", + "value":"100000000" } ``` @@ -40,4 +40,4 @@ Response description: - Others: failed -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/GetNextBlockValidators.md b/docs/n3/reference/scapi/framework/native/Neo/GetNextBlockValidators.md index 7e2a282..d9078ca 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/GetNextBlockValidators.md +++ b/docs/n3/reference/scapi/framework/native/Neo/GetNextBlockValidators.md @@ -29,11 +29,11 @@ Response body: ```json [{ - "type": "Array", - "value": [{ - "type": "ByteString", - "value": "Auj/F8Vn1i8nT\u002BJHzIhKKmzTuP0Nd5qMWFYomlYKzKy0" - }] + "type": "Array", + "value": [{ + "type": "ByteString", + "value": "Auj/F8Vn1i8nT\u002BJHzIhKKmzTuP0Nd5qMWFYomlYKzKy0" + }] }] ``` @@ -43,4 +43,4 @@ Response description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/RegisterCandidate.md b/docs/n3/reference/scapi/framework/native/Neo/RegisterCandidate.md index 1521729..024a306 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/RegisterCandidate.md +++ b/docs/n3/reference/scapi/framework/native/Neo/RegisterCandidate.md @@ -39,8 +39,8 @@ Response body: ```json { - "type":"Boolean", - "value":"true" + "type":"Boolean", + "value":"true" } ``` @@ -50,4 +50,4 @@ Response description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/TotalSupply.md b/docs/n3/reference/scapi/framework/native/Neo/TotalSupply.md index d7b7036..e718869 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/TotalSupply.md +++ b/docs/n3/reference/scapi/framework/native/Neo/TotalSupply.md @@ -29,8 +29,8 @@ Response body: ```json { - "Type":"Integer", - "value":"100000000" + "Type":"Integer", + "value":"100000000" } ``` @@ -40,4 +40,4 @@ Response description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/Transfer.md b/docs/n3/reference/scapi/framework/native/Neo/Transfer.md index d30708f..1e1ac71 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/Transfer.md +++ b/docs/n3/reference/scapi/framework/native/Neo/Transfer.md @@ -44,8 +44,8 @@ Response body: ```json { - "type":"Boolean", - "value":"true" + "type":"Boolean", + "value":"true" } ``` diff --git a/docs/n3/reference/scapi/framework/native/Neo/UnRegisterCandidate.md b/docs/n3/reference/scapi/framework/native/Neo/UnRegisterCandidate.md index f65930f..d2ecf45 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/UnRegisterCandidate.md +++ b/docs/n3/reference/scapi/framework/native/Neo/UnRegisterCandidate.md @@ -39,8 +39,8 @@ Response body: ```json { - "Type":"Boolean", - "value":"true" + "Type":"Boolean", + "value":"true" } ``` @@ -50,4 +50,4 @@ Response description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/UnclaimedGas.md b/docs/n3/reference/scapi/framework/native/Neo/UnclaimedGas.md index 9aaae28..14178c7 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/UnclaimedGas.md +++ b/docs/n3/reference/scapi/framework/native/Neo/UnclaimedGas.md @@ -36,8 +36,8 @@ Response body: ```json { - "Type":"Integer", - "value":"100000" + "Type":"Integer", + "value":"100000" } ``` @@ -47,4 +47,4 @@ Response description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Neo/Vote.md b/docs/n3/reference/scapi/framework/native/Neo/Vote.md index def909c..778fae7 100644 --- a/docs/n3/reference/scapi/framework/native/Neo/Vote.md +++ b/docs/n3/reference/scapi/framework/native/Neo/Vote.md @@ -42,8 +42,8 @@ public class Contract1 : SmartContract.Framework.SmartContract ```json { - "type":"Boolean", - "value":"true" + "type":"Boolean", + "value":"true" } ``` @@ -53,4 +53,4 @@ Respond description: - Others: failed. -[Back](../Neo.md) \ No newline at end of file +[Back](../Neo.md) diff --git a/docs/n3/reference/scapi/framework/native/Oracle.md b/docs/n3/reference/scapi/framework/native/Oracle.md index 9bcb075..f219e23 100644 --- a/docs/n3/reference/scapi/framework/native/Oracle.md +++ b/docs/n3/reference/scapi/framework/native/Oracle.md @@ -23,4 +23,4 @@ public class Oracle | Name | Description | | ------------------------------------------------------------ | ------------------------------------ | | GetPrice() | Gets the price for an Oracle request | -| [Request(string url, string filter, string callback, object userData, long gasForResponse)](Oracle/Request.md) | Initiates an Oracle request | \ No newline at end of file +| [Request(string url, string filter, string callback, object userData, long gasForResponse)](Oracle/Request.md) | Initiates an Oracle request | diff --git a/docs/n3/reference/scapi/framework/native/Oracle/Request.md b/docs/n3/reference/scapi/framework/native/Oracle/Request.md index 61b9206..296b255 100644 --- a/docs/n3/reference/scapi/framework/native/Oracle/Request.md +++ b/docs/n3/reference/scapi/framework/native/Oracle/Request.md @@ -63,4 +63,4 @@ namespace demo } ``` -[Back](../Oracle.md) \ No newline at end of file +[Back](../Oracle.md) diff --git a/docs/n3/reference/scapi/framework/native/StdLib.md b/docs/n3/reference/scapi/framework/native/StdLib.md index bafdf81..85d1727 100644 --- a/docs/n3/reference/scapi/framework/native/StdLib.md +++ b/docs/n3/reference/scapi/framework/native/StdLib.md @@ -36,4 +36,4 @@ public static class StdLib | Atoi(string value, int @base = 10) | Converts the string to integer | | MemoryCompare(ByteString, ByteString) | If two arrays are the same, return 0; if array 1 is less than array 2, return a value less than 0; if array 1 is greater than array 2, return a value greater than 0 | | MemorySearch | Returns the index of the first match of array 2 in array 1, or -1 if no match | -| StringSplit | Creates an array of substrings by splitting the input string based on one or more delimiters | \ No newline at end of file +| StringSplit | Creates an array of substrings by splitting the input string based on one or more delimiters | diff --git a/docs/n3/reference/scapi/framework/services/CallFlags.md b/docs/n3/reference/scapi/framework/services/CallFlags.md index 21b41b1..2ec4ab7 100644 --- a/docs/n3/reference/scapi/framework/services/CallFlags.md +++ b/docs/n3/reference/scapi/framework/services/CallFlags.md @@ -38,4 +38,4 @@ All: All behaviors of the invoked contract are allowed. CallFlags is used in the method [Call(UInt160, string, CallFlags, params object[])](Contract/Call.md). -You can also get CallFlags of native contract by [GetCallFlags()](Contract/GetCallFlags.md) . \ No newline at end of file +You can also get CallFlags of native contract by [GetCallFlags()](Contract/GetCallFlags.md) . diff --git a/docs/n3/reference/scapi/framework/services/Contract/Call.md b/docs/n3/reference/scapi/framework/services/Contract/Call.md index 0d29168..2e0c35c 100644 --- a/docs/n3/reference/scapi/framework/services/Contract/Call.md +++ b/docs/n3/reference/scapi/framework/services/Contract/Call.md @@ -47,4 +47,4 @@ public class Contract1 : SmartContract -[Back](../Contract.md) \ No newline at end of file +[Back](../Contract.md) diff --git a/docs/n3/reference/scapi/framework/services/Contract/CallEx.md b/docs/n3/reference/scapi/framework/services/Contract/CallEx.md index 9081096..8c695b3 100644 --- a/docs/n3/reference/scapi/framework/services/Contract/CallEx.md +++ b/docs/n3/reference/scapi/framework/services/Contract/CallEx.md @@ -48,4 +48,4 @@ public class Contract1 : SmartContract -[Back](../Contract.md) \ No newline at end of file +[Back](../Contract.md) diff --git a/docs/n3/reference/scapi/framework/services/Contract/IsPayable.md b/docs/n3/reference/scapi/framework/services/Contract/IsPayable.md index e7ed503..32e0d2e 100644 --- a/docs/n3/reference/scapi/framework/services/Contract/IsPayable.md +++ b/docs/n3/reference/scapi/framework/services/Contract/IsPayable.md @@ -12,4 +12,4 @@ Assembly: Neo.SmartContract.Framework public extern bool IsPayable ``` -[Back](../Contract.md) \ No newline at end of file +[Back](../Contract.md) diff --git a/docs/n3/reference/scapi/framework/services/Contract/StorageContext.md b/docs/n3/reference/scapi/framework/services/Contract/StorageContext.md index b02f75b..07f1f64 100644 --- a/docs/n3/reference/scapi/framework/services/Contract/StorageContext.md +++ b/docs/n3/reference/scapi/framework/services/Contract/StorageContext.md @@ -14,4 +14,4 @@ public extern StorageContext StorageContext Attribute value: [StorageContext](../StorageContext.md) -[Back](../Contract.md) \ No newline at end of file +[Back](../Contract.md) diff --git a/docs/n3/reference/scapi/framework/services/Crypto.md b/docs/n3/reference/scapi/framework/services/Crypto.md index 0ee52b8..51d7b71 100644 --- a/docs/n3/reference/scapi/framework/services/Crypto.md +++ b/docs/n3/reference/scapi/framework/services/Crypto.md @@ -21,4 +21,4 @@ public static class Crypto # Constructor -Crypto is a static class and does not require a constructor. \ No newline at end of file +Crypto is a static class and does not require a constructor. diff --git a/docs/n3/reference/scapi/framework/services/Iterator.md b/docs/n3/reference/scapi/framework/services/Iterator.md index 37d9940..70d1ccd 100644 --- a/docs/n3/reference/scapi/framework/services/Iterator.md +++ b/docs/n3/reference/scapi/framework/services/Iterator.md @@ -25,4 +25,4 @@ public class Iterator : Iterator, IApiInterface | ----------------------------------- | ------------------------------------------------------------ | | Next() | Advances the iterator to the next element of the collection | -You can also use [Storage.Find()](Storage/Find.md) to construct the Iterator object. \ No newline at end of file +You can also use [Storage.Find()](Storage/Find.md) to construct the Iterator object. diff --git a/docs/n3/reference/scapi/framework/services/Iterator/Key.md b/docs/n3/reference/scapi/framework/services/Iterator/Key.md index 56c27ac..7f0a6db 100644 --- a/docs/n3/reference/scapi/framework/services/Iterator/Key.md +++ b/docs/n3/reference/scapi/framework/services/Iterator/Key.md @@ -16,4 +16,4 @@ Attribute value: genericity. -[Back](../Iterator.md) \ No newline at end of file +[Back](../Iterator.md) diff --git a/docs/n3/reference/scapi/framework/services/Iterator/Next.md b/docs/n3/reference/scapi/framework/services/Iterator/Next.md index 80ff403..555d821 100644 --- a/docs/n3/reference/scapi/framework/services/Iterator/Next.md +++ b/docs/n3/reference/scapi/framework/services/Iterator/Next.md @@ -22,16 +22,16 @@ public class Contract1 : SmartContract public static void Main() { var iterator = Storage.Find(new byte[] { 0x01 }); - while (iterator.Next()) - { - var k = iterator.Key; - var v = iterator.Value; - …… - } + while (iterator.Next()) + { + var k = iterator.Key; + var v = iterator.Value; + …… + } } } ``` -[Back](../Iterator.md) \ No newline at end of file +[Back](../Iterator.md) diff --git a/docs/n3/reference/scapi/framework/services/Iterator/Value.md b/docs/n3/reference/scapi/framework/services/Iterator/Value.md index e9be772..6b5bdcb 100644 --- a/docs/n3/reference/scapi/framework/services/Iterator/Value.md +++ b/docs/n3/reference/scapi/framework/services/Iterator/Value.md @@ -16,4 +16,4 @@ Attribute value: genericity. -[Back](../Iterator.md) \ No newline at end of file +[Back](../Iterator.md) diff --git a/docs/n3/reference/scapi/framework/services/Runtime.md b/docs/n3/reference/scapi/framework/services/Runtime.md index b3a3fbd..3fd3342 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime.md +++ b/docs/n3/reference/scapi/framework/services/Runtime.md @@ -37,4 +37,4 @@ public static class Runtime ## Constructor -The Runtime class is a static class and does not require a constructor. \ No newline at end of file +The Runtime class is a static class and does not require a constructor. diff --git a/docs/n3/reference/scapi/framework/services/Runtime/CheckWitness.md b/docs/n3/reference/scapi/framework/services/Runtime/CheckWitness.md index 08ee64e..c246e1b 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime/CheckWitness.md +++ b/docs/n3/reference/scapi/framework/services/Runtime/CheckWitness.md @@ -38,4 +38,4 @@ public class Contract1 : SmartContract -[Back](../Runtime.md) \ No newline at end of file +[Back](../Runtime.md) diff --git a/docs/n3/reference/scapi/framework/services/Runtime/GetNotifications.md b/docs/n3/reference/scapi/framework/services/Runtime/GetNotifications.md index d45e516..fe77c39 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime/GetNotifications.md +++ b/docs/n3/reference/scapi/framework/services/Runtime/GetNotifications.md @@ -32,4 +32,4 @@ public class Contract1 : SmartContract.Framework.SmartContract } ``` -[Back](../Runtime.md) \ No newline at end of file +[Back](../Runtime.md) diff --git a/docs/n3/reference/scapi/framework/services/Runtime/Log.md b/docs/n3/reference/scapi/framework/services/Runtime/Log.md index 1048ad8..2d9b803 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime/Log.md +++ b/docs/n3/reference/scapi/framework/services/Runtime/Log.md @@ -34,4 +34,4 @@ public class Contract1 : SmartContract.Framework.SmartContract -[Back](../Runtime.md) \ No newline at end of file +[Back](../Runtime.md) diff --git a/docs/n3/reference/scapi/framework/services/Runtime/Time.md b/docs/n3/reference/scapi/framework/services/Runtime/Time.md index 01a89aa..91c1480 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime/Time.md +++ b/docs/n3/reference/scapi/framework/services/Runtime/Time.md @@ -28,4 +28,4 @@ public static bool Main() -[Back](../Runtime.md) \ No newline at end of file +[Back](../Runtime.md) diff --git a/docs/n3/reference/scapi/framework/services/Runtime/Trigger.md b/docs/n3/reference/scapi/framework/services/Runtime/Trigger.md index 9dc5e5a..a55eb78 100644 --- a/docs/n3/reference/scapi/framework/services/Runtime/Trigger.md +++ b/docs/n3/reference/scapi/framework/services/Runtime/Trigger.md @@ -30,4 +30,4 @@ public static bool Main() } ``` -[Back](../Runtime.md) \ No newline at end of file +[Back](../Runtime.md) diff --git a/docs/n3/reference/scapi/framework/services/Storage.md b/docs/n3/reference/scapi/framework/services/Storage.md index 3e1d2c9..628c495 100644 --- a/docs/n3/reference/scapi/framework/services/Storage.md +++ b/docs/n3/reference/scapi/framework/services/Storage.md @@ -30,4 +30,4 @@ public static class Storage ## Constructor -The Storage class is a static class and does not require a constructor. \ No newline at end of file +The Storage class is a static class and does not require a constructor. diff --git a/docs/n3/reference/scapi/framework/services/StorageContext.md b/docs/n3/reference/scapi/framework/services/StorageContext.md index 286259c..ecece46 100644 --- a/docs/n3/reference/scapi/framework/services/StorageContext.md +++ b/docs/n3/reference/scapi/framework/services/StorageContext.md @@ -22,4 +22,4 @@ public class StorageContext ## Constructor -The StorageContext object is constructed through [Storage.CurrentContext](Storage/CurrentContext.md). \ No newline at end of file +The StorageContext object is constructed through [Storage.CurrentContext](Storage/CurrentContext.md). diff --git a/docs/n3/reference/scapi/framework/services/TriggerType.md b/docs/n3/reference/scapi/framework/services/TriggerType.md index 4ac114a..ac49b31 100644 --- a/docs/n3/reference/scapi/framework/services/TriggerType.md +++ b/docs/n3/reference/scapi/framework/services/TriggerType.md @@ -32,4 +32,4 @@ Application: Indicates that the contract is triggered by the execution of transa System: The combination of all system triggers. -All: The combination of all triggers. \ No newline at end of file +All: The combination of all triggers. diff --git a/docs/recipes/Dapps/invoke-a-method-in-smart-contract.md b/docs/recipes/Dapps/invoke-a-method-in-smart-contract.md index 28df624..3f159ff 100644 --- a/docs/recipes/Dapps/invoke-a-method-in-smart-contract.md +++ b/docs/recipes/Dapps/invoke-a-method-in-smart-contract.md @@ -2,4 +2,4 @@ title: Invoke a method in Smart contract --- -# Invoke a method in Smart contract \ No newline at end of file +# Invoke a method in Smart contract diff --git a/docs/recipes/Encryption/encrypt-decrypt-data-using-aes256.md b/docs/recipes/Encryption/encrypt-decrypt-data-using-aes256.md index b234425..85149fe 100644 --- a/docs/recipes/Encryption/encrypt-decrypt-data-using-aes256.md +++ b/docs/recipes/Encryption/encrypt-decrypt-data-using-aes256.md @@ -2,4 +2,4 @@ title: Encrypt and decrypt data using AES256 --- -# Encrypt and decrypt data using AES256 \ No newline at end of file +# Encrypt and decrypt data using AES256 diff --git a/docs/recipes/NeoFS/read-file-from-neofs.md b/docs/recipes/NeoFS/read-file-from-neofs.md index 6627104..141b837 100644 --- a/docs/recipes/NeoFS/read-file-from-neofs.md +++ b/docs/recipes/NeoFS/read-file-from-neofs.md @@ -2,4 +2,4 @@ title: Read file from NeoFS --- -# Read file from NeoFS \ No newline at end of file +# Read file from NeoFS diff --git a/docs/recipes/NeoFS/save-file-to-neofs.md b/docs/recipes/NeoFS/save-file-to-neofs.md index 460ed01..3e2d01d 100644 --- a/docs/recipes/NeoFS/save-file-to-neofs.md +++ b/docs/recipes/NeoFS/save-file-to-neofs.md @@ -2,4 +2,4 @@ title: Save file to NeoFS --- -# Save file to NeoFS \ No newline at end of file +# Save file to NeoFS diff --git a/docs/recipes/NeoFS/set-permission-to-file.md b/docs/recipes/NeoFS/set-permission-to-file.md index a11677f..5f06628 100644 --- a/docs/recipes/NeoFS/set-permission-to-file.md +++ b/docs/recipes/NeoFS/set-permission-to-file.md @@ -2,4 +2,4 @@ title: Set permission to file --- -# Set permission to file \ No newline at end of file +# Set permission to file diff --git a/docs/recipes/NeoNS/add-record-to-neons.md b/docs/recipes/NeoNS/add-record-to-neons.md index acdc49a..12a0b70 100644 --- a/docs/recipes/NeoNS/add-record-to-neons.md +++ b/docs/recipes/NeoNS/add-record-to-neons.md @@ -2,4 +2,4 @@ title: Create a record on NeoNS --- -# Create a record on NeoNS \ No newline at end of file +# Create a record on NeoNS diff --git a/docs/recipes/NeoNS/get-records-from-neons.md b/docs/recipes/NeoNS/get-records-from-neons.md index bf496c6..3afcb66 100644 --- a/docs/recipes/NeoNS/get-records-from-neons.md +++ b/docs/recipes/NeoNS/get-records-from-neons.md @@ -2,4 +2,4 @@ title: Get domain records --- -# Get domain records \ No newline at end of file +# Get domain records diff --git a/docs/recipes/NeoNS/register-name-on-neons.md b/docs/recipes/NeoNS/register-name-on-neons.md index 5275117..eaf5247 100644 --- a/docs/recipes/NeoNS/register-name-on-neons.md +++ b/docs/recipes/NeoNS/register-name-on-neons.md @@ -2,4 +2,4 @@ title: Register a domain on NeoNS --- -# Register a domain on NeoNS \ No newline at end of file +# Register a domain on NeoNS diff --git a/docs/recipes/Oracle/call-rest-api-from-smart-contract.md b/docs/recipes/Oracle/call-rest-api-from-smart-contract.md index f6c2373..8557dd5 100644 --- a/docs/recipes/Oracle/call-rest-api-from-smart-contract.md +++ b/docs/recipes/Oracle/call-rest-api-from-smart-contract.md @@ -1,4 +1,4 @@ --- title: Call Rest API from Smart Contract --- -test \ No newline at end of file +test diff --git a/docs/recipes/Wallet/create-a-new-wallet-with-neojs.md b/docs/recipes/Wallet/create-a-new-wallet-with-neojs.md index 2fc3550..2b167f6 100644 --- a/docs/recipes/Wallet/create-a-new-wallet-with-neojs.md +++ b/docs/recipes/Wallet/create-a-new-wallet-with-neojs.md @@ -2,4 +2,4 @@ title: Create a new wallet with Neon-js tags: ["neon-js"] --- -Create a new wallet with Neon-js \ No newline at end of file +Create a new wallet with Neon-js diff --git a/docs/recipes/readme.md b/docs/recipes/readme.md index 092592d..b1c0b5e 100644 --- a/docs/recipes/readme.md +++ b/docs/recipes/readme.md @@ -4,4 +4,4 @@ sidebar_position: 0 --- # What's recipe? -A code recipe is a set of instructions, written in code, that describes how to perform a specific task or achieve a particular outcome. It is a way to share and reuse code snippets that can be easily understood and implemented by other developers. A code recipe can be anything from a simple script to a more complex set of instructions that can be used to build and deploy a full application. \ No newline at end of file +A code recipe is a set of instructions, written in code, that describes how to perform a specific task or achieve a particular outcome. It is a way to share and reuse code snippets that can be easily understood and implemented by other developers. A code recipe can be anything from a simple script to a more complex set of instructions that can be used to build and deploy a full application. From ce1e309301772736fea4de466eea67e90b2b0dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E5=90=8C?= Date: Mon, 20 May 2024 12:04:45 +0800 Subject: [PATCH 4/5] update --- docs/n3/develop/tool/sdk/rpc.md | 2 + docs/n3/develop/write/difference.md | 6 +- docs/n3/develop/write/nep11.md | 6 +- docs/n3/exchange/client.md | 10 +- docs/n3/exchange/deploynode.md | 1 + docs/n3/exchange/gas.md | 6 +- docs/n3/exchange/transaction.md | 6 +- docs/n3/foundation/Transactions.md | 6 +- docs/n3/foundation/Wallets.md | 6 +- docs/n3/glossary.md | 30 +-- docs/n3/node/cli/cli.md | 252 +++++++++--------- docs/n3/reference/rpc/latest-version/api.md | 3 + .../rpc/latest-version/api/closewallet.md | 10 +- .../rpc/latest-version/api/dumpprivkey.md | 11 +- .../latest-version/api/getapplicationlog.md | 10 +- .../latest-version/api/getnep11balances.md | 11 +- .../latest-version/api/getnep17balances.md | 4 + .../latest-version/api/getnep17transfers.md | 4 +- .../rpc/latest-version/api/getnewaddress.md | 10 +- .../rpc/latest-version/api/getproof.md | 1 + .../rpc/latest-version/api/getstateheight.md | 1 + .../rpc/latest-version/api/getstorage.md | 2 +- .../latest-version/api/getwalletbalance.md | 10 +- .../api/getwalletunclaimedgas.md | 10 +- .../rpc/latest-version/api/importprivkey.md | 12 +- .../api/invokecontractverify.md | 15 +- .../rpc/latest-version/api/invokefunction.md | 38 +-- .../rpc/latest-version/api/invokescript.md | 17 +- .../rpc/latest-version/api/listaddress.md | 10 +- .../rpc/latest-version/api/sendfrom.md | 15 +- .../rpc/latest-version/api/sendmany.md | 12 +- .../rpc/latest-version/api/sendtoaddress.md | 10 +- .../rpc/latest-version/api/submitblock.md | 2 +- docs/n3/reference/scapi/framework.md | 1 - docs/n3/reference/scapi/framework/native.md | 1 - .../framework/native/ContractManagement.md | 1 - .../ContractManagement/GetContractHashes.md | 1 + .../scapi/framework/native/Ledger.md | 1 - .../scapi/framework/native/Ledger/GetBlock.md | 1 + .../framework/native/Ledger/GetTransaction.md | 1 + .../native/Ledger/GetTransactionFromBlock.md | 1 + .../native/Ledger/GetTransactionHeight.md | 1 + .../scapi/framework/native/NamedCurve.md | 1 - .../reference/scapi/framework/native/Neo.md | 1 - .../scapi/framework/native/Neo/Vote.md | 7 +- .../framework/native/OracleResponseCode.md | 6 +- .../scapi/framework/native/Policy.md | 1 - .../native/Policy/GetExecFeeFactor.md | 1 + .../framework/native/Policy/GetFeePerByte.md | 2 +- .../native/Policy/GetStoragePrice.md | 1 + .../framework/native/Policy/IsBlocked.md | 2 +- .../reference/scapi/framework/native/Role.md | 1 - .../scapi/framework/native/RoleManagement.md | 1 - .../RoleManagement/GetDesignatedByRole.md | 2 +- docs/n3/reference/scapi/framework/services.md | 1 - .../Contract/CreateStandardAccount.md | 1 + .../scapi/framework/services/Crypto.md | 2 +- .../scapi/framework/services/FindOptions.md | 2 +- 58 files changed, 321 insertions(+), 269 deletions(-) diff --git a/docs/n3/develop/tool/sdk/rpc.md b/docs/n3/develop/tool/sdk/rpc.md index 0db36e5..bf8467e 100644 --- a/docs/n3/develop/tool/sdk/rpc.md +++ b/docs/n3/develop/tool/sdk/rpc.md @@ -27,6 +27,7 @@ RpcClient client = new RpcClient(new Uri("http://localhost:20332"), null, null, ## Blockchain data ### GetBestBlockHashAsync + Gets the hash of the highest block in the blockchain: ```cs @@ -36,6 +37,7 @@ UInt256 hash256 = UInt256.Parse(hexString); ``` ### GetBlockAsync + Gets the detailed block information by the block hash or block index. ```cs diff --git a/docs/n3/develop/write/difference.md b/docs/n3/develop/write/difference.md index 5d8f6d3..f81cfd0 100644 --- a/docs/n3/develop/write/difference.md +++ b/docs/n3/develop/write/difference.md @@ -38,6 +38,7 @@ using Neo.SmartContract.Framework; using Neo.SmartContract.Framework.Services.Neo; using System; ``` + Neo N3: ```cs @@ -114,6 +115,7 @@ Neo N3 adds a new security method. You can execute the contract in a read-only m Neo N3 introduces a large number of native contracts, moving massive interoperable services from Neo Legacy to native contracts. The major changes are as follows. - Upgraded the Blockchain class to a Ledger native contract, e.g. `Blockchain.GetBlock()` changed to `Ledger.GetBlock()`. + - Added the ContractManagement native contract to query contracts and manage their updating and destruction. - Moved the contract part of the Blockchain class to the ContractManagement native contract, e.g. `Blockchain.GetContract()` changed to `ContractManagement .GetContract()`. @@ -133,8 +135,8 @@ Neo N3 introduces a large number of native contracts, moving massive interoperab - The Transaction class has been extensively updated to fit the data structure of Neo N3 transactions. - Added a new Crypto class and moved some of the methods provided by the SmartContract class to this class. - Moved a number of classes: - - Account - - Asset + - Account + - Asset - Header - InvocationTransaction - TransactionAttribute diff --git a/docs/n3/develop/write/nep11.md b/docs/n3/develop/write/nep11.md index 6a5b4a4..59e3649 100644 --- a/docs/n3/develop/write/nep11.md +++ b/docs/n3/develop/write/nep11.md @@ -130,7 +130,7 @@ By now we have completed a simple NFT contract. The base class `Nep11Token` also provides the following methods and events: -#### NEP-11 methods +### NEP-11 methods | Name | Parameters | Returns | Description | | ----------- | ---------------------------------------------- | ---------------- | ------------------------------------------------------------ | @@ -144,13 +144,13 @@ The base class `Nep11Token` also provides the following methods and events: | tokensOf | Hash160(owner) | InteropInterface | Returns all of the token ids owned by the specified address | | transfer | Hash160(to) ByteArray(tokenId) Any(data) | Boolean | It transfers an amount of NFT with TokenId. This method requires the signature of NFT owner. | -#### Events +### Events | Name | Parameters | Returns | Description | | -------- | ------------------------------------------------------------ | --------------- | ------------------------------------------------------------ | | transfer | Hash160(from) Hash160(to) Integer(amount) ByteArray(tokenId) | Transfer event | When the `from` address is set to `null` tokens are created; When the `to` address set to `null`tokens are burned. | -#### Compatibility check +### Compatibility check Compatibility checks will be activated for any contract that includes the `[SupportedStandards("NEP-17")]` or `[SupportedStandards("NEP-11")]` attribute. The Compatibility Check reviews method names, parameters, return values, events, and similar elements to ensure they comply with the standard, and alerts about any failures in the check. diff --git a/docs/n3/exchange/client.md b/docs/n3/exchange/client.md index d122d77..3b1ee43 100644 --- a/docs/n3/exchange/client.md +++ b/docs/n3/exchange/client.md @@ -3,11 +3,11 @@ sidebar_label: 'Using Neo-CLI' sidebar_position: 2 --- -## Using Neo-CLI +# Using Neo-CLI The Neo-CLI client works as a node in the P2P network and meanwhile a cross-platform wallet handling various assets transactions. -### Neo-CLI Security Policies +## Neo-CLI Security Policies :::caution @@ -23,7 +23,7 @@ Neo-CLI does not provide the function to remotely switching on/off the wallet, a | P2P | 10333 | 20333 | | websocket | 10334 | 20334 | -### About Neo-CLI +## About Neo-CLI Neo-CLI is a command-line client (wallet) for developers. Developers have two ways to interact with it: @@ -59,7 +59,7 @@ Neo-CLI provides the following features: - Provides transaction information of NEP-17 assets. -### Creating a Wallet +## Creating a Wallet The exchange needs to create an online wallet to manage the deposit addresses of users. A wallet is used to store the information of the accounts (both public keys and private keys) and the contracts. It is the most important proof that the user holds. Users must keep the wallet files and the wallet passwords secure. They must not lose or disclose these data. Exchanges do not have to create a wallet for every address. An online wallet usually keeps all deposit addresses of users. A cold wallet (offline wallet) is another storage option which provides better security. @@ -76,7 +76,7 @@ To create a wallet, do the following: 2. Set a password for the wallet. -### Generating Deposit Addresses +## Generating Deposit Addresses A wallet can store multiple addresses. The exchange needs to generate a deposit address for each user. diff --git a/docs/n3/exchange/deploynode.md b/docs/n3/exchange/deploynode.md index 15c0b01..03bbb65 100644 --- a/docs/n3/exchange/deploynode.md +++ b/docs/n3/exchange/deploynode.md @@ -38,6 +38,7 @@ install RpcNep17Tracker - The RpcServer plug-in must be installed before you can use the RpcNep17Tracker plug-in. - You must install the plugins ApplicationLogs and RpcNep17Tracker before synchronizing the Neo client, otherwise the log in the blocks synchronized before will be lost. + ::: ## Modifying configuration files diff --git a/docs/n3/exchange/gas.md b/docs/n3/exchange/gas.md index cd0160a..6392f84 100644 --- a/docs/n3/exchange/gas.md +++ b/docs/n3/exchange/gas.md @@ -18,8 +18,10 @@ In Neo N3 every time a NEO transfer transaction occurs in the address, GASs gene Claimed *GAS = f(neo_amount, Δt_const)* Δt_const = t_end - t_start -- t_end = the current time that Neo is transferred into or out of the address. -- t_start = the last time that Neo was transferred into or out of the address. + +- t_end = the current time that Neo is transferred into or out of the address. + +- t_start = the last time that Neo was transferred into or out of the address. Δt_const is fixed, thus the claimed Gas is of a fixed amount too. And this amount depends on the amount of Neo held by the user and the duration between the moments that the user transferred this amount of Neo into and out of his or her address. diff --git a/docs/n3/exchange/transaction.md b/docs/n3/exchange/transaction.md index b4aabee..fcd4afc 100644 --- a/docs/n3/exchange/transaction.md +++ b/docs/n3/exchange/transaction.md @@ -422,11 +422,11 @@ The exchange can choose one of the following way to send assets to users: ### Neo-CLI Command: send -##### Syntax +#### Syntax `send
|all [from=null] [signerAccounts=null]` -##### Parameters +#### Parameters - `id|alias`: asset ID or asset abbreviations, e.g. neo, gas - `address`: address to transfer assets to @@ -437,7 +437,7 @@ The exchange can choose one of the following way to send assets to users: This command verifies the wallet password. -##### Example +#### Example Transfer 100 Neo to the address NYxb4fSZVKAz8YsgaPK2WkT3KcAE9b3Vag: diff --git a/docs/n3/foundation/Transactions.md b/docs/n3/foundation/Transactions.md index 342076a..a2aeada 100644 --- a/docs/n3/foundation/Transactions.md +++ b/docs/n3/foundation/Transactions.md @@ -103,10 +103,10 @@ In Neo all variable-length integer types except IP addresses and port numbers ar | `systemFee` | - | | `networkFee` | - | | `validUntilBlock` | - | -| `signers` | Need to serializes `WriteVarInt(length) `first and then other elements of the array | +| `signers` | Need to serializes `WriteVarInt(length)` first and then other elements of the array | | `attributes` | Need to serializes `WriteVarInt(length)` first and then other elements of the array | -| `script` | Need to serializes `WriteVarInt(length) `first and then the byte array | -| `witnesses` | Need to serializes `WriteVarInt(length) `first and then other elements of the array | +| `script` | Need to serializes `WriteVarInt(length)` first and then the byte array | +| `witnesses` | Need to serializes `WriteVarInt(length)` first and then other elements of the array | :::note diff --git a/docs/n3/foundation/Wallets.md b/docs/n3/foundation/Wallets.md index 885d338..0e3f74d 100644 --- a/docs/n3/foundation/Wallets.md +++ b/docs/n3/foundation/Wallets.md @@ -78,11 +78,11 @@ The address script in Neo N3 has changed not using the Opcode.CheckSig and OpCod ![Account Address](images/wallets/account_address_script_checksign.png) -2. Calculate script hash of the contract (20 bytes, make once SHA256 and RIPEMD160 of the script). +1. Calculate script hash of the contract (20 bytes, make once SHA256 and RIPEMD160 of the script). -3. Add the version prefix in the hash (Currently, the Neo protocol version is 53 and the corresponding byte is `0x35`). +2. Add the version prefix in the hash (Currently, the Neo protocol version is 53 and the corresponding byte is `0x35`). -4. Make Base58Check encoding for the above byte data. +3. Make Base58Check encoding for the above byte data. Example: diff --git a/docs/n3/glossary.md b/docs/n3/glossary.md index b68a938..b7d777d 100644 --- a/docs/n3/glossary.md +++ b/docs/n3/glossary.md @@ -4,27 +4,27 @@ sidebar_label: 'Glossary' # Glossary -#### Block +## Block A block in a Blockchain contains a number of transaction records. Blocks are paired up with the previous block according to the timestamp and the cryptographic hash of the previous block contained in each block header, thereby creating a chain of blocks, or a blockchain. -#### Wallet +## Wallet A wallet is a cryptographic public/private key pair which is used to sign and authenticate database transactions that occur on the Neo network. -#### Account (Address) +## Account (Address) Similar to your bank account, a blockchain account is used to transfer or receive assets in a transaction. The address is generated by the script hash through some operations, and can be converted back to the script hash. In Neo Legacy, the address starts with A, and in Neo N3, the address starts with N. -#### Private Key/Public Key +## Private Key/Public Key The private key is a 256-bit random number that is kept by users themselves, without disclosing to others. It is a proof of the user's right to use the account and ownership of assets in the account. Each private key has a public key paired with it. -#### Transaction +## Transaction A Neo transaction is a signed data package with an instruction for the network, for example a user indicating that he wants to transfer assets to another address. Each Neo block in the blockchain ledger contains one or more transactions, making each block a transaction batch. -#### Script +## Script A script is a piece of code that consists of opcodes and operands. Each account is a contract with a script. A standard account script is composed of the public key and the OpCode that verifies the signature. The format is as follows @@ -33,39 +33,39 @@ PUSHDATA1 03ac765294075da6f7927c96bfe3d3f64ae3680c5eb50f82f55170a9f1bea59dad SYSCALL Neo.Crypto.VerifyWithECDsaSecp256r1 ``` -#### Script Hash +## Script Hash The script hash is generated from the smart contract script with the RIPEMD-160 algorithm. Each script has a unique script hash. Any change made in the script of the contract will cause the script hash to change. The script hash length is 20 bytes (160 bits). The script hash is generated unidirectionally by the script, and cannot be reversed to the script. The script hash and address can be converted to each other. -#### Opcode +## Opcode Opcodes are similar to instructions in assembly language. For all OpCode, refer to [OpCode source](https://github.com/neo-project/neo/blob/master/src/Neo.VM/OpCode.cs). -#### Cryptographic private key +## Cryptographic private key Cryptographic private key refers to the encryption of the private key through the wallet password, which is more secure than the plaintext private key. In this way, you can write the cryptographic private key on paper and keep the password in your mind. -#### Smart Contract +## Smart Contract From the blockchain perspective, a smart contract is a set of promises, specified in digital form, including protocols within which the parties perform on these promises. -#### NEP-17 +## NEP-17 The NEP-17 proposal outlines a token standard for the Neo blockchain that will provide systems with a generalized interaction mechanism for tokenized smart contracts. -#### SysCall +## SysCall The system call is a special operation code, through which you can call the interoperable service layer interface. By calling the interoperable service layer interface, NeoVM can access data such as block, transaction , contract, and asset information that are required for running smart contracts. For more information refer to the files in [Neo smart contract module](https://github.com/neo-project/neo/tree/master/src/Neo/SmartContract) starting with `ApplicationEngine.` , such as `ApplicationEngine.Contract.cs`, `ApplicationEngine.Blockchain.cs`. -#### Dynamic Call +## Dynamic Call A special system call that invokes another contract within a contract. It can be wrote as `Contract.Call(scriptHash, method, params)`. For more information refer to [Invoking Smart Contracts](develop/deploy/invoke). -#### Storage +## Storage Each smart contract deployed on the Neo blockchain has a private storage area for storing application data. When creating a smart contract or transaction to use this contract, the contract code needs to read and write its storage. Each contract can declare a storage area. For more information refer to [Storage](reference/scapi/framework/services/Storage.md). -#### NEF +## NEF NEF is short for Neo Executable Format. The smart contract compiler compiles the source code and eventually generate NEF files and Manifest files (see below). diff --git a/docs/n3/node/cli/cli.md b/docs/n3/node/cli/cli.md index 24521f2..2795ad2 100644 --- a/docs/n3/node/cli/cli.md +++ b/docs/n3/node/cli/cli.md @@ -17,7 +17,7 @@ All the commands described in this document conform with these conventions: - `|` separates multiple parameters where any one of them can be used at your choice. - `=` indicates the default value of the optional parameter without an input. -#### Console commands +### Console commands | Command | Description | | ------- | --------- | @@ -27,7 +27,7 @@ All the commands described in this document conform with these conventions: | clear | Clear screen | | exit | Exit program | -#### Wallet commands +### Wallet commands | Command | Parameters | Description | | ------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------ | @@ -55,7 +55,7 @@ The commands listed in the table below requires you to open the wallet before in | [sign](#sign) | \ | Signs the transaction. The parameter is the json string that records the transaction information. | | [cancel](#cancel) | \ [sender=null] [signerAccounts=null] | Cancel unconfirmed transactions (in memory pool) | -#### Contract commands +### Contract commands | Command | Parameters | Description | | ----------------- | ------------------------------------------------------------ | ------------------ | @@ -64,14 +64,14 @@ The commands listed in the table below requires you to open the wallet before in | [update](#update) | \ \ \ \ \[signerAccounts=null] | Upgrade a contract | -#### Node commands +### Node commands | Command | Parameters | Description | | ---------- | --------------- | ------------------------------------------------------------ | | show state | | Displays the current status of blockchain synchronization. | | show pool | [verbose=False] | Displays the transactions in the memory pool (These transactions are in the state of zero confirmation). | -#### Nep17 commands +### Nep17 commands | Command | Parameters | Description | | ----------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | @@ -81,13 +81,13 @@ The commands listed in the table below requires you to open the wallet before in | [totalsupply](#totalsupply) | \ | Queries the total supply of specified token | | [transfer](#transfer) | \ \ \ \[from=null] \[data=null] \[signersAccounts=null] | Invokes the transfer method to transfer the specified token | -#### Native contract commands +### Native contract commands | Command | Parameters | Description | | ------------------------------------------- | ---------- | -------------------------------------------------- | | [list nativecontract](#list-nativecontract) | | Lists all the native contract names and scripthash | -#### Network commands +### Network commands | Command | Parameters | Description | | --------------- | ------------------- | ------------------------------------------------------------ | @@ -100,7 +100,7 @@ The commands listed in the table below requires you to open the wallet before in | [broadcast inv](#broadcast-inv) | \ \ | Broadcasts the inventory data | | [broadcast transaction](#broadcast-transaction) | \ | Broadcasts a transaction | -#### Plugin commands +### Plugin commands | Command | Parameters | Description | | ----------------------------- | ------------- | ---------------------------------------- | @@ -116,7 +116,7 @@ The commands listed in the table below requires you to open the wallet before in | [get proof](#get-proof) | \ \ \ | Gets proof with root hash, contract hash, and storage key. | | [verify proof](#verify-proof) | \ \ | Verifies with root hash and proof. | -#### Voting commands +### Voting commands | Command | Parameters | Description | | --------------------------------------------- | ----------------------------- | ----------------------------------------------------------- | @@ -129,7 +129,7 @@ The commands listed in the table below requires you to open the wallet before in | [vote](#vote) | \ \ | Votes for candidates | | [unvote](#unvote) | \ | Cancel the voting | -#### Block Commands +### Block Commands | Command | Parameters | Description | | ------------------------------- | -------------------------------------- | ------------------------------------------------------------ | @@ -138,7 +138,7 @@ The commands listed in the table below requires you to open the wallet before in | [show contract](#show-contract) | \ | Output contract details by contract name or contract hash. | | [show tx](#show-tx) | \ | Output transaction details via transaction hash. | -#### Log Commands +### Log Commands | Command | Description | | ------------------- | -------------------------------------- | @@ -151,11 +151,11 @@ The commands listed in the table below requires you to open the wallet before in Converts the input string into various supported data formats. -##### Syntax +#### Syntax `parse ` -##### Example +#### Example ``` neo> parse NcphtjgTye3c3ZL5J5nDZhsf3UJMGAjd7o @@ -180,11 +180,11 @@ If you see messy codes that is because some data types cannot be converted. You Creates a wallet file in the .db3 or .json format. A wallet password is required to be specified during the process. -##### Syntax +#### Syntax `create wallet ` -##### Example +#### Example ``` neo> create wallet test.json @@ -201,11 +201,11 @@ The wallet file is generated under the neo-cli root directory. If you want to se Delete an address from wallet. -##### Syntax +#### Syntax `delete address
` -##### Example +#### Example ``` neo> delete address NL4zw2c1MdaXYmGt4NWTPXFcyuNjCQrpNL @@ -218,11 +218,11 @@ Address 0xde6b70cbd0989167094b60b474e8f6658233b501 deleted. Opens the wallet file at the specified path. The wallet password is required to be entered when opening the wallet. -##### Syntax +#### Syntax `open wallet ` -##### Example +#### Example ``` neo> open wallet test.json @@ -233,11 +233,11 @@ password: * Changes the wallet password. -##### Syntax +#### Syntax `change password` -##### Example +#### Example ``` neo> change password @@ -251,11 +251,11 @@ Password changed successfully Upgrades the old .db3 wallet file into the .json format. -##### Syntax +#### Syntax `upgrade wallet ` -##### Example +#### Example ``` neo> upgrade wallet test.db3 @@ -266,11 +266,11 @@ Wallet file upgrade complete. New wallet file has been auto-saved at: test.json lists all the unclaimed GAS in the current wallet. -##### Syntax +#### Syntax `show gas` -##### Example +#### Example ``` neo> show gas @@ -287,7 +287,7 @@ On Neo N3, The GAS in an account is claimed automatically every time when the nu Creates a new address. One can also enter `create address 100` to create 100 new addresses in batches; Addresses are automatically exported to the address.txt file. -##### Syntax +#### Syntax `create address [n]` @@ -295,7 +295,7 @@ Creates a new address. One can also enter `create address 100` to create 100 new `n`: Number of addresses to create. n is an integer and defaults to 1. -##### Example +#### Example ``` neo> create address 3 @@ -308,7 +308,7 @@ Export addresses to address.txt Queries the balance of specified token at the specified address -##### Syntax +#### Syntax `balanceof
` @@ -318,7 +318,7 @@ Queries the balance of specified token at the specified address - `address`: The address to query -##### Example +#### Example ``` neo> balanceof 0xd2c270ebfc2a1cdd3e470014a4dff7c091f699ec NcphtjgTye3c3ZL5J5nDZhsf3UJMGAjd7o @@ -334,7 +334,7 @@ Result Stack: [{"type":"Integer","value":"1998380000000000"}] Queries the precision of specified token -##### Syntax +#### Syntax `decimals ` @@ -342,7 +342,7 @@ Queries the precision of specified token `tokenHash`: The token hash -##### Example +#### Example ``` neo> decimals 0xd2c270ebfc2a1cdd3e470014a4dff7c091f699ec @@ -357,7 +357,7 @@ Result : 8 Queries the name of specified token -##### Syntax +#### Syntax `name ` @@ -365,7 +365,7 @@ Queries the name of specified token `tokenHash`: The token hash -##### Example +#### Example ``` neo> name 0xd2a4cff31913016155e38e474a2c06d08be276cf @@ -379,7 +379,7 @@ Result: GasToken Queries the total supply of specified token -##### Syntax +#### Syntax `totalsupply ` @@ -387,7 +387,7 @@ Queries the total supply of specified token `tokenHash`: The token hash -##### Example +#### Example ``` neo> totalsupply 0xd2a4cff31913016155e38e474a2c06d08be276cf @@ -409,7 +409,7 @@ Result: 100000000 Invokes the transfer method to transfer the specified token. -##### Syntax +#### Syntax `transfer [from=null] [data=null] [signersAccounts=null]` @@ -422,7 +422,7 @@ Invokes the transfer method to transfer the specified token. - `data`:The additional parameter. The default value is null. - `signersAccounts`: The signer's address -##### Example +#### Example ``` neo> transfer 0xd2c270ebfc2a1cdd3e470014a4dff7c091f699ec Nhe4mzfQRoKojkXhqxJHjANvBMT7BYAXDv 6000 NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y transferdata NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y @@ -435,12 +435,12 @@ Signed and relayed transaction with hash=0x0d82a59ca2106c93e6383893d86a098d1a9fb Lists all the native contract names and scripthash. -##### Syntax +#### Syntax `list nativecontract` -##### Example +#### Example ``` neo> list nativecontract @@ -460,7 +460,7 @@ neo> list nativecontract Gets the latest voting information of the specific account, including the address it voted, the amount of votes cast and the block height at the time of voting. -##### Syntax +#### Syntax `get accountstate
` @@ -468,7 +468,7 @@ Gets the latest voting information of the specific account, including the addres `address`:The address you want to query the voting information. -##### Example +#### Example ``` neo> get accountstate NNz4ppADL3mke7HT8RvRr5nX8zTAbNdWjv @@ -486,11 +486,11 @@ Block: 9774 Gets candidates' public keys and votes -##### Syntax +#### Syntax `get candidates` -##### Example +#### Example ``` neo> get candidates @@ -506,11 +506,11 @@ Candidates: Gets the committee member's public key -##### Syntax +#### Syntax `get committee` -##### Example +#### Example ``` neo> get committee @@ -526,11 +526,11 @@ Committee: Gets the next validator's public key -##### Syntax +#### Syntax `get next validators` -##### Example +#### Example ``` neo> get next validators @@ -546,7 +546,7 @@ Next validators: Registers the candidate -##### Syntax +#### Syntax `register candidate [maxGas=1010]` @@ -556,7 +556,7 @@ Registers the candidate `maxGas`: The maximum GAS can be consumed. Default is 1010, where the registration fee is 1000 GAS. -##### Example +#### Example ``` neo> register candidate NUNtEBBbJkmPrmhiVSPN6JuM7AcE8FJ5sE @@ -572,7 +572,7 @@ Signed and relayed transaction with hash=0xc30ecd2e30d2d3347e389dbdb205c6a38a663 Unregisters the candidate -##### Syntax +#### Syntax `unregister candidate ` @@ -580,7 +580,7 @@ Unregisters the candidate `account`: The account to unregister candidate -##### Example +#### Example ``` neo> unregister candidate NUNtEBBbJkmPrmhiVSPN6JuM7AcE8FJ5sE @@ -596,7 +596,7 @@ Signed and relayed transaction with hash=0xa799e315956e120a51bf5b5804d9518754a84 Votes for candidates -##### Syntax +#### Syntax `vote ` @@ -605,7 +605,7 @@ Votes for candidates - `senderAccount`: The account used to vote - `publickey`: The public key of the account you vote for -##### Example +#### Example ``` neo> vote Nhiuh11SHF4n9FE6G5LuFHHYc7Lgws9U1z 02344389a36dfc3e95e05ea2adc28cf212c0651418cfcf39e69d19d18b567b221d @@ -622,7 +622,7 @@ Signed and relayed transaction with hash=0x8083633ecc4827b7967ba8b0a30f02992dc52 Cancel the voting -##### Syntax +#### Syntax `unvote ` @@ -630,7 +630,7 @@ Cancel the voting `senderAccount`: The account to unvote -##### Example +#### Example ``` neo> unvote 0x39edfd1534af1ab7e91bab25fcee9a3b93bfae21 @@ -646,7 +646,7 @@ Signed and relayed transaction with hash=0x78f83fd1e0607f078fa0964a97b9972d3f484 Exports private key of the address to the specified file. The command also requires the verification of the wallet password. -##### Syntax +#### Syntax `export key [address] [path]` @@ -655,7 +655,7 @@ Exports private key of the address to the specified file. The command also requi - `address`: Address to export private key. - `path`: Path to the file used to store the private key. -##### Example +#### Example Exports the key to the console: @@ -684,7 +684,7 @@ password: ******** Imports a private key, or a file with a number of private keys. -##### Syntax +#### Syntax `import key ` @@ -692,7 +692,7 @@ Imports a private key, or a file with a number of private keys. `wif | path`: The key to import or the file path. -##### Example +#### Example ``` neo> import key L4q37aCJzjEXhAUJ6npdxbjGGbyTXuWhpgYxkb2NWPmzXv4DdxiD @@ -710,7 +710,7 @@ If there is a specified file, the file is in the private key format. Refer to ex Creates a multi-party signed address. -##### Syntax +#### Syntax `import multisigaddress m pubkeys...` @@ -719,7 +719,7 @@ Creates a multi-party signed address. - `m`: 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. - `pubkeys`: Public keys of multiple parties involved. -##### Example +#### Example ``` neo> import multisigaddress 2 03fadbc9b25d1b6827124665c50801e602240c9d8ebdda2bae49de6683f8f86af9 02ff249d06faaf0b5ba865e1531bfabe07f89aef39ab59082e3bc140be0318055d @@ -730,7 +730,7 @@ Multisig. Addr.: NN58k4Ei4nUzWxrgksHZPantyuDxWgouod Imports the watch-only address, e.g contract account. -##### Syntax +#### Syntax `import watchonly scriptHash` @@ -738,7 +738,7 @@ Imports the watch-only address, e.g contract account. `addressOrFile`:account address, hash, contract hash, or files storing these data -##### Example +#### Example ``` neo> import watchonly 0xbfe215933f29b29dacf0e8383722a62974ac8aa6 @@ -749,7 +749,7 @@ Address: Nb6ZUp9h5aCKkNADpdUD5TbuJGP6wyRvE8 Transfers the asset to the specified address. The command requires the verification of the wallet password. -##### Syntax +#### Syntax `send
[from=null] [data=null] [signerAccounts=null]` @@ -762,7 +762,7 @@ Transfers the asset to the specified address. The command requires the verificat - `data`: the additional transaction information, which defaults to null. - `signerAccounts`: signer's address -##### Example +#### Example Transfer 100 Neo to the address Ni5iS2XHazKZtXfzLJbdyDk8UUcGBZGePR: @@ -803,7 +803,7 @@ TXID: 0x174bab85eb004a07ae5b411f23cb6d3128346f9249305a768c286707938b4727 This command is used to sign ContractParametersContext. The translation can be broadcasted only after signing is completed. -##### Syntax +#### Syntax `sign ` @@ -811,7 +811,7 @@ This command is used to sign ContractParametersContext. The translation can be b `jsonObjectToSign`: The json string that records the transaction information. -##### Example +#### Example ``` neo> sign {"type":"Neo.Network.P2P.Payloads.Transaction","hex":"AFhJmTC0i5cAAAAAAHwNhQAAAAAA12oAAAK\u002BqHRB6GdCJbuT4Xv76Od/eEbFVAD4JGXeIikja1DoxoxIKrkYu6bW7AEAVwsaDBS\u002BqHRB6GdCJbuT4Xv76Od/eEbFVAwU\u002BCRl3iIpI2tQ6MaMSCq5GLum1uwUwB8MCHRyYW5zZmVyDBT1Y\u002BpAvCg9TQ4FxI6jBbPyoHNA70FifVtSOQ==","items":{"0x54c546787fe7e8fb7be193bb254267e84174a8be":{"script":"DCECF5VDAAGEeB5UR7Pw\u002B6zmZOqSt\u002BMSJ8jnG8Tnza/M245BdHR2qg==","parameters":[{"type":"Signature","value":"gyzhpmI0KRkAJmd8cWtv7PdFLRlS\u002BHqykL0oH/S84Te4DGwRd9ja/TfKW2\u002BHTSrdfUdnN/K8CF0kf0UywcTKCw=="}],"signatures":{"02179543000184781e5447b3f0fbace664ea92b7e31227c8e71bc4e7cdafccdb8e":"gyzhpmI0KRkAJmd8cWtv7PdFLRlS\u002BHqykL0oH/S84Te4DGwRd9ja/TfKW2\u002BHTSrdfUdnN/K8CF0kf0UywcTKCw=="}},"0xecd6a6bb18b92a488cc6e8506b232922de6524f8":{"script":"FQwhAwIkKx3O1j4b9\u002BsUh29\u002B8Ca3lWf5xb6D3hlD3Rhewo5oDCECDfiFi2b/TXsKamjRHd7cx9kNKmT/os0IfExdq/QVC0AMIQIXlUMAAYR4HlRHs/D7rOZk6pK34xInyOcbxOfNr8zbjgwhAl6ElJA7k9w2nwiivX4iH1dMddlnVZHwSQfLqdruuD0QDCEDhBXQvo3BK2HT47drmPRk36t/3e50Jxw14t5iS7UQI6YMIQPJscicbi1KvWKaLbi30DrO1RilZ5O8kPSYXvftPxtIGgwhA\u002BirUYbh3qvNEOwOUJ3tT/\u002Bt5v3fU0rD4FBiaLrj/USmF0F7zmyl","parameters":[{"type":"Signature"},{"type":"Signature"},{"type":"Signature"},{"type":"Signature"},{"type":"Signature"}],"signatures":{"02179543000184781e5447b3f0fbace664ea92b7e31227c8e71bc4e7cdafccdb8e":"/3oqPLUuFig8B66JNnlyVsA9klLm10LLA5sV/oDr9uzCAPh\u002BDL0yJWx2PfEd\u002BIWijBk/re90CHyJ3w1WkB71eQ=="}}}} @@ -826,11 +826,11 @@ The signed json string is returned. If the signature is complete, you can broadc Cancel unconfirmed transactions (in memory pool). Only transactions in the memory pool can be canceled, e.g. if you send two identical transactions, you can cancel one of them in a short time (before the consensus node confirms it). -##### Syntax +#### Syntax `cancel [sender=null] [signerAccounts=null]` -##### Example +#### Example ``` neo> cancel 0x38d11429a6d34d2ed86213a2a020eece795f48e569b5d05a0ef3616778b03a78 @@ -844,7 +844,7 @@ Signed and relayed transaction with hash: Deploys a contract on the blockchain. -##### Syntax +#### Syntax `deploy [manifestFile]` @@ -853,7 +853,7 @@ Deploys a contract on the blockchain. - `nefFilePath`: Path to the executable file (.nef) of NeoVM. - `manifestFile`: Path to the file manifest.json, which records each interface information and configuration content of the contract. -##### Example +#### Example ``` neo> deploy Template.nef Template.manifest.json @@ -867,7 +867,7 @@ Signed and relayed transaction with hash=0xab6dd63ea36a7c95580b241f34ba756e62c76 Invokes a contract. -##### Syntax +#### Syntax `invoke [contractParameters=null] [sender=null] [signerAccounts=null][maxGas]` @@ -892,13 +892,14 @@ Invokes a contract. - `maxGas`: The maximum GAS can be consumed. -##### Example 1 +#### Example 1 Input: ``` invoke 0xb7f4d011241ec13db16c0e3484bdd5dd9a536f26 symbol ``` + Output: ``` @@ -911,8 +912,8 @@ relay tx(no|yes): ``` - `VM State`: there are two states: - - `HALT` : the virtual machine executes successfully. - - `FAULT` : the virtual machine exits during execution due to an exception. + - `HALT` : the virtual machine executes successfully. + - `FAULT` : the virtual machine exits during execution due to an exception. - `Gas Consumed`: the system fees consumed for smart contract invocation. - `Evaluation Stack`: shows the result of contract execution, where the value is encoded with Base64. @@ -955,7 +956,8 @@ Evaluation Stack: [{"type":"Integer","value":"9999999900000000"}] relay tx(no|yes): no ``` -##### Example 3 + +#### Example 3 Input: @@ -974,11 +976,11 @@ Output: After entering the invoke command, the node invokes the `operation` method, and passes `operation` and `contractParameters` as arguments. If `operation` and `contractParameters` are not processed in the contract, the expected result will not be returned. ::: -### update +### update Upgrades a contract. -##### Syntax +#### Syntax `update [signerAccounts=null]` @@ -991,7 +993,7 @@ Upgrades a contract. - `sender`: The transaction sender that pays for GAS - `signerAccounts`: An array of co-signed addresses and only supports standard accounts (single address). After filling in Neo-CLI will append signatures of all addresses in the array to the invocation transaction. -##### Example +#### Example ``` update 0x3096fb5cd0a2a95b29e8e92692f0be77c4cce06f NEP17.nef NEP17.manifest.json 0xf6a3f0fda46abdeacac9eda4600a354d0687c420 @@ -1008,7 +1010,7 @@ Signed and relayed transaction with hash=0x4587846a2cbc8574e16ce04e95e8c73d76b88 After signing completed, this command can be used to broadcast the transaction information. -##### Syntax +#### Syntax `relay ` @@ -1016,7 +1018,7 @@ After signing completed, this command can be used to broadcast the transaction i `jsonObjectToSign`: The json string that records the transaction information. -##### Example +#### Example ``` neo> relay {"type":"Neo.Network.P2P.Payloads.Transaction","hex":"AFhJmTC0i5cAAAAAAHwNhQAAAAAA12oAAAK\u002BqHRB6GdCJbuT4Xv76Od/eEbFVAD4JGXeIikja1DoxoxIKrkYu6bW7AEAVwsaDBS\u002BqHRB6GdCJbuT4Xv76Od/eEbFVAwU\u002BCRl3iIpI2tQ6MaMSCq5GLum1uwUwB8MCHRyYW5zZmVyDBT1Y\u002BpAvCg9TQ4FxI6jBbPyoHNA70FifVtSOQ==","items":{"0x54c546787fe7e8fb7be193bb254267e84174a8be":{"script":"DCECF5VDAAGEeB5UR7Pw\u002B6zmZOqSt\u002BMSJ8jnG8Tnza/M245BdHR2qg==","parameters":[{"type":"Signature","value":"gyzhpmI0KRkAJmd8cWtv7PdFLRlS\u002BHqykL0oH/S84Te4DGwRd9ja/TfKW2\u002BHTSrdfUdnN/K8CF0kf0UywcTKCw=="}],"signatures":{"02179543000184781e5447b3f0fbace664ea92b7e31227c8e71bc4e7cdafccdb8e":"gyzhpmI0KRkAJmd8cWtv7PdFLRlS\u002BHqykL0oH/S84Te4DGwRd9ja/TfKW2\u002BHTSrdfUdnN/K8CF0kf0UywcTKCw=="}},"0xecd6a6bb18b92a488cc6e8506b232922de6524f8":{"script":"FQwhAwIkKx3O1j4b9\u002BsUh29\u002B8Ca3lWf5xb6D3hlD3Rhewo5oDCECDfiFi2b/TXsKamjRHd7cx9kNKmT/os0IfExdq/QVC0AMIQIXlUMAAYR4HlRHs/D7rOZk6pK34xInyOcbxOfNr8zbjgwhAl6ElJA7k9w2nwiivX4iH1dMddlnVZHwSQfLqdruuD0QDCEDhBXQvo3BK2HT47drmPRk36t/3e50Jxw14t5iS7UQI6YMIQPJscicbi1KvWKaLbi30DrO1RilZ5O8kPSYXvftPxtIGgwhA\u002BirUYbh3qvNEOwOUJ3tT/\u002Bt5v3fU0rD4FBiaLrj/USmF0F7zmyl","parameters":[{"type":"Signature","value":"QYZ4LuSpqSWZ8RzowvPZ8U0o3HjwhPlDf2jmOV3Rglq4Rm4KvMpIqfmuLdrEkecHe1MSP1AcEvE/c2FhdZ98UQ=="},{"type":"Signature","value":"DhhX8mwnLRVVU9hRjdGJ/Pdq10ytpn8xJUOXWqy3I8cE/Midc6s3dvzMt1QH\u002BPn2xDGjkzNNcczI34reE\u002BaCpA=="},{"type":"Signature","value":"/3oqPLUuFig8B66JNnlyVsA9klLm10LLA5sV/oDr9uzCAPh\u002BDL0yJWx2PfEd\u002BIWijBk/re90CHyJ3w1WkB71eQ=="},{"type":"Signature","value":"cUmlfjxdWmPTSpHsJHqr8lLllclJNGroOmStMLXzOI4fcO3D5/JKru/rU/OC029il\u002B8sVteUmL0rEaLnldKMrQ=="},{"type":"Signature","value":"T0PQ9vQNDtDnpa3f9UtN3\u002B22SOFbVG8NBwvu3tq6YchsMbF4OmlBFtNa\u002BZuqT3fxP0r/naAYgnwHMDG8DXAeSQ=="}],"signatures":{"02179543000184781e5447b3f0fbace664ea92b7e31227c8e71bc4e7cdafccdb8e":"/3oqPLUuFig8B66JNnlyVsA9klLm10LLA5sV/oDr9uzCAPh\u002BDL0yJWx2PfEd\u002BIWijBk/re90CHyJ3w1WkB71eQ==","0302242b1dced63e1bf7eb14876f7ef026b79567f9c5be83de1943dd185ec28e68":"T0PQ9vQNDtDnpa3f9UtN3\u002B22SOFbVG8NBwvu3tq6YchsMbF4OmlBFtNa\u002BZuqT3fxP0r/naAYgnwHMDG8DXAeSQ==","020df8858b66ff4d7b0a6a68d11ddedcc7d90d2a64ffa2cd087c4c5dabf4150b40":"cUmlfjxdWmPTSpHsJHqr8lLllclJNGroOmStMLXzOI4fcO3D5/JKru/rU/OC029il\u002B8sVteUmL0rEaLnldKMrQ==","025e8494903b93dc369f08a2bd7e221f574c75d9675591f04907cba9daeeb83d10":"DhhX8mwnLRVVU9hRjdGJ/Pdq10ytpn8xJUOXWqy3I8cE/Midc6s3dvzMt1QH\u002BPn2xDGjkzNNcczI34reE\u002BaCpA==","038415d0be8dc12b61d3e3b76b98f464dfab7fddee74271c35e2de624bb51023a6":"QYZ4LuSpqSWZ8RzowvPZ8U0o3HjwhPlDf2jmOV3Rglq4Rm4KvMpIqfmuLdrEkecHe1MSP1AcEvE/c2FhdZ98UQ=="}}}} @@ -1028,11 +1030,11 @@ Data relay success, the hash is shown as follows: Broadcasts the IP address of a block. -##### Syntax +#### Syntax `broadcast addr ` -##### Example +#### Example ``` neo> broadcast addr 127.0.0.1 10332 @@ -1043,13 +1045,13 @@ neo> Broadcasts a block. -##### Syntax +#### Syntax -`broadcast block ` +`broadcast block ` -`broadcast block ` +`broadcast block ` -##### Example +#### Example ``` neo> broadcast block 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1062,11 +1064,11 @@ neo> Broadcasts the getblocks request. -##### Syntax +#### Syntax -`broadcast getblocks ` +`broadcast getblocks ` -##### Example +#### Example ``` neo> broadcast getblocks 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1077,11 +1079,11 @@ neo> Broadcasts the getheaders request. -##### Syntax +#### Syntax -`broadcast getheaders ` +`broadcast getheaders ` -##### Example +#### Example ``` neo> broadcast getheaders 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1092,11 +1094,11 @@ neo> Broadcasts the getdata request. -##### Syntax +#### Syntax -`broadcast getdata ` +`broadcast getdata ` -##### Example +#### Example ``` neo> broadcast getdata Block 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1111,11 +1113,11 @@ neo> Broadcasts inventory data. -##### Syntax +#### Syntax -`broadcast inv ` +`broadcast inv ` -##### Example +#### Example ``` neo> broadcast inv Block 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1130,11 +1132,11 @@ neo> Broadcasts a transaction. -##### Syntax +#### Syntax -`broadcast transaction ` +`broadcast transaction ` -##### Example +#### Example ``` neo> broadcast transaction 0xd57bbbadee0b8ff283961f886cdc6d455ab8b5301ccdf5359d7316f209064052 @@ -1145,11 +1147,11 @@ neo> Shows all the loaded plugins. -##### Syntax +#### Syntax `plugins` -##### Example +#### Example ``` neo> plugins @@ -1184,7 +1186,7 @@ For information about all plugins refer to [Install Plug-ins](config.md). Exports all or the specified state data. -##### Syntax +#### Syntax `dump storage ` @@ -1192,27 +1194,27 @@ Exports all or the specified state data. Exports the block data from the specified block height. The output can be used for offline synchronization. -##### Syntax +#### Syntax `export blocks ` ##### Parameters -` `: The height of the starting block from which the data is exported. +``: The height of the starting block from which the data is exported. ### show blocks Output block details via block height or block hash. -##### Syntax +#### Syntax `show block ` ##### Parameters -` `: The index or height of the block. +``: The index or height of the block. -##### Example +#### Example ``` neo> show block 332 @@ -1248,15 +1250,15 @@ neo> show block 332 Output contract details by contract name or contract hash. -##### Syntax +#### Syntax `show contract ` ##### Parameters -` `: The name or hash of the contract. +``: The name or hash of the contract. -##### Example +#### Example ``` neo> show contract 0xd2a4cff31913016155e38e474a2c06d08be276cf @@ -1324,15 +1326,15 @@ neo> show contract 0xd2a4cff31913016155e38e474a2c06d08be276cf Output transaction details via transaction hash. -##### Syntax +#### Syntax `show tx ` ##### Parameters -` `: The transaction hash of transaction. +``: The transaction hash of transaction. -##### Example +#### Example ``` neo> show tx 0xf5a0bc050795ae0cf2bea36655d65585dc72246464ec27f79e919ed6f301a843 @@ -1391,13 +1393,13 @@ Stops Oracle. This command requires installation of the OracleService plugin. Queries the state root with index. This command requires installation of the StateService plugin. -##### Syntax +#### Syntax `state root ` ##### Parameters -` `: The block index +``: The block index ``` neo> state root 20000 @@ -1408,15 +1410,15 @@ neo> state root 20000 Gets proof with root hash, contract hash, and storage key. -##### Syntax +#### Syntax `get proof