[Node-port] Example code to create a transaction

Moved from GitHub flock/8

Posted by hackintoshrao:

As part of the training material based on Flock, need an example implementation of creation a transaction with the Node Client.