Closed xavier506 closed 3 years ago
Using EOS JS For example
const { eosioConfig } = require('config') const addTransaction = ({ contractName = eosioConfig.eosioAccount, action = 'dispatch', eosio, ...data }) => eosio.transact( { actions: [ { account: 'writer', name: 'run', authorization: [ { actor: 'costarica', permission: 'writer' } ], 'data': '' }, { account: contractName, name: action, authorization: [ { actor: contractName, permission: 'dispatch' } ], data } ] }, { blocksBehind: 3, expireSeconds: 30 } ) module.exports = { addTransaction }
Using EOS JS For example