Documentation

Creating a transaction

This API route accepts arrays of actions to build a transaction with. It's not particularly necessary for web applications because ScatterJS's plugin providers does this under the hood, but it's great for native applications with languages that don't yet have blockchain languages wrappers.

{
    type:'createTransaction',
    plugin:'YOUR_APP',
    payload:{
        id:'random-uid',
        origin:'YOUR_APP'
        blockchain:'eos',
        actions:[
            {
                contract:'eosio.token',
                action:'transfer',
                params:[account.name, 'eosio', '1.0000 EOS', ''],
            },
            {
                contract:'eosio.token',
                action:'transfer',
                params:[account.name, 'eosio2', '2.0000 EOS', ''],
            }
        ],
        account:{...},
        network:{...}
    }
}