Transfer script for tokens

in steemengine •  4 months ago 

Steem Engine Token Transfer Script

You will need to change some inputs in app.js

You can download the code at:

const dsteem = require('dsteem');
const client = new dsteem.Client('');

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);

        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}});

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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.



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!