CEP_Account.open()

With this method you can set the account to use for next operations.

Function Signature

open(address)

Parameters

Parameter Name
Datatype

address

String

Example (CommonJS)

const { CEP_Account } = require('circular-enterprise-apis');

const Address = 'your-wallet-address';

let account = new CEP_Account();

async function run() {
    account.open(Address);
    
    //...
}

run();

Example (ES Modules)

import { CEP_Account } from 'circular-enterprise-apis';

const Address = 'your-wallet-address';

let account = new CEP_Account();

async function run() {
        account.open(Address);
        
        //...        
}

run();

Last updated