CEP_Account.setNetwork()

With this method you can set the network where you create and search your certifications.

Function Signature

setNetwork(network)

Parameters

Parameter Name
Datatype

network

String

Example (CommonJS)

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

const Address = 'your-wallet-address';

let account = new CEP_Account();

async function run() {
    //...
    account.setNetwork("mainnet"); //Chose between mainnet, testnet and devnet
    
    //...
}

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.setNetwork("mainnet"); //Chose between mainnet, testnet and devnet
        //...        
}

run();

Last updated