HYCON
API/V1
API/V3
Search…
Docs
Topics api/v1
Introduction
Installation
Make your first call
API Request
API Response
Interacting directly with the network api/v1
Prerequisites
Address Management
Querying an address
Transaction Management
Interacting with local Hycon Node api/v1
Prerequisites
Wallet Management
Getting Blockchain Information
Fetching Block(s)
Fetching Peer(s)
Getting a list of peers
Miscellaneous Tools
Reference api/v1
Language Support
Blockchain Reorganization
Topics api/v3
Introduction
Installation
Make your first call
API Request
API Response
Address API api/v3
Prerequisites (/address)
Getting address information
Block API api/v3
Prerequisites (/block)
Getting the latest block information
Getting specific block information
Getting mined block information
Getting tip information
Network API api/v3
Prerequisites (/network)
Getting market information
Getting list of peers
Getting information of specific peer
Transaction API api/v3
Prerequisites (/tx)
Getting specific transaction information
Getting transactions by address
Getting pending transactions
Creating an outgoing transaction
Wallet API api/v3
Prerequisites (/wallet)
Getting information of wallet list
Getting information of specific wallet
Delete Wallet
Generate random mnemonic
Generate / Recover normal wallet or HD wallet with password or passphrase
Decrypt and get an HD wallet information
Reference api/v3
Blockchain Reorganization
Language Support
Powered By
GitBook
Getting a list of peers
api/v1
Retrieve a list of peers connected to your Hycon node.
Response -
200 OK, application/json
Parameter
Type
Description
host
string
IP address of the peer
port
number
Port connected with the peer
lastSeen
timestamp
Most recent timestamp the peer was seen
failCount
number
Number of connection failures
lastAttempt
timestamp
Most recent timestamp the peer attempted connection
active
number
Activity of the peer
GET/api/v1/peerList
Example request
$ curl -X GET http://localhost:2442/api/v1/peerList \
-H 'Content-Type: application/json;charset=utf-8'
Response (Success)
[
{
"host": "110.14.194.10",
"port": 8148,
"lastSeen": "11/14/2018, 12:08:14 PM",
"failCount": 0,
"lastAttempt": "11/14/2018, 12:08:14 PM",
"active": 2
},
...
]
Interacting with local Hycon Node api/v1 - Previous
Fetching Peer(s)
Next - Interacting with local Hycon Node api/v1
Miscellaneous Tools
Last modified
1yr ago
Copy link