Kind: global class
Constructor has the same params as the monitorClient class constructor.
Param | Type |
---|---|
apiKey | string |
options | object |
Initializes client and adds addresses to the pool. It will create a new pool if no poolId was stored in the watching state
Kind: instance method of MonitorApp
Param | Type |
---|---|
addresses | array |
Saves the watching state to a file
Kind: instance method of MonitorApp
Restores the watching state from a file.
Kind: instance method of MonitorApp
Starts watching for events.
Kind: instance method of MonitorApp
Param | Type |
---|---|
callback | function |
Kind: global class
- MonitorClient
- new MonitorClient(apiKey, options)
- .saveState() ⇒
Promise
- .restoreState(state)
- .createPool(addresses) ⇒
Boolean
|string
- .deletePool() ⇒
Boolean
- .addAddresses(addresses) ⇒
Boolean
- .removeAddresses(addresses) ⇒
Boolean
- .removeAllAddresses() ⇒
bool
- .watch() ⇒
Promise
- .unwatch() ⇒
undefined
- .getToken(address) ⇒
Object
|bool
- .getUpdates(method, startTime) ⇒
Object
|null
- .getTransactions(startTime) ⇒
Object
|null
- .getOperations(startTime) ⇒
Object
|null
Constructor.
Param | Type |
---|---|
apiKey | string |
options | object |
Returns current state.
Kind: instance method of MonitorClient
Restores state from saved data.
Kind: instance method of MonitorClient
Param | Type |
---|---|
state | Object |
Creates a new pool.
Kind: instance method of MonitorClient
Param | Type |
---|---|
addresses | Array.<string> |
Deletes current pool.
Kind: instance method of MonitorClient
Adds addresses to the pool.
Kind: instance method of MonitorClient
Param | Type |
---|---|
addresses | Array.<string> |
Removes addresses from the pool.
Kind: instance method of MonitorClient
Param | Type |
---|---|
addresses | Array.<string> |
Removes all addresses from the pool.
Kind: instance method of MonitorClient
Starts watching for address acitivity.
Kind: instance method of MonitorClient
Stops watching for address activity.
Kind: instance method of MonitorClient
Returns token data by token address.
Kind: instance method of MonitorClient
Param | Type |
---|---|
address | string |
Asks Bulk API for updates
Kind: instance method of MonitorClient
Param | Type | Default |
---|---|---|
method | string |
|
startTime | int |
0 |
Returns last tracked transactions since the startTime
Kind: instance method of MonitorClient
Param | Type | Default |
---|---|---|
startTime | int |
0 |
Returns last tracked operations since the startTime
Kind: instance method of MonitorClient
Param | Type | Default |
---|---|---|
startTime | int |
0 |