Adds listener for Notify messages.
Be careful to not set autoClose = true and close the websocket on your own.
Listener
Close the websocket manually.
Get the balance of some address. The result contains ONT and ONG.
Address
Get block's info by block's height or hash. The result is hex encoded string.
Block's height or hash
Get block hash by block height
Height of the block
Get current block height
Get block's height by transaction hash
Reversed transaction hash
Get block's info by block's height or hash. The result is json.
Block's height or hash
Return all transaction hash contained in the block corresponding to this height
Height of the block
Get contract info by code hash. The result is hex encoded string.
Contract's code hash.
Get contract's info by code hash The result is json.
Contract's code hash
Return the state of transaction locate in memory
Get grant ong
Address
Query the transaction count in the memory pool
Query the transaction state in the memory pool
Get merkle proof by transaction hash.
Reversed transaction hash
Get the network id
Get Nodes count
Get raw transaction by transaction hash. The result is hex encoded transaction.
Reversed transaction hash
Get transaction info by transaction hash. The result is json.
Reversed transaction hash
Get smart conde event by transaction hash or block's height. If parameter is transaction hash, the result is the event of that transaction. If parameter is block's height, the result is all the events of that block.
Reversed transaction hash or block's height
Get stored value in smart contract by contract's code hash and the key.
Contract's code hash
Key of stored value
Get unbound ong of this address The result contains ONG.
Address
Get the version information of the node
Send msg to blockchain
Message to send
Automaticly close connection if also autoClose is specified
Send heart beat request
Send raw transaction
Hex encoded data
Decides if it is a pre-executed transaction
Decides if client waits for notify from blockchain before closing
Send subscribe request
Generated using TypeDoc
Websocket client.
TODO: correlate request and response with id, so socket can be reused.