Transfer script for Steem-engine.com tokens

Steem Engine Token Transfer Script


You will need to change some inputs in app.js

You can download the code at:

https://github.com/steemdevelopment/ssc_transfer_script

const dsteem = require('dsteem');
const client = new dsteem.Client('https://api.steemit.com');

const account = 'steemdevelopment'; // Change to your username
const active_key = 'key'; // change to your active key
const token_symbol = 'FREEX'; // change to your coin symbol that you want to transfer
const to_person = 'freedomex'; // change to the person who will receive coins from you
const token_amount = '1.335'; // change to the amount of tokens you wish to send
const transaction_memo = 'Exchange Testing'; // change to memo you want to put

const custom_json = (my_id, my_data) => {
    const key = dsteem.PrivateKey.fromString(active_key);

    client.broadcast.json({
        required_auths: [account],
        required_posting_auths: [],
        id: my_id,
        json: JSON.stringify(my_data),
    }, key).then(
        result => { console.log(result) },
        error => { console.error(error) }
    )
};

custom_json('ssc-mainnet1', {'contractName':'tokens', 'contractAction':'transfer','contractPayload':{'symbol': token_symbol,'to': to_person,'quantity': token_amount,'memo': transaction_memo}});

Sort:  

Thank you for your contribution @steemdevelopment It looks like this is your first contribution on utopian! well done.

  1. It would be nice to have a little bit more details on the project, the purpose of the script and how people should use it.
  2. You submit code to development category, which we expect to see some development. The script looks nice but which could be better suited to a tutorial category if you add more details and polish it in your post.
  3. For a use-able script, we expect to see the customisable parameters such as command-line options or JSON config - instead of parameters being hard-coded in the code.
  4. Without much explanation, people usually find it hard to understand the script, particularlly the script is about 10-lines long .

Looking forward to your next contribution!

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @justyy! Keep up the good work!

✅ Enjoy the vote! For more amazing content, please follow @themadcurator for a chance to receive more free votes!

Hi @steemdevelopment!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hello @steemdevelopment! This is a friendly reminder that you have 3000 Partiko Points unclaimed in your Partiko account!

Partiko is a fast and beautiful mobile app for Steem, and it’s the most popular Steem mobile app out there! Download Partiko using the link below and login using SteemConnect to claim your 3000 Partiko points! You can easily convert them into Steem token!

https://partiko.app/referral/partiko

Coin Marketplace

STEEM 0.25
TRX 0.11
JST 0.034
BTC 63202.55
ETH 3085.17
USDT 1.00
SBD 3.85