-
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.
- Loading branch information
Showing
65 changed files
with
1,163 additions
and
358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Blacklist Peer | ||
type: core | ||
--- | ||
## Blacklist Peer | ||
Blacklists peer. | ||
|
||
### Method: `blacklistPeer` | ||
### Input parameters: | ||
|
||
| Parameter | Type | Required | Description | | ||
| --- | --- | --- | --- | | ||
| host | String | No | Host address to blacklist. | | ||
| wallet | String | No | Base58 Wallet address of host to blacklist. | | ||
|
||
|
||
### Errors: | ||
|
||
| Error | Description | | ||
| --- | --- | | ||
| RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. | | ||
|
||
### Output: | ||
- a JSON object with "OK" in result field on success. | ||
|
||
### Example: | ||
GET http://localhost:8081/blacklistPeer | ||
``` | ||
{ | ||
"result": "OK", | ||
"error": null, | ||
"id": null | ||
} | ||
``` |
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,29 @@ | ||
--- | ||
title: Clear Peer Blacklist | ||
type: core | ||
--- | ||
## Clear Peer Blacklist | ||
Clears peer blacklist. | ||
|
||
### Method: `clearPeerBlacklist` | ||
### Input parameters: | ||
None. | ||
|
||
### Errors: | ||
|
||
| Error | Description | | ||
| --- | --- | | ||
| RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. | | ||
|
||
### Output: | ||
- a JSON object with "OK" in result field on success. | ||
|
||
### Example: | ||
GET http://localhost:8081/clearPeerBlacklist | ||
``` | ||
{ | ||
"result": "OK", | ||
"error": null, | ||
"id": null | ||
} | ||
``` |
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
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,53 @@ | ||
--- | ||
title: Extend Name Registration | ||
type: core | ||
--- | ||
## Extend Name Registration | ||
Extend name registration for a specified amount of time. | ||
### Method: `extendName` | ||
### Input parameters: | ||
|
||
| Parameter | Type | Required | Description | | ||
| --- | --- | --- | --- | | ||
| name | String | Yes | Name to be registered. | | ||
| extensionTime | Number | Yes | Time in block to extend the name for. | | ||
|
||
### Errors: | ||
|
||
| Error | Description | | ||
| --- | --- | | ||
| RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. | | ||
|
||
### Output: | ||
- a JSON object with the transaction in result field, which extends a name. | ||
|
||
### Example: | ||
GET http://localhost:8081/extendname?name=test&extensionTime=864000 | ||
``` | ||
{ | ||
"result": { | ||
"id": "446-iSQxh1KZf5bHADpfg9rFnBQWJksF8jtNbQEGMkvR92rskETRK46cvov29Rko", | ||
"version": 7, | ||
"blockHeight": "446", | ||
"nonce": "93785", | ||
"signature": "5155031ee73...13e3f077009811", | ||
"pubKey": "JHgSS7hbUN...Ywi5i2EPPWjtyTRYRN", | ||
"data": "0341409...02f0d00", | ||
"timestamp": "1711931901", | ||
"type": "4", | ||
"amount": "50000.00000000", | ||
"applied": "0", | ||
"checksum": "7f72ba1ae8b47b3efb5283fbef7256d861d9e8c2fbdf436faedb4042769991500f41ab8b066dd159a4fcaabc", | ||
"from": { | ||
"1": "50000.01000000" | ||
}, | ||
"to": { | ||
"125D6XDzTZzQUWsyQZmQZmQZmQZmQZmQZmQZmQZmQZmQb8t25": "50000.00000000" | ||
}, | ||
"fee": "0.01000000", | ||
"totalAmount": "50000.01000000" | ||
}, | ||
"error": null, | ||
"id": null | ||
} | ||
``` |
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,62 @@ | ||
--- | ||
title: Get Presence | ||
type: core | ||
--- | ||
## Get Presence | ||
Returns presence information of the specified wallet. | ||
### Method: `getPresence` | ||
### Input parameters: | ||
|
||
| Parameter | Type | Required | Description | | ||
| --- | --- | --- | --- | | ||
| wallet | String | No | Base58 Primary Wallet address. | | ||
|
||
|
||
### Errors: | ||
|
||
| Error | Description | | ||
| --- | --- | | ||
| RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. | | ||
|
||
### Output: | ||
- a JSON object with the wallet bytes encoded as a hexadecimal string. | ||
|
||
### Example: | ||
GET http://localhost:8081/getPresence?wallet=4iMKArchGjmLsZFsj2tYrBgPjjypvEwquB2pnbEvYAyihSeEi1FN5XBsWru2iKDXK | ||
``` | ||
{ | ||
"result": { | ||
"version": 1, | ||
"wallet": { | ||
"version": 1, | ||
"addressWithChecksum": "Ab7Bkj6gj6Bm5WukZVeptezz2oLEhLcBDXehZQ583aEuTdb+n78AQzGqRqZFYZkO", | ||
"addressNoChecksum": "Ab7Bkj6gj6Bm5WukZVeptezz2oLEhLcBDXehZQ583aEuTdb+n78AQzGqRqZF", | ||
"nonce": null, | ||
"pubKey": null | ||
}, | ||
"pubkey": "AQAAAAAAAgAA7Gd0ZN...Wdu7w/us52kDAAAAAQAB", | ||
"metadata": null, | ||
"addresses": [ | ||
{ | ||
"version": 2, | ||
"device": "aSKhScV0tkOaIq0IjNZyWw==", | ||
"address": "10.23.11.2:10000", | ||
"type": "M", | ||
"nodeVersion": "xdc-0.9.2a", | ||
"lastSeenTime": 1711928565, | ||
"signature": "ynRhobTOXAMys...M5YmAZxzeNF30vLQudLCY=" | ||
} | ||
], | ||
"powSolution": { | ||
"blockNum": 271, | ||
"solution": "z6qt1qRGHMwi2w+dX+gWnPHtIJhM4rmDlBqjQ7VjNuiRUzD2OxcHRs6oVzSjSSbEg2LuQghDGUfAPrZ08M8/DA==", | ||
"signingPubKey": "AgAAAAAAAQAAlpmt...AqfHk5HQMAAAABAAE=", | ||
"checksum": "4eNPs8p1lda/BsCCfCeUy9EVs1bZrP9RgH+zWAWSZuF02obk/XhhSHGQRNJVmqs0/mGkqyucT19gIRXCJAAAAA==", | ||
"difficulty": "116843993.98621778", | ||
"bits": 3901456573219758000 | ||
} | ||
}, | ||
"error": null, | ||
"id": null | ||
} | ||
``` |
Oops, something went wrong.