You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking a contract in Neo-GUI, you can click `Cosignature` at the bottom of the page, choose `Public key`, and then click `Sign` to add the signature.
65
65
66
66
:::note
67
-
When you invoke the transfer method of the NEP-17 contract using the transfer command, the wallet will automatically appends the signature to the from field. You don't need to add it manually.
67
+
When you invoke the transfer method of the NEP-17 contract using the transfer command, the wallet will automatically appends the signature to the from field. You don't need to add it manually.
Copy file name to clipboardExpand all lines: docs/n3/develop/network/private-chain/private-chain2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ You can refer to the following example:
211
211
```
212
212
213
213
:::note
214
-
If the plugin RpcServer is installed, you also need to modify the port numbers in the plugin config.json file to make them different from each other and from the ports in config.json of the node.
214
+
If the plugin RpcServer is installed, you also need to modify the port numbers in the plugin config.json file to make them different from each other and from the ports in config.json of the node.
215
215
:::
216
216
217
217
## Installing consensus plugin
@@ -311,7 +311,7 @@ In the genesis block of the NEO network, 100 million NEO and 30 million GAS are
311
311

312
312
313
313
:::note
314
-
You must create multi-party signature address in at least three wallets so as to sign the transfer transaction successfully.
314
+
You must create multi-party signature address in at least three wallets so as to sign the transfer transaction successfully.
Copy file name to clipboardExpand all lines: docs/n3/develop/network/private-chain/solo.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ Here is an example:
84
84
## Starting the private chain
85
85
86
86
:::note
87
-
If the node has downloaded Neo test net block files, you need to delete the Data folder before running Neo-CLI, otherwise the private chain will not be able to properly generate blocks.
87
+
If the node has downloaded Neo test net block files, you need to delete the Data folder before running Neo-CLI, otherwise the private chain will not be able to properly generate blocks.
88
88
:::
89
89
90
90
To start the private chain, enter the neo-cli directory and run neo-cli.exe, or run the command line and enter `dotnet neo-cli.dll`. The private chain is set up successfully when it goes as shown below:
@@ -156,7 +156,7 @@ In the genesis block of the Neo network, 100 million NEO and 30 million GAS are
156
156
157
157
6. Enter `list asset`,then you should see 100 million NEO and 30 million GAS displayed.
158
158
159
-
7. Create a new wallet using the command `create wallet` and copy the wallet address.
159
+
7. Create a new wallet using the command `create wallet` and copy the wallet address.
160
160
161
161
8. Open the wallet `consensus.json` again and transfer NEO and GAS to the new created wallet with the `send` command. For example, `send neo NWu2gb7PzhZb4ci9LvW4gBYAQFMGb1s1o7 100000000`, `send gas NWu2gb7PzhZb4ci9LvW4gBYAQFMGb1s1o7 10000000`.
Copy file name to clipboardExpand all lines: docs/n3/develop/tool/sdk/introduction.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ This document is applicable to Neo N3. It is recommended you use NEO SDK in conj
18
18
19
19
1. In Visual Studio 2019, create a new .NET project
20
20
21
-
:::note
22
-
The .NET version of the project cannot be earlier than the .NET version used by the Neo SDK.
23
-
:::
21
+
:::note
22
+
The .NET version of the project cannot be earlier than the .NET version used by the Neo SDK.
23
+
:::
24
24
25
25
2. Right-click the project and select `Manage NuGet Packages`.
26
26
@@ -33,10 +33,10 @@ The .NET version of the project cannot be earlier than the .NET version used by
33
33
```
34
34
35
35
:::note
36
-
If you use SDK to construct a transaction that requires a signature, you need to ensure that the RpcClient obeject and the network it is connected to are configured the same way, or the transaction constructed by the SDK will not be validated in the blockchain. To do so, load Neo-CLI config.json when constructing the RpcClient object, for example:
36
+
If you use SDK to construct a transaction that requires a signature, you need to ensure that the RpcClient obeject and the network it is connected to are configured the same way, or the transaction constructed by the SDK will not be validated in the blockchain. To do so, load Neo-CLI config.json when constructing the RpcClient object, for example:
37
+
38
+
RpcClient client = new RpcClient(new Uri("http://localhost:20332"), null, null, ProtocolSettings.Load("config.json"))
37
39
:::
38
-
>
39
-
> RpcClient client = new RpcClient(new Uri("http://localhost:20332"), null, null, ProtocolSettings.Load("config.json"))
Copy file name to clipboardExpand all lines: docs/n3/develop/tool/sdk/rpc.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ The `RpcClient` encapsulates all the interfaces provided by RpcServer. You can s
4
4
5
5
6
6
## Initializing RpcClient
7
+
7
8
Before you can send RPC requests you need to initialize `RpcClient` first. Choose the RPC server port of a Neo node according to your own needs. Here is an example:
Invokes the specific method of the smart contract through the specified smart contract script hash, method name, and parameters, and returns the result after running in the virtual machine.
253
265
254
266
```cs
@@ -288,6 +300,7 @@ long gasConsumed = rpcInvokeResult.GasConsumed;
288
300
```
289
301
290
302
### InvokeScriptAsync
303
+
291
304
Returns the result after running the specified script in the virtual machine.
The node local wallet interface contains the function of accessing the local wallet file. Before using the methods described in this section, you need to open the wallet using the openwallet method.
333
349
334
350
This method is disabled by default in the node configuration file for preventing high security risks.
@@ -344,41 +360,47 @@ bool result = await client.OpenWalletAsync(path, password).ConfigureAwait(false)
344
360
```
345
361
346
362
### CloseWalletAsync
363
+
347
364
Closes the wallet and clears the wallet information in memory.
Returns balance of the specified asset in the wallet by the asset id. This method is applicable to the native contract assets and NEP-17 compliant assets.
Copy file name to clipboardExpand all lines: docs/n3/develop/tool/sdk/transaction.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,11 @@
3
3
`RpcClient` encapsulates the transaction construction module, which allows you to construct transactions in Neo N3 with specific parameters and methods to personalize your functions. This document introduces the relevant methods.
4
4
5
5
:::note
6
-
If you use SDK to construct a transaction that requires a signature, you need to ensure that the RpcClient object and the network it is connected to are configured the same way, or the transaction constructed by the SDK will not be validated in the blockchain. To do so, load Neo-CLI config.json when constructing the RpcClient object, for example:
6
+
If you use SDK to construct a transaction that requires a signature, you need to ensure that the RpcClient object and the network it is connected to are configured the same way, or the transaction constructed by the SDK will not be validated in the blockchain. To do so, load Neo-CLI config.json when constructing the RpcClient object, for example:
7
+
8
+
RpcClient client = new RpcClient(new Uri("http://localhost:20332"), null, null, ProtocolSettings.Load("config.json"))
7
9
:::
8
-
>
9
-
> RpcClient client = new RpcClient(new Uri("http://localhost:20332"), null, null, ProtocolSettings.Load("config.json"))
0 commit comments