-
Notifications
You must be signed in to change notification settings - Fork 0
11_api_reference
Url | Description |
/status | Purpose: through this API you can find out your ip address. Request type: GET Response: client (string): ip client address Example of use: |
/node/status | Purpose: the current status of the addressed node
Request type: GET
Response:
status (object): An object with a report on the current work of the node
Fields of the object status: blockchain (object): nodeid (string): node identifier public_key (string): public node key sync_peers (array of strings): identifiers of neighboring nodes with which communication is established ver (string): node software version Example of use: |
/where/{address} | Purpose: the definition of chain belonging to address {address} (string): the address of the wallet in a textual or binary representation in the form of hex. Response: chain (integer): the number of the wallet related chain address (string): the address converted to a binary representation txtaddress (string): the address converted to a text representation Example of use: |
/address/{address} | Purpose: information about a wallet with a given address
Request type: GET
Input parameters:
{address} (string): the address of the wallet in a text or binary representation in the form of hex.
Response:
info (object): An object with information about the current state of the wallet.
address (string): the address converted to a binary representation
txtaddress (string): the address converted to a text representation
Fields of the info: amount (object): an object with the balances of this wallet in different currencies. If no operations have been performed, it may be empty lastblk (string): the hash of the block in which the last transaction made changes in this wallet, i.e. this is a link to its' last change preblk (string): hash of the previous block there the transaction that changed this wallet happened, ie. this is a link to the penultimate change of this wallet pubkey (string): public wallet key in DER format seq (integer): seq of the last successful transaction. In a new transaction, seq must be strictly greater than this number t (integer): the time of the last transaction that made changes to this wallet (the time of the last transaction with the purse). Time in microseconds. Example of use: |
/blockinfo/{hash} | Purpose: information about the block without transactions
Request type: GET
Input parameters:
{hash} (string): the hash of the block for which display information is needed or the word last (last block)
Response:
Information about the assignment of fields is presented in the chapter "Operations with blocks"
Example of use: |
/block/{hash} | Purpose: information about the block
Request type: GET
Input parameters:
{hash} (string): the hash of the block for which display information is needed or the word last (last block)
Response:
Information about the assignment of fields is presented in the chapter "Operations with blocks"
Example of use: |
/settings | Purpose: parameters of the current chain Request type: GET Response: Information about the structure and purpose of the fields will change |