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

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center