5

Is there a sample publicly available, showing how to use the official IOTA S Library to promote a transaction?

ralf
  • 1,063
  • 5
  • 10

1 Answers1

2

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.

mihi
  • 7,324
  • 2
  • 15
  • 34