UNPKG

@open-rights-exchange/orejs

Version:

Orejs is a Javascript helper library to provide simple high-level access to the ore-protocol. Orejs uses eosJS as a wrapper to the EOS blockchain.

20 lines (19 loc) 554 B
const action = ({ activePublicKey, name, orePayerAccountName, ownerPublicKey, permission, pricekey, referral }) => ( { account: 'system.ore', name: 'createoreacc', authorization: [{ actor: orePayerAccountName, permission }], data: { creator: orePayerAccountName, newname: name, // Some versions of the system contract are running a different version of the newaccount code ownerkey: ownerPublicKey, activekey: activePublicKey, pricekey, referral } } ); module.exports = action;