Payments and transactions
One of the core features that almost every existing Obyte chatbot has is sending and receiving payments. This enables bot developers immediately add payment to the service they could be providing with
Requesting payments
Any text before [payment description, will be ignored](obyte:ACCOUNT_ADDRESS?amount=123000&asset=base) any text aftervar headlessWallet = require('headless-obyte');
eventBus.once('headless_wallet_ready', () => {
eventBus.on('text', function(from_address, text) {
const device = require('ocore/device.js');
if (text === 'resend') {
headlessWallet.issueNextMainAddress((deposit_address) => {
// send it over to the user
device.sendMessageToDevice(from_address, 'text',
'[...](obyte:'+ deposit_address +'?amount=123000&asset=base)');
});
});
}
});
});Payments from single address wallet
Requesting multiple payments
Waiting for payments
Waiting for finality of payments
Sending payments from chat bot
Last updated
Was this helpful?
