Home Reference Source
public class | source

NodeAPIPublic

You can directly use an instance of this class. nodeAPIPublic

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

helloWorld(req: *, res: *): {"hello": string}

public

info(): {"protocol": *, "version": *, "poolURL": *, "blocks": *, "networkHashRate": *, "chainWork": *, "sockets": *, "services": *, "waitlist": *, "is_synchronized": *, "secondsBehind": *}

public

ping(req: *, res: *): {"ping": string}

Public Constructors

public constructor() source

Public Methods

public helloWorld(req: *, res: *): {"hello": string} source

Params:

NameTypeAttributeDescription
req *
res *

Return:

{"hello": string}

public info(): {"protocol": *, "version": *, "poolURL": *, "blocks": *, "networkHashRate": *, "chainWork": *, "sockets": *, "services": *, "waitlist": *, "is_synchronized": *, "secondsBehind": *} source

Return:

{"protocol": *, "version": *, "poolURL": *, "blocks": *, "networkHashRate": *, "chainWork": *, "sockets": *, "services": *, "waitlist": *, "is_synchronized": *, "secondsBehind": *}

public ping(req: *, res: *): {"ping": string} source

Params:

NameTypeAttributeDescription
req *
res *

Return:

{"ping": string}