Account

Provides an easy access to blockchain account

    const eoslime = require('eoslime').init();
    
    // Load existing network account
    let account = eoslime.Account.load('name', 'privateKey', 'permission');

Parameters

  • name - account name

  • privateKey - private key of the account. If you provide a permission, the privateKey should be the relevant for that permission

  • permission ( Optional ) - the account's permission.

    Default - active Permission per account. If you want to operate with another account's permission you should load the same account with the second permission.

Properties

  • name

  • publicKey

  • privateKey

  • provider - The network provider that the account is connected to

  • authority - transactions authority

{
    actor: '', permission: '' }
}

Last updated