To do POW, you call attachToTangle and do POW on two transactions, branchTransaction and trunkTransaction which you get from calling TransactionsToApprove. The message you want to send is sent in trytes via attachToTangle. Then the resulting trytes from the attachToTangle call are stored and broadcasted to the network via storeTransactions and broadcastTransactions.

I assume with additional javascript calls a wallet can generate a message in trytes which is the one included in attachToTangle which is broadcasted out. However, what if you took the hash from branchTransaction and called getTrytes and then replayed that message as the one in attachToTangle? If this was to send IOTAs - how is it not resent? Also, is this an effective way to spam (and thus help) the network?

  • 1
    What do you mean by [... call getTrytes and then replayed that message ...]? Replay the whole bundle and do the PoW again (Reattaching) or just rebroadcasting the transaction? Why would you need the branchTransaction, couldn't it be any transaction?
    – Zauz
    Jan 8, 2018 at 14:16


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.