Eoslime
  • Introduction
  • Examples
  • Tutorial
  • Changelog
    • Version 2.0.0 [TypeScript]
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
  • Developer Documentation
    • Initialization
    • Account
      • Methods
      • Static Methods
      • Default Account
    • Multisignature Account
      • Methods
    • Providers
    • Contract
      • Deployment
      • Instantiation
      • Blockchain Contract Action Methods
    • Utils
  • CLI
    • init
      • --with-example
    • compile
      • --path
    • deploy
      • --path
      • --network
      • --deployer
    • test
      • --path
      • --network
      • --resource-report
    • shape
      • --framework
    • nodeos
      • start
        • --path
      • stop
      • logs
        • --lines
      • accounts
Powered by GitBook
On this page
  • Local network
  • Another network

Was this helpful?

  1. Developer Documentation
  2. Account

Default Account

Default account or main account is the account which executes blockchain transactions if none is provided. Most of the functions have executor in the form of payer | accountCreator | contractExecutor.

Local network

When you are on local network eosio account is preset automatically for you as default/main account. You are able to do

await Account.createFromName('some name')

without the need of specifying the accountCreator every time.

Another network

If you are on another network, you can set the default/main account as follow:

const eoslime = require('jungle').init();

const jungleMainAccount = eoslime.Account.load('name', 'privateKey');
eoslime.Provider.defaultAccount = jungleMainAccount;

In this way jungleMainAccount will execute every blockchain transaction whenever the execution account is needed but none was provided.

PreviousStatic MethodsNextMultisignature Account

Last updated 5 years ago

Was this helpful?