Events
text
const eventBus = require('byteballcore/event_bus');
eventBus.on('text', (from_address, text) => {
console.log('from:', from_address, ' || text:', text);
});
paired
const eventBus = require('byteballcore/event_bus');
eventBus.on('paired', (from_address, pairing_secret) => {
console.log('address:', from_address, ' || pairing_secret:', text);
});
new_my_transactions
const eventBus = require('byteballcore/event_bus');
eventBus.on('new_my_transactions', (arrUnits) => {
console.log('new_my_transactions:', arrUnits);
});
new_joint
const eventBus = require('byteballcore/event_bus');
eventBus.on('new_joint', (objJoint) => {
console.log('new_joint:', objJoint);
});
my_transactions_became_stable
const eventBus = require('byteballcore/event_bus');
eventBus.on('my_transactions_became_stable', (arrUnits) => {
console.log('my_transactions_became_stable:', arrUnits);
});
Last updated