Is there a sample publicly available, showing how to use the official IOTA S Library to promote a transaction?
1 Answer
Taken from the official wallet app:
const spamTransfer = [{address: '9'.repeat(81), value: 0, message: '', tag: ''}]
iota.api.promoteTransaction(transactionHash, 10, 14, spamTransfer,
{interrupt: false, delay: 0});
Documentation is available here.