forked from neo-project/neo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
48 changed files
with
4,394 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# claimgas Method | ||
|
||
Claims GAS in the wallet. | ||
|
||
> [!Note] | ||
> | ||
> Before you can invoke this method you must open the wallet in NEO-CLI. | ||
## Parameter Description | ||
|
||
address (optional): The address that you want to send the claimed GAS to. This address should be a standard address. | ||
|
||
## Example | ||
|
||
Request body: | ||
|
||
``` | ||
{ | ||
"jsonrpc": "2.0", | ||
"method": "claimgas", | ||
"params": [], | ||
"id": 1 | ||
} | ||
``` | ||
|
||
Response body: | ||
|
||
``` | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"txid": "0xa6d16b98dbd4b2d140bd8316f595de3c6770456454d5aa48e1d3dbe11c1acd3e", | ||
"size": 543, | ||
"type": "ClaimTransaction", | ||
"version": 0, | ||
"attributes": [], | ||
"vin": [], | ||
"vout": [ | ||
{ | ||
"n": 0, | ||
"asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7", | ||
"value": "0.499384", | ||
"address": "AH2TGXkKgiWm4xMQzVT5R9zV1yxwVXNAPT" | ||
} | ||
], | ||
"sys_fee": "0", | ||
"net_fee": "0", | ||
"scripts": [ | ||
{ | ||
"invocation": "4000b71a53738761ec03d9cd5d85fc8ea2acf42cda076e7a5f690adb897b2ee8ed018a0000494d6ee047cd66ec926806a0c934fe1a84aec171f66eedf8309d6a9a", | ||
"verification": "2102bac395577bf47e7dd6058b7dfc38d2b351966ac03ea84ba7bca410e8a8aded20ac" | ||
}, | ||
{ | ||
"invocation": "4086cdf2622d901110f2c04e646f8e78f4c995f3be399bbe5d2d4ac81918fd4a5d5c39a7df60f827c00de1f19e3584c3253541c52b88bed54ba1b9a448548b0e5d", | ||
"verification": "2103991949671a85ba5eb09a982c94e0d205b81c94f958109895b4ebafa747caaf09ac" | ||
} | ||
], | ||
"claims": [ | ||
{ | ||
"txid": "0xe1e44f41a1f0854063ccdc9beb7537fc40565575e0ae2366b4a93a73c18b6166", | ||
"vout": 2 | ||
}, | ||
{ | ||
"txid": "0x69fd452c92fb0e5861b27588549a8e55d3f9fee542884ae317600508bbacedbb", | ||
"vout": 2 | ||
}, | ||
{ | ||
"txid": "0x152d823d5cf1ce58cf33879e23309dc83152cfb8c50ba05cc03c090dcd00198e", | ||
"vout": 0 | ||
}, | ||
{ | ||
"txid": "0x152d823d5cf1ce58cf33879e23309dc83152cfb8c50ba05cc03c090dcd00198e", | ||
"vout": 1 | ||
}, | ||
{ | ||
"txid": "0xe1e44f41a1f0854063ccdc9beb7537fc40565575e0ae2366b4a93a73c18b6166", | ||
"vout": 0 | ||
}, | ||
{ | ||
"txid": "0xe1e44f41a1f0854063ccdc9beb7537fc40565575e0ae2366b4a93a73c18b6166", | ||
"vout": 1 | ||
}, | ||
{ | ||
"txid": "0x668e9be5185e1cfa1efb08b673062038ce04ebc9db41f75dc74d6faacbaf71ea", | ||
"vout": 0 | ||
}, | ||
{ | ||
"txid": "0x668e9be5185e1cfa1efb08b673062038ce04ebc9db41f75dc74d6faacbaf71ea", | ||
"vout": 1 | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
Response description: | ||
|
||
Returns the transaction details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# getunclaimedgas Method | ||
|
||
Gets the amount of unclaimed GAS in the wallet. | ||
|
||
> [!Note] | ||
> | ||
> Before you can invoke this method you must open the wallet in NEO-CLI. | ||
## Example | ||
|
||
Request body: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"method": "getunclaimedgas", | ||
"params": [], | ||
"id": 1 | ||
} | ||
``` | ||
|
||
Response body: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"available": "0.140771", | ||
"unavailable": "0.096224" | ||
} | ||
} | ||
``` | ||
|
||
Response description: | ||
|
||
Returns the unclaimed GAS amount. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# importprivkey Method | ||
|
||
Imports the private key to the wallet. | ||
|
||
> [!Note] | ||
> | ||
> Before you can invoke this method you must open the wallet in NEO-CLI. | ||
## Parameter Description | ||
|
||
Key: The WIF-format private key. | ||
|
||
## Example | ||
|
||
Request body: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"method": "importprivkey", | ||
"params": ["L5c6jz6Rh8arFJW3A5vg7Suaggo28ApXVF2EPzkAXbm94ThqaA6r"], | ||
"id": 1 | ||
} | ||
``` | ||
|
||
Response body: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"address": "Ad8S24trcuchyLfEbJWqRP7BUScUT4t2pw", | ||
"haskey": true, | ||
"label": null, | ||
"watchonly": false | ||
} | ||
} | ||
``` | ||
|
||
Response description: | ||
|
||
Returns the address corresponding to the key. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.