attachToTangle Example

This operation can take a long time, you can interrupt it by using the interruptAttachingToTangle API.